Module:Sandbox/BrandonXLF/1: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1:
function main (frame, switch)
local fArgs = frame.args or {}
local pArgs = frame:getParent().args or {}
local tArgs = {}
local template = fArgs['_']
if not template then
Line 10 ⟶ 11:
pArgs, fArgs = fArgs, pArgs
end
for k, v in pairs(pArgsfArgs) do
fArgstArgs[k] = v
end
for k, v in pairs(pArgs) do
return frame:expandTemplate{title = template, args = fArgs}
tArgs[k] = v
end
return frame:expandTemplate{title = template, args = fArgstArgs}
end