Jump to content

Module:Infobox election/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 13:48, 14 March 2024 (skeleton). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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