Module:Sandbox/Χ/Quid

local ga = require('Module:Arguments').getArgs local data = require('Module:Sandbox/Χ/Quid/data')

local p = {}

function p.main(frame) local args = ga(frame) local country = args[1] local span = mw.html.create('span') if data[country] then span:addClass("flagicon") :wikitext(" " .. country .. "") else span = frame:expandTemplate{ title = 'Quid/legacy', args = { country } } end return span end

return p