Module:Sandbox/BrandonXLF/1

This is an old revision of this page, as edited by BrandonXLF (talk | contribs) at 19:58, 18 February 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local mt = {}
function mt.__index (_, template)
	local frame = mw.getCurrentFrame()
	local fArgs = frame.args
	local pArgs = frame:getParent().args
	for k,v in pairs(fArgs) do
		pArgs[k] = v
	end
	return frame:expandTemplate{title = template, args = pArgs}
end
local p = {}
setmetatable(p, mt)
return p