Jump to content

Module:Flag/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 18:35, 6 May 2020 (create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}

local function 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
	
	local params = args
	params[1] = 'cxxlo'
	params[2] = args[1]
	params['variant'] = args[2] or args['variant']
	params['missingcategory'] = '[[Category:Flagicons with missing country data templates]]'
	params['noredlink'] = args['noredlink'] or 'no'
	return require('Module:Flagg/sandbox').luaMain(frame,params)
end
	
return p