Content deleted Content added
Jackmcbarn (talk | contribs) don't double-index |
Jackmcbarn (talk | contribs) Reverted to revision 611290135 by Jackmcbarn (talk). (TW) |
||
Line 1:
local p = {}
local
local extra = {}
local args = {}
for k,v in pairs(frame.args) do
args[k] = v
end
for k,v in ipairs({'lat', 'long', 'mark', 'marksize', 'label', 'link', 'label_size', 'position'}) do
if args[v] then
table.insert(argsToReturn, string.format("%s = %q", v, mw.text.trim(args[v])))
end▼
args[v] = nil
end
▲ end
if args[1] and mw.text.trim(args[1]) == 'Syria' then args[1] = nil end
for k,v in pairs(args) do
if #extra > 0 then
▲ end)
end
return '{ ' .. table.concat(argsToReturn, ', ') .. ' },'
end
|