Content deleted Content added
move data tables from main module to reduce time when called thousands of times on a single page, per Template talk:Country alias#Time expired |
test |
||
(14 intermediate revisions by 6 users not shown) | |||
Line 3:
local countryAliases = {
-- Countries with identical definitions.
ADE = "YMD",
ANG_CGF = "AIA",
ATG = "ANT",
Line 8 ⟶ 9:
BRN = "BHN",
CUW = "CUR",
EOR = "ROA",
FAI = "FLK",
FRO = "FAR",
GUE = "GGY",
HOL = "NED",
IOA = "AOI",
IRN = "IRI",
Line 15 ⟶ 19:
LIB = "LBN",
MSR = "MNT",
MNP = "NMI",
NGU = "PNG",
NIC = "NCA",
NFK = "NFI",
OMN = "OMA",
RAU = "UAR",
ROT = "ROA",
ROU = "ROM",
Line 25 ⟶ 32:
SIN = "SGP",
SAF = "RSA",
SAU = "KSA",
SCT = "SCO",
TON = "TGA",
TTO = "TRI",
TCI = "TCA",
TKS = "TCA",
TMP = "TLS",
TWN = "TPE",
}
Line 34 ⟶ 45:
EXA = { -- example for testing
name = "Example Country",
countrydata_name = "U.S. Example Country", -- optional, use when Template:Country data {name} would not be correct
{1951, "Flag1951.svg"}, -- year <= 1951
{1995, "Flag1995.svg"}, -- 1951 < year <= 1995
Line 60 ⟶ 72:
{1996, "Flag of Afghanistan (1992–2001).svg"},
{2003, "Flag of Afghanistan (2002–2004).svg"},
"Flag of Afghanistan (2004–2021).svg",
},
AHO = {
name = "Netherlands Antilles",
{
["Pan American Games"] = {
[2011] = "Flag of PASO.svg",
},
["Summer Olympics"] = {
[1952] = "Flag of the Netherlands.svg",
},
},
Line 74 ⟶ 88:
name = "Anguilla",
"Flag of Anguilla.svg",
},
AIN = {
name = "Individual Neutral Athletes",
"Individual Neutral Athletes at the 2024 Summer Olympics Flag.svg",
},
ALB = {
name = "Albania",
{
{2001, "Flag of Albania (1992–2002).svg"},
"Flag of Albania.svg",
},
Line 92 ⟶ 111:
"Flag of Andorra.svg",
["Summer Olympics"] = {
[1976] = "Flag of Andorra (civil).svg",
[1980] = "Olympic flag.svg",
},
Line 114 ⟶ 134:
ARG = {
name = "Argentina",
{2010, "Flag of Argentina (1861–2010).svg",},
"Flag of Argentina.svg",
},
Line 122 ⟶ 143:
ART = {
name = "Athlete Refugee Team",
{2021, "IAAF flag (2017).svg"},
"ART flag (2022).svg",
["Asian Indoor and Martial Arts Games"] = {
[2017] = "Olympic flag.svg",
},
["World Aquatics Championships"] = "Flag of World Aquatics.svg",
},
ART_AIMAG = {
name = "Refugee Team",
"Olympic flag.svg",
},
ARU = {
Line 142 ⟶ 169:
["Summer Olympics"] = {
[1980] = "Olympic flag.svg",
},
["Winter Olympics"] = {
[1952] = "Civil Ensign of Australia.svg",
},
},
Line 151 ⟶ 181:
AZE = {
name = "Azerbaijan",
{2013, "Flag of Azerbaijan (1991–2013).svg"},
"Flag of Azerbaijan.svg",
},
Line 158 ⟶ 189:
{1953, "Flag of the Bahamas (1923–1953).svg"},
{1964, "Flag of the Bahamas (1953–1964).svg"},
{1972, "Flag of the Bahamas (1964–1973).
"Flag of the Bahamas.svg",
},
Line 209 ⟶ 240:
BIH = {
name = "Bosnia and Herzegovina",
{
"Flag of Bosnia and Herzegovina.svg",
},
Line 221 ⟶ 252:
name = "Belize",
{1981, "Flag of British Honduras (1919-1981).svg"},
{2019, "Flag of Belize (1981-2019).svg"},
"Flag of Belize.svg",
},
Line 238 ⟶ 270:
"Flag of Bohemia.svg",
["Summer Olympics"] = {
[1912] = "Bohemian Olympic Flag (1912).
},
},
Line 253 ⟶ 285:
{1960, "Flag of Brazil (1889-1960).svg"},
{1968, "Flag of Brazil (1960-1968).svg"},
{
"Flag of Brazil.svg",
["Summer Olympics"] = {
[1960] = "Flag of Brazil (1960-1968).svg",
[1968] = "Flag of Brazil (1968-1992).svg",
},
["Winter Olympics"] = {
[1992] = "Flag of Brazil (1968-1992).svg",
},
},
BRU = {
Line 263 ⟶ 302:
name = "Bulgaria",
{1946, "Flag of Bulgaria.svg"},
{
{1967, "Flag of Bulgaria (1948-1967).svg"},
{1971, "Flag of Bulgaria (1967-1971).svg"},
Line 292 ⟶ 331:
CAN = {
name = "Canada",
{1921, "
{1957, "
{1965, "
"Flag of Canada (Pantone).svg",
["Summer Olympics"] = {
[1936] = "Canadian Red Ensign 1921-1957 (with disc).svg",
Line 302 ⟶ 341:
CAY = {
name = "Cayman Islands",
{
"Flag of the Cayman Islands.svg",
["Commonwealth Games"] = {
[2002] = "Flag of the Cayman Islands.svg",
[2006] = "Flag of the Cayman Islands.svg",
[2010] = "Flag of the Cayman Islands.svg",
},
},
CEY = {
name = "Ceylon",
{
{1951, "Flag of Ceylon (1948-1951).svg"},
{1971, "Flag of Ceylon (1951-1972).svg"},
Line 314 ⟶ 358:
CGO = {
name = "Republic of the Congo",
{
{1990, "Flag of the People's Republic of Congo.svg"},
"Flag of the Republic of the Congo.svg",
},
Line 340 ⟶ 385:
COD = {
name = "Democratic Republic of the Congo",
{2003, "Flag of the Democratic Republic of the Congo (1997-2003).svg"},
{2006, "Flag of the Democratic Republic of the Congo (2003-2006).svg"},
Line 350 ⟶ 393:
{1979, "Flag of the Cook Islands (1973-1979).svg"},
"Flag of the Cook Islands.svg",
},
COK_COD = {
name = "Congo-Kinshasa",
"Flag of Congo-Kinshasa (1966-1971).svg",
},
COL = {
Line 379 ⟶ 426:
name = "Croatia",
"Flag of Croatia.svg",
["Summer Olympics"] = "Civil ensign of Croatia.svg",
["Winter Olympics"] = "Civil ensign of Croatia.svg",
},
CUB = {
name = "Cuba",
"Flag of Cuba.svg",
["Summer Olympics"] = "Flag of Cuba (3-2).svg",
["Winter Olympics"] = "Flag of Cuba (3-2).svg",
},
CUR = {
Line 424 ⟶ 475:
name = "Dominican Republic",
"Flag of the Dominican Republic.svg",
},
EAI = {
name = "Independent Athletes Team",
"Panam Sports flag.png",
},
ECU = {
name = "Ecuador",
{2009, "Flag of Ecuador (1900–2009).svg"},
"Flag of Ecuador.svg",
},
Line 432 ⟶ 488:
name = "Egypt",
{1922, "Flag of Egypt (1882-1922).svg"},
{1952, "Flag of Egypt (
{1958, "Flag of Egypt (
{1971, "Flag of the United Arab Republic (1958–1971).svg"},
{1984, "Flag of Egypt (
"Flag of Egypt.svg",
},
Line 452 ⟶ 508:
ESP = {
name = "Spain",
{1931, "Flag of Spain (
{1939, "Flag of Spain (
{1977, "Flag of Spain (1945–1977).svg"},
{1981, "Flag of Spain (
"Flag of Spain.svg",
["Summer Olympics"] = {
[1980] = "Spain Olympic
},
},
Line 467 ⟶ 523:
ETH = {
name = "Ethiopia",
{1974, "Flag of Ethiopia (
{1975, "Flag of Ethiopia (
{1987, "Flag of Ethiopia (1975–1987).svg"},
{1991, "Flag of Ethiopia (1987–1991).svg"},
{
{2009, "Flag of Ethiopia (1996–2009).svg"},
"Flag of Ethiopia.svg",
["Summer Olympics"] = {
[1992] = "Flag of Ethiopia (1987–1991).svg",
},
},
EUA = {
Line 485 ⟶ 545:
["Paralympics"] = "Paralympic flag (1988-1994).svg",
["Summer Paralympics"] = "Paralympic flag (1988-1994).svg",
},
FAR = {
Line 497 ⟶ 552:
FIJ = {
name = "Fiji",
{1970, "Flag of Fiji
"Flag of Fiji.svg",
},
Line 506 ⟶ 561:
},
FINA = {
name = "FINA
"FINA logo cropped.
},
FLK = {
name = "Falkland Islands",
{1999, "Flag of the Falkland Islands (1948-1999).svg"},
"Flag of the Falkland Islands.svg",
},
FR_YUG = {
name = "FR Yugoslavia",
"Flag of Yugoslavia (1992–2003); Flag of Serbia and Montenegro (2003–2006).svg",
},
FRA = {
Line 525 ⟶ 589:
name = "Rhodesia and Nyasaland",
"Flag of the Federation of Rhodesia and Nyasaland.svg",
},
FRT = {
name = "FINA Refugee Team",
"FINA logo cropped.svg"
},
FSA = {
Line 546 ⟶ 614:
"Flag of the United Kingdom.svg",
["Summer Olympics"] = {
"Flag of the United Kingdom (3-2).svg",
[1980] = "Olympic flag.svg",
},
Line 590 ⟶ 659:
GHA = {
name = "Ghana",
{
{1961, "Flag of the Union of African States (1958-1961).svg"},
{1962, "Flag of the Union of African States (1961-1962).svg"},
{1966, "Flag of Ghana (1964-1966).svg"},
Line 606 ⟶ 676:
{1978, "Flag of Greece (1828-1978).svg"},
"Flag of Greece.svg",
["Winter Olympics"] = {
[1976] = "Flag of Greece.svg",
},
},
GRN = {
name = "Grenada",
{1974, "Flag of Grenada
"Flag of Grenada.svg",
},
Line 615 ⟶ 688:
name = "Guatemala",
"Flag of Guatemala.svg",
},
GUD = {
name = "Guadeloupe",
"Flag of France.svg",
},
GUI = {
Line 634 ⟶ 711:
HAI = {
name = "Haiti",
{1963, "Flag of Haiti (1859–1964).svg"},
{1986, "Flag of Haiti (1964–1986).svg"},
"Flag of Haiti.svg",
Line 654 ⟶ 731:
{1959, "Flag of Hong Kong 1955.svg"},
"Flag of Hong Kong (1959–1997).svg"
},
HNL = {
name = "Haudenosaunee",
"Flag of the Iroquois Confederacy.svg"
},
HON = {
name = "Honduras",
{1949, "Flag of Honduras (1866-1949).svg"},
{2022, "Flag of Honduras (before 2022).svg"},
"Flag of Honduras.svg",
},
Line 667 ⟶ 750:
{1957, "Flag of Hungary (1946-1949, 1956-1957).svg"},
"Flag of Hungary.svg",
},
IFA = {
name = "Independent FINA Athletes",
"FINA logo cropped.svg"
},
IFS = {
Line 675 ⟶ 762:
name = "Independent Asian Athletes",
"Olympic flag.svg",
},
IHO = {
name = "Dutch East Indies",
"Flag of the Netherlands.svg",
},
INA = {
Line 685 ⟶ 776:
{2012, "Flag of India.svg"},
"Flag of India.svg",
["Summer Olympics"] = {
[1936] = "Flag of the Governor-General of India (1885–1947).svg",
},
},
INT = {
name = "International team",
"Flag placeholder.svg",
},
IOA_2000 = {
name = "Individual Olympic Athletes",
Line 736 ⟶ 834:
"Flag of Ireland.svg",
["Summer Olympics"] = {
"Flag of Ireland (3-2).svg",
[1980] = "Olympic flag.svg",
},
["Winter Olympics"] = "Flag of Ireland (3-2).svg",
},
IRQ = {
Line 743 ⟶ 843:
{1959, "Flag of Iraq (1921–1959).svg"},
{1963, "Flag of Iraq (1959-1963).svg"},
{1991, "Flag of Iraq (
{2003, "Flag of Iraq (1991-2004).svg"},
{2007, "Flag of Iraq (2004-2008).svg"},
Line 760 ⟶ 860:
ISV = {
name = "Virgin Islands",
countrydata_name = "U.S. Virgin Islands",
"Flag of the United States Virgin Islands.svg",
},
Line 790 ⟶ 891:
name = "Jordan",
"Flag of Jordan.svg",
["Summer Olympics"] = "Flag of Jordan (3-2).svg",
["Winter Olympics"] = "Flag of Jordan (3-2).svg",
},
JPN = {
Line 799 ⟶ 902:
name = "Kazakhstan",
"Flag of Kazakhstan.svg",
["Summer Olympics"] = "Flag of Kazakhstan (3-2).svg",
["Winter Olympics"] = "Flag of Kazakhstan (3-2).svg",
},
KEN = {
Line 807 ⟶ 912:
KGZ = {
name = "Kyrgyzstan",
{2023, "Flag of Kyrgyzstan (1992–2023).svg"},
"Flag of Kyrgyzstan.svg",
},
Line 819 ⟶ 925:
KOR = {
name = "South Korea",
{
{1949, "Flag of South Korea (1948-1949).svg"},
{
{1997, "Flag of South Korea (1984-1997).svg"},
{2011, "Flag of South Korea (1997-2011).svg"},
Line 838 ⟶ 944:
name = "Kuwait",
"Flag of Kuwait.svg",
["Summer Olympics"] = "Flag of Kuwait (3-2).svg",
["Winter Olympics"] = "Flag of Kuwait (3-2).svg",
},
LAO = {
Line 847 ⟶ 955:
name = "Latvia",
"Flag of Latvia.svg",
["Summer Olympics"] = "Flag of Latvia (3-2).svg",
["Winter Olympics"] = "Flag of Latvia (3-2).svg",
},
LBA = {
name = "Libya",
{1968, "Flag of Libya (
{1972, "Flag of Libya (1969–1972).svg"},
{1977, "Flag of Libya (1972–1977).svg"},
{2011, "Flag of Libya (
"Flag of Libya.svg",
},
LBN = {
name = "Lebanon",
{1990, "Flag of Lebanon (1943-1995).svg"},
"Flag of Lebanon.svg",
},
Line 873 ⟶ 984:
LES = {
name = "Lesotho",
{1987, "Flag of Lesotho (
{2006, "Flag of Lesotho (1987-2006).svg"},
"Flag of Lesotho.svg",
Line 881 ⟶ 992:
{1921, "Flag of Liechtenstein (1852-1921).svg"},
{1937, "Flag of Liechtenstein (1921-1937).svg"},
{1982, "Flag of Liechtenstein (1937–1982).svg"},
"Flag of Liechtenstein.svg",
["Summer Olympics"] = {
[1936] = "Flag of Liechtenstein (1936 Summer Olympics).svg",
},
},
LTU = {
Line 888 ⟶ 1,003:
{2004, "Flag of Lithuania (1988-2004).svg"},
"Flag of Lithuania.svg",
["Summer Olympics"] = {
[2004] = "Flag of Lithuania.svg",
},
},
LUX = {
Line 895 ⟶ 1,013:
[1980] = "Olympic flag.svg",
},
},
MAA = {
name = "Sint Maarten",
"Flag of Sint Maarten.svg",
},
MAC = {
Line 930 ⟶ 1,052:
name = "Moldova",
"Flag of Moldova.svg",
["Summer Olympics"] = "Flag of Moldova (3-2).svg",
["Winter Olympics"] = "Flag of Moldova (3-2).svg",
},
MDV = {
Line 938 ⟶ 1,062:
name = "Mexico",
{1916, "Flag of Mexico (1893-1916).svg"},
{1934, "Flag of
{1968, "Flag of Mexico (1934-1968).svg"},
"Flag of Mexico.svg",
["Summer Olympics"] = {
[1968] = "Flag of Mexico.svg",
},
},
MGL = {
name = "Mongolia",
{1991, "Flag of the Mongolian People's Republic
"Flag of Mongolia.svg",
["Winter Olympics"] = {
Line 961 ⟶ 1,088:
name = "Macedonia",
"Flag of Macedonia.svg",
},
MKD_2019 = {
name = "North Macedonia",
"Flag of North Macedonia.svg",
["Summer Olympics"] = "Flag of North Macedonia (3-2).svg",
["Winter Olympics"] = "Flag of North Macedonia (3-2).svg",
},
MLI = {
Line 971 ⟶ 1,104:
{1964, "Flag of Malta (1943-1964).svg"},
"Flag of Malta.svg",
["Summer Olympics"] = {
[1948] = "Flag of Malta (1943).svg",
},
},
MNE = {
Line 991 ⟶ 1,127:
MRI = {
name = "Mauritius",
{1923, "Flag of Mauritius
{1968, "Flag of Mauritius
"Flag of Mauritius.svg",
},
Line 1,003 ⟶ 1,139:
name = "Myanmar",
{1973, "Flag of Burma (1948-1974).svg"},
{
"Flag of Myanmar.svg",
["Summer Youth Olympics"] = {
[2010] = "Flag of Myanmar (1974-2010).svg",
},
},
NAM = {
Line 1,046 ⟶ 1,185:
NGR = {
name = "Nigeria",
{
{1960, "Flag of Nigeria (1952–1960).svg"},
"Flag of Nigeria.svg",
},
Line 1,060 ⟶ 1,200:
name = "Niue",
"Flag of Niue.svg",
["Summer Olympics"] = "Flag of Niue (3-2).svg",
["Winter Olympics"] = "Flag of Niue (3-2).svg",
},
NMI = {
Line 1,072 ⟶ 1,214:
name = "Neutral Paralympic Athletes",
"Paralympic flag.svg",
["Summer Paralympics"] = {
[2024] = "Flag of Neutral Paralympic Athletes (Paris 2024).svg",
},
},
NRH = {
Line 1,120 ⟶ 1,265:
PHI = {
name = "Philippines",
{
{1984, "Flag of the Philippines (
{1986, "Flag_of_the_Philippines_(light_blue).svg"},
{1997, "Flag of the Philippines (
"Flag of the Philippines.svg",
["Asian Games"] = {
Line 1,180 ⟶ 1,325:
name = "Qatar",
"Flag of Qatar.svg",
["Summer Olympics"] = "Flag of Qatar (3-2).svg",
["Winter Olympics"] = "Flag of Qatar (3-2).svg",
},
RHO = {
Line 1,196 ⟶ 1,343:
{1928, "Flag of the Republic of China (1912-1928).svg"},
"Flag of the Republic of China.svg",
},
ROC_Formosa = {
name = "Formosa",
"Flag of the Republic of China.svg",
},
ROC_Taiwan = {
name = "Taiwan",
"Flag of the Republic of China.svg",
},
ROC_2020 = {
name = "ROC",
"Russian Olympic Committee flag.png",
},
ROM = {
Line 1,204 ⟶ 1,363:
{1989, "Flag of Romania (1965-1989).svg"},
"Flag of Romania.svg",
},
RPC = {
name = "RPC",
"Russian Paralympic Committee special emblem (Tokyo 2020, Beijing 2022).jpg",
},
RPT = {
name = "Refugee Paralympic Team",
"Paralympic flag (2019).svg",
},
RSA = {
name = "South Africa",
{
{
{1994, "Flag of South Africa (
"Flag of South Africa.svg",
["Winter Olympics"] = {
Line 1,224 ⟶ 1,391:
RUS = {
name = "Russia",
{1993, "Flag of Russia (1991–1993).svg"},
"Flag of Russia.svg",
},
Line 1,262 ⟶ 1,430:
SEY = {
name = "Seychelles",
{
"Flag of Seychelles.svg",
},
Line 1,288 ⟶ 1,456:
name = "Slovenia",
"Flag of Slovenia.svg",
["Summer Olympics"] = "Civil Ensign of Slovenia.svg",
["Winter Olympics"] = "Civil Ensign of Slovenia.svg",
},
SMF = {
name = "Suspended Member Federation",
{2022, "FINA logo cropped.svg"},
"Flag of World Aquatics.svg",
},
SMR = {
Line 1,320 ⟶ 1,495:
SRI = {
name = "Sri Lanka",
{
{1951, "Flag of Ceylon (1948-1951).svg"},
{1971, "Flag of Ceylon (1951-1972).svg"},
Line 1,331 ⟶ 1,506:
STP = {
name = "São Tomé and Príncipe",
"Flag of
},
SUD = {
Line 1,342 ⟶ 1,517:
"Flag of Switzerland.svg",
["Summer Olympics"] = {
"Civil Ensign of Switzerland (Pantone).svg",
[1980] = "Olympic flag.svg",
["Winter Olympics"] = "Civil Ensign of Switzerland (Pantone).svg",
},
},
Line 1,364 ⟶ 1,541:
name = "Sweden",
{1905, "Swedish civil ensign (1844–1905).svg"},
{1906, "Flag of Sweden (pre-1906).svg"},
"Flag of Sweden.svg",
},
Line 1,376 ⟶ 1,554:
SYR = {
name = "Syria",
{1958, "Flag of Syria (
{1961, "Flag of the United Arab Republic (1958–1971).svg"},
{1963, "Flag of Syria (
{
{
{2024, "Flag of the United Arab Republic (1958–1971), Flag of Syria (1980–2024).svg"},
"Flag of Syria.svg",
},
Line 1,424 ⟶ 1,603:
{1973, "Flag of Turkmen SSR (1956).svg"},
{1991, "Flag of the Turkmen SSR.svg"},
{
{
"Flag of Turkmenistan.svg",
},
TLS = {
name = "
"Flag of East Timor.svg",
},
Line 1,440 ⟶ 1,619:
{1979, "Flag of the Republic of China.svg"},
"Flag of Chinese Taipei for Olympic games.svg",
["Asian Para Games"] = "Chinese Taipei Paralympic Flag.svg",
["Summer Paralympics"] = "Chinese Taipei Paralympic Flag.svg",
Line 1,448 ⟶ 1,624:
["Summer Universiade"] = "Flag of Chinese Taipei for Universiade.svg",
["Winter Universiade"] = "Flag of Chinese Taipei for Universiade.svg",
["Summer World University Games"] = "Flag of Chinese Taipei for Universiade.svg",
["Winter World University Games"] = "Flag of Chinese Taipei for Universiade.svg",
},
TRI = {
name = "Trinidad and Tobago",
{1958, "Flag of Trinidad and Tobago
"Flag of Trinidad and Tobago.svg",
},
TUN = {
name = "Tunisia",
{1999, "
"Flag of Tunisia.svg",
},
Line 1,467 ⟶ 1,645:
name = "Tuvalu",
"Flag of Tuvalu.svg",
["Summer Olympics"] = "Flag of Tuvalu (3-2).svg",
["Winter Olympics"] = "Flag of Tuvalu (3-2).svg",
},
UAE = {
Line 1,489 ⟶ 1,669:
{1936, "Flag of the Soviet Union (1924–1936).svg"},
{1955, "Flag of the Soviet Union (1936–1955).svg"},
"Flag of the Soviet Union.svg",
},
Line 1,506 ⟶ 1,685:
["Summer Olympics"] = {
[1912] = "US flag 48 stars.svg",
[1960] = "Flag of the United States.svg",
},
["Pan American Games"] = {
[1959] = "US flag 49 stars.svg",
},
},
Line 1,511 ⟶ 1,694:
name = "Uzbekistan",
"Flag of Uzbekistan.svg",
["Summer Olympics"] = "Flag of Uzbekistan (3-2).svg",
["Winter Olympics"] = "Flag of Uzbekistan (3-2).svg",
},
VAN = {
Line 1,518 ⟶ 1,703:
VEN = {
name = "Venezuela",
{1930, "Flag of Venezuela (
{1954, "Flag of Venezuela (
{2006, "Flag of Venezuela (
"Flag of Venezuela.svg",
["Summer Olympics"] = {
[2020] = "Flag of Venezuela (state).svg",
[2024] = "Flag of Venezuela (state).svg",
},
},
VIE = {
Line 1,573 ⟶ 1,762:
ZAI = {
name = "Zaire",
"Flag of Zaire (1971–1997).svg",
},
ZAM = {
Line 1,579 ⟶ 1,768:
{1953, "Flag of Northern Rhodesia (1939-1953).svg"},
{1963, "Flag of the Federation of Rhodesia and Nyasaland.svg"},
{
"Flag of Zambia.svg",
},
|