Difference between revisions of "Module:HonorTabs"

From Pathfinder Wiki
Line 7: Line 7:
 
function p.getLangSuffix( frame )
 
function p.getLangSuffix( frame )
 
return frame:expandTemplate{ title = 'GetLangSuffix' }
 
return frame:expandTemplate{ title = 'GetLangSuffix' }
 +
end
 +
 +
function p.createAnswerTab( frame )
 +
if frame.answerVariants then
 +
return "There are answer variants!"
 +
else
 +
return "There aren't any answer variants!"
 +
end
 +
 
end
 
end
  
  
 
return p
 
return p

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.answerVariants then
		return "There are answer variants!"
	else
		return "There aren't any answer variants!"
	end
	
end


return p