Module:Sandbox/BrandonXLF/1: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
local mt = {}
function mt.__index = function(_, 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
return frame:expandTemplate{title = template, args = pArgs}
}
end
return setmetatable({}, mt)