Difference between revisions of "Module:Sandbox"
From Pathfinder Wiki
DesignerThan (talk | contribs) |
DesignerThan (talk | contribs) |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
+ | local utilities = require ( "Module:Utilities" ) | ||
function p.expandTemplate( frame ) | function p.expandTemplate( frame ) | ||
Line 9: | Line 10: | ||
local strFromTrans = frame:callParserFunction( '#lst', { 'Localization:All/de', 'LoremIpsum' }) | local strFromTrans = frame:callParserFunction( '#lst', { 'Localization:All/de', 'LoremIpsum' }) | ||
mw.log('strFromTrans: |'..strFromTrans..'|') | mw.log('strFromTrans: |'..strFromTrans..'|') | ||
+ | end | ||
+ | |||
+ | function p.testLocalize( frame ) | ||
+ | local retVal = utilities.localize( 'Requirements' ) | ||
+ | mw.log('retVal: '..retVal) | ||
end | end | ||
return p | return p |
Revision as of 21:23, 16 July 2021
Documentation for this module may be created at Module:Sandbox/doc
local p = {}
local utilities = require ( "Module:Utilities" )
function p.expandTemplate( frame )
mw.log(frame:expandTemplate{ title = 'User:DesignerThan/Sandbox/expandTemplate' })
end
function p.lst( frame )
mw.log('Test')
local strFromTrans = frame:callParserFunction( '#lst', { 'Localization:All/de', 'LoremIpsum' })
mw.log('strFromTrans: |'..strFromTrans..'|')
end
function p.testLocalize( frame )
local retVal = utilities.localize( 'Requirements' )
mw.log('retVal: '..retVal)
end
return p