Difference between revisions of "Module:Sandbox"
From Pathfinder Wiki
DesignerThan (talk | contribs) |
DesignerThan (talk | contribs) |
||
Line 18: | Line 18: | ||
function p.variableScope( frame ) | function p.variableScope( frame ) | ||
+ | table.foreach(_G,print) | ||
if ( globalVar == nil ) then | if ( globalVar == nil ) then | ||
mw.log( 'globalVar == nil') | mw.log( 'globalVar == nil') |
Revision as of 20:21, 18 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
function p.variableScope( frame )
table.foreach(_G,print)
if ( globalVar == nil ) then
mw.log( 'globalVar == nil')
end
globalVar = 'test'
mw.log('globalVar: '..globalVar)
end
return p