Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) Restored revision 883984777 by BrandonXLF (Restorer) |
||
Line 1:
local p = {}
function p.main (frame)
local fA = frame.args
local pA = frame:getParent().args local
local template, pF = fA['_t'], require('Module:Yesno')(fA._pf)
fA._t, fA._pf = nil, nil
if not template then
return require('Module:Error').error({'Error: no template name given.'})
end
if pF then
return frame:expandTemplate{title = template, args = args}▼
fA, pA = pA, fA
end
for k,v in pairs(pA) do
tA[k] = v
end
for k,v in pairs(fA) do
tA[k] = v
end
end
return p
|