Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) Reverted to revision 877044953 by BrandonXLF (Reverter) |
||
Line 1:
local p = {}
function p.main (frame)
local fArgs = frame.args -- Frame arguments
local pArgs = frame:getParent().args -- Parent arguments
local
local template = fArgs['_t'] -- Get template name
if
end
--end▼
for k,v in pairs(fArgs) do
end
for k,v in pairs(fArgs) do
if k ~= '_t' then -- Do not count fArgs['_t'] as a parameter
tArgs[k] = v -- Add fArgs to tArgs
end
return frame:expandTemplate{title = template, args = tArgs} -- Call template
end
return p
|