Module:Sandbox/Χ/Quid (alternate version)

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

local p = {}

function p.main(frame) local args = ga(frame) local country = args[1] local span = mw.html.create('span') if flags[country] then span:addClass("flagicon") :wikitext(" " .. country .. "") else span = frame:expandTemplate{ title = "Country data " .. country, args = { "flaglink/core", altlink = "national quidditch team", altvar = "quidditch", }		}	end return span end

return p