Difference between revisions of "Module:HonorTabs"

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

Revision as of 21:53, 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!"
	else
		return "There aren't any answer variants!"
	end
	
end


return p