Difference between revisions of "Module:Sandbox"

From Pathfinder Wiki
(Created page with "local p = {} function p.expandTemplate( frame ) mw.log(frame:expandTemplate{ title = 'User:DesignerThan/Sandbox/expandTemplate' }) end return p")
 
Line 3: Line 3:
 
function p.expandTemplate( frame )
 
function p.expandTemplate( frame )
 
mw.log(frame:expandTemplate{ title = 'User:DesignerThan/Sandbox/expandTemplate' })
 
mw.log(frame:expandTemplate{ title = 'User:DesignerThan/Sandbox/expandTemplate' })
 +
end
 +
 +
function p.lst( frame )
 +
local strFromTrans = frame:callParserFunction( '#lst', { 'Localization:All/de', 'LoremIpsum' })
 +
mw.log(strFromTrans)
 
end
 
end
  
 
return p
 
return p

Revision as of 18:36, 16 July 2021

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

local p = {}

function p.expandTemplate( frame )
	mw.log(frame:expandTemplate{ title = 'User:DesignerThan/Sandbox/expandTemplate' })
end

function p.lst( frame )
	local strFromTrans = frame:callParserFunction( '#lst', { 'Localization:All/de', 'LoremIpsum' })
	mw.log(strFromTrans)
end

return p