Difference between revisions of "Module:HonorTabs"

From Pathfinder Wiki
Line 11: Line 11:
 
function p.createAnswerTab( frame )
 
function p.createAnswerTab( frame )
 
if frame.args.answerVariants then
 
if frame.args.answerVariants then
return "There are answer variants!"
+
return "There are answer variants:" + frame.args.answerVariants
 
else
 
else
 
return "There aren't any answer variants!"
 
return "There aren't any answer variants!"

Revision as of 21:54, 25 April 2021

Documentation for this module may be created at Module:HonorTabs/doc

local p = {}

function p.hello( frame )
	return "Hello, world!"
end

function p.getLangSuffix( frame )
	return frame:expandTemplate{ title = 'GetLangSuffix' }
end

function p.createAnswerTab( frame )
	if frame.args.answerVariants then
		return "There are answer variants:" + frame.args.answerVariants
	else
		return "There aren't any answer variants!"
	end
	
end


return p