Module:Sandbox/Ahecht/flag: Difference between revisions

Content deleted Content added
test
 
remove unneeded function
 
(17 intermediate revisions by the same user not shown)
Line 1:
local p = {}
 
return p
function p.main(frame)
if ( (frame.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
return '["' .. frame.args.alias .. '"] = {\n' .. table.concat(output,",\n") .. '\n},\n'
end
end