Module:Country alias/data: Difference between revisions
Jump to navigation
Jump to search
(Replaced content with "-- Constant data used by Module:Country alias. local countryAliases = { -- Countries with identical definitions. ANG_CGF = "AIA", ATG = "ANT", BHR = "BHN", BRN =...") Tag: Replaced |
No edit summary |
||
Line 23: | Line 23: | ||
ROU = "ROM", | ROU = "ROM", | ||
SHN = "SHE", | SHN = "SHE", | ||
SWK = "SAR", | SWK = "SAR", | ||
SIN = "SGP", | SIN = "SGP", | ||
Line 55: | Line 54: | ||
name = "Vitosium", | name = "Vitosium", | ||
"VitosiumFlag.png", | "VitosiumFlag.png", | ||
}, | |||
VIN = { | |||
name = "Vinalia", | |||
"ProperVinalianFlag.png", | |||
}, | }, | ||
} | } |
Revision as of 08:47, 27 July 2021
Documentation for this module may be created at Module:Country alias/data/doc
-- Constant data used by [[Module:Country alias]].
local countryAliases = {
-- Countries with identical definitions.
ANG_CGF = "AIA",
ATG = "ANT",
BHR = "BHN",
BRN = "BHN",
CUW = "CUR",
FRO = "FAR",
GUE = "GGY",
HOL = "NED",
IOA = "AOI",
IRN = "IRI",
JEY = "JER",
LIB = "LBN",
MSR = "MNT",
NGU = "PNG",
NIC = "NCA",
NFK = "NFI",
OMN = "OMA",
ROT = "ROA",
ROU = "ROM",
SHN = "SHE",
SWK = "SAR",
SIN = "SGP",
SAF = "RSA",
SAU = "KSA",
TON = "TGA",
TTO = "TRI",
TCI = "TCA",
TKS = "TCA",
TMP = "TLS",
}
local countries = {
EXA = { -- example for testing
name = "Example Country",
{1951, "Flag1951.svg"}, -- year <= 1951
{1995, "Flag1995.svg"}, -- 1951 < year <= 1995
"Flag of test.svg", -- otherwise
["Paralympics"] = "Paralympics.svg",
["Summer Olympics"] = {
[1948] = "SO1948.svg",
[1952] = "SO1952.svg",
[1980] = "SO1980.svg",
},
["Winter Olympics"] = {
[1956] = "WO1956.svg",
[1964] = "WO1964.svg",
},
},
VIT = {
name = "Vitosium",
"VitosiumFlag.png",
},
VIN = {
name = "Vinalia",
"ProperVinalianFlag.png",
},
}
return {
countryAliases = countryAliases,
countries = countries,
}