Module:Flag/sandbox
< Module:Flag
Jump to navigation
Jump to search
Revision as of 18:54, 6 May 2020 by blackwiki>Ahecht (simplify)
Documentation for this module may be created at Module:Flag/sandbox/doc
local p = {}
function p.icon(frame)
local args={}
for k,v in pairs(frame:getParent().args) do
if (v or '') ~= '' then
args[k] = v
end
end
for k,v in pairs(frame.args) do
if (v or '') ~= '' then
args[k] = v
end
end
args['variant'] = args[2] or args['variant']
args[2] = args[1]
args[1] = 'cxxlo'
args['missingcategory'] = '[[Category:Flagicons with missing country data templates]]'
args['noredlink'] = args['noredlink'] or 'no'
return require('Module:Flagg/sandbox').luaMain(frame,args)
end
return p