Die Dokumentation für dieses Modul kann unter Modul:FlagCountry/Doku erstellt werden
local p = {}
local countries = {
DEU = "Deutschland",
FRA = "Frankreich",
GBR = "Großbritannien",
USA = "USA",
CAN = "Kanada",
ITA = "Italien",
NLD = "Niederlande",
BEL = "Belgien",
NOR = "Norwegen",
TUR = "Türkei",
ESP = "Spanien",
GRC = "Griechenland",
PRT = "Portugal",
DNK = "Dänemark",
CZE = "Tschechien",
POL = "Polen",
HUN = "Ungarn",
SVK = "Slowakei",
SVN = "Slowenien",
LUX = "Luxemburg",
LVA = "Lettland",
LTU = "Litauen",
EST = "Estland",
HRV = "Kroatien",
ALB = "Albanien",
MNE = "Montenegro",
MKD = "Nordmazedonien",
BIH = "Bosnien und Hezegowina",
SRB = "Serbien",
KOS = "Kosovo",
-- Fügen Sie hier weitere Länder hinzu
}
function p.getFlag(frame)
local countryCode = frame.args[1] or ""
return countries[countryCode] and countryCode .. ".svg" or "Flag_unknown.svg"
end
function p.getName(frame)
local countryCode = frame.args[1] or ""
return countries[countryCode] or "Unbekannt"
end
return p