Module:Sandbox/BrandonXLF/1: Difference between revisions

Content deleted Content added
No edit summary
Testing from use in template
Line 1:
local p = {}
function p.main (frame)
local fAargs = frame.args
local pA template = frame:getParent()args.args_t
local tA = {}
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
return frame:expandTemplate{title = template, args = tAargs}
if pF then
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
return frame:expandTemplate{title = template, args = tA}
end
return p