View source for Module:Globals
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- <nowiki>
-- Implements [[Template:Globals]]
local p = {}
local globals = require 'Module:Globals/data'
local opairs = require('Module:Utils').opairs
function p.main(frame)
local args = frame:getParent().args
local global = args[1] -- The arg that was passed
local val = globals[global][2] -- The value associated with the arg
if (val == nil) then
val = ''
end
return val
end
000
1:0
Templates used on this page:
- Template:Documentation (view source)
- Template:Extension DPL (view source)
- Template:Globals (view source)
- Template:Globals/doc (view source)
- Module:Array (view source)
- Module:DPLlua (view source)
- Module:DependencyList (view source)
- Module:Documentation (view source)
- Module:Globals (view source)
- Module:Globals/doc (view source)
- Module:Paramtest (view source)
- Module:Tooltip (view source)
- Module:Yesno (view source)
Return to Module:Globals.