Jump to content

Module:Infobox election/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
skeleton
(No difference)

Revision as of 13:48, 14 March 2024

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