Module:Infobox election/sandbox
Appearance
![]() | This is the module sandbox page for Module:Infobox election (diff). |
![]() | This module depends on the following other modules: |
Implements {{Infobox election/row}} and {{Infobox election/shortname}} with a reduced post-expand include size
Usage
{{#invoke:Infobox election|row}}
{{#invoke:Infobox election|shortname}}
local p = {}
local args = {}
local origArgs = {}
function p.infobox(frame)
origArgs = frame:getParent().args
for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end
--debug
args = origArgs
outFrame = frame:newChild{ title = frame:getTitle(), args = args }
return require('Module:Infobox').infoboxTemplate(outFrame)
end