Content deleted Content added
|
|
(10 intermediate revisions by the same user not shown) |
local p = {}
function p.main(frame)
if ( (frame.args.alias or frame:getParent().args.alias or "") ~= "" ) then
output = {}
for k,v in pairs(frame.args) do
if (v or '') ~= '' then
output[#output+1] = '\t["' .. k .. '"] = ' .. v
end
end
for k,v in pairs(frame:getParent().args) do
if (v or '') ~= '' then
output[#output+1] = '\t["' .. k .. '"] = ' .. v
end
end
return '<pre>["' .. (frame.args.alias or frame:getParent().args.alias) .. '"] = {\n' .. table.concat(output,",\n") .. '\n},\n</pre>'
else
return ""
end
end
return p
|