-- 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",
IOA = "AOI",
IRN = "IRI",
JEY = "JER",
LIB = "LBN",
MSR = "MNT",
NIC = "NCA",
NFK = "NFI",
OMN = "OMA",
ROT = "ROA",
ROU = "ROM",
SHN = "SHE",
VIN = "SVG",
SWK = "SAR",
SIN = "SGP",
SAF = "RSA",
TON = "TGA",
TTO = "TRI",
TCI = "TCA",
TKS = "TCA",
EOR = "ROA",
}  
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",
},
},
ADN = {
name = "ஏடன்",
"Flag of the Colony of Aden.svg",
},
AFG = {
name = "ஆப்கானித்தான்",
{1973, "Flag of Afghanistan (1931–1973).svg"},
{1978, "Flag of Afghanistan (1974–1978).svg"},
{1987, "Flag of Afghanistan (1980–1987).svg"},
{1992, "Flag of Afghanistan (1987–1992).svg"},
{1996, "Flag of Afghanistan (1992–2001).svg"},
{2003, "Flag of Afghanistan (2002–2004).svg"},
"Flag of Afghanistan.svg",
},
AHO = {
name = "நெதர்லாந்து அண்டிலிசு",
{1982, "Flag of the Netherlands Antilles (1959–1986).svg"},
{2010, "Flag of the Netherlands Antilles (1986–2010).svg"},
"Flag of the Netherlands.svg",
["Pan American Games"] = {
[2011] = "Flag of PASO.svg",
},
},
AIA = {
name = "அங்கியுலா",
"Flag of Anguilla.svg",
},  
AIN = {
name = "தனிப்பட்ட நடுநிலை விளையாட்டு வீரர்கள்",
"Individual Neutral Athletes at the 2024 Summer Olympics Flag.svg",
},  
ALB = {
name = "அல்பேனியா",
{1992, "Flag of Albania (1946–1992).svg"},
"Flag of Albania.svg",
},
ALG = {
name = "அல்சீரியா",
"Flag of Algeria.svg",
},
ANA = {
name = "Authorised Neutral Athletes",
"ANA flag (2017).svg",
},
AND = {
name = "அந்தோரா",
"Flag of Andorra.svg",
["Summer Olympics"] = {
[1980] = "Olympic flag.svg",
},
},
ANG = {
name = "அங்கோலா",
"Flag of Angola.svg",
},
ANT = {
name = "அன்டிகுவாவும் பர்பியுடாவும்",
{1966, "Missing Blue Ensign.svg"},
"Flag of Antigua and Barbuda.svg",
},
ANZ = {
name = "ஆஸ்திரலேசியா",
"Flag of Australasian team for Olympic games.svg",
},
AOI = {
name = "சார்பற்ற ஒலிம்பிக் போட்டியாளர்கள்",
"Olympic flag.svg",
},
ARG = {
name = "அர்கெந்தீனா",
"Flag of Argentina.svg",
},
ARM = {
name = "ஆர்மீனியா",
"Flag of Armenia.svg",
},
ART = {
name = "Athlete Refugee Team",
"IAAF flag (2017).svg",
["Asian Indoor and Martial Arts Games"] = {
[2017] = "Olympic flag.svg",
},
},
ART_AIMAG = {
name = "Refugee Team",
"Olympic flag.svg",
},
ARU = {
name = "அரூபா",
"Flag of Aruba.svg",
},
ASA = {
name = "அமெரிக்க சமோவா",
"Flag of American Samoa.svg",
},
AUS = {
name = "ஆத்திரேலியா",
{1900, "Flag of the United Kingdom.svg"},
{1909, "Flag of Australia (1903–1908).svg"},
"Flag of Australia.svg",
["Summer Olympics"] = {
[1980] = "Olympic flag.svg",
},
},
AUT = {
name = "ஆஸ்திரியா",
{1912, "Flag of the Habsburg Monarchy.svg"},
"Flag of Austria.svg",
},
AZE = {
name = "அசர்பைஜான்",
"Flag of Azerbaijan.svg",
},
BAH = {
name = "பகாமாசு",
{1923, "Flag of the Bahamas (1904–1923).svg"},
{1953, "Flag of the Bahamas (1923–1953).svg"},
{1964, "Flag of the Bahamas (1953–1964).svg"},
{1972, "Flag of the Bahamas (1964–1973).png"},
"Flag of the Bahamas.svg",
},
BAN = {
name = "வங்காளதேசம்",
"Flag of Bangladesh.svg",
},
BAR = {
name = "பார்படோசு",
{1966, "Flag of Barbados (1870–1966).svg"},
"Flag of Barbados.svg",
},
BDI = {
name = "புருண்டி",
"Flag of Burundi.svg",
},
BEL = {
name = "பெல்ஜியம்",
"Flag of Belgium (civil).svg",
["Summer Olympics"] = {
[1980] = "Olympic flag.svg",
},
},
BEN = {
name = "பெனின்",
{1990, "Flag of Benin (1975–1990).svg"},
"Flag of Benin.svg",
},
BER = {
name = "பெர்முடா",
{1999, "Flag of Bermuda (1910–1999).svg"},
"Flag of Bermuda.svg",
},
BGU = {
name = "British Guiana",
{1906, "Flag of British Guiana (1875–1906).svg"},
{1919, "Flag of British Guiana (1906–1919).svg"},
{1955, "Flag of British Guiana (1919–1955).svg"},
"Flag of British Guiana (1955–1966).svg",
},
BHN = {
name = "பகுரைன்",
{2001, "Flag of Bahrain (1972–2002).svg"},
"Flag of Bahrain.svg",
},
BHU = {
name = "பூட்டான்",
"Flag of Bhutan.svg",
},
BIH = {
name = "பொசுனியா எர்செகோவினா",
{1998, "Flag of Bosnia and Herzegovina (1992–1998).svg"},
"Flag of Bosnia and Herzegovina.svg",
},
BIR = {
name = "மியான்மர்",
{1973, "Flag of Burma (1948–1974).svg"},
{2010, "Flag of Myanmar (1974–2010).svg"},
"Flag of Myanmar.svg",
},
BIZ = {
name = "பெலீசு",
{1981, "Flag of British Honduras (1919-1981).svg"},
"Flag of Belize.svg",
},
BLR = {
name = "பெலருஸ்",
{1991, "Flag of Byelorussian SSR.svg"},
{1994, "Flag of Belarus (1918, 1991-1995).svg"},
{2012, "Flag of Belarus (1995-2012).svg"},
"Flag of Belarus.svg",
},
BNB = {
name = "British North Borneo",
"Flag of North Borneo (1948-1963).svg",
},
BOH = {
name = "Bohemia",
"Flag of Bohemia.svg",
["Summer Olympics"] = {
[1912] = "Bohemian Olympic Flag (1912).png",
},
},
BOL = {
name = "பொலிவியா",
"Flag of Bolivia.svg",
},
BOT = {
name = "போட்சுவானா",
"Flag of Botswana.svg",
},
BRA = {
name = "பிரேசில்",
{1960, "Flag of Brazil (1889-1960).svg"},
{1968, "Flag of Brazil (1960-1968).svg"},
{1992, "Flag of Brazil (1968-1992).svg"},
"Flag of Brazil.svg",
},
BRU = {
name = "புரூணை",
"Flag of Brunei.svg",
},
BUL = {
name = "பல்காரியா",
{1946, "Flag of Bulgaria.svg"},
{1948, "Flag of Bulgaria (1946-1948).svg"},
{1967, "Flag of Bulgaria (1948-1967).svg"},
{1971, "Flag of Bulgaria (1967-1971).svg"},
{1990, "Flag of Bulgaria (1971-1990).svg"},
"Flag of Bulgaria.svg",
},
BUR = {
name = "புர்க்கினா பாசோ",
"Flag of Burkina Faso.svg",
},
BWI = {
name = "British West Indies",
"Flag of the West Indies Federation.svg",
},
CAF = {
name = "மத்திய ஆப்பிரிக்கக் குடியரசு",
"Flag of the Central African Republic.svg",
},
CAM = {
name = "கம்போடியா",
{1970, "Flag of Cambodia.svg"},
{1975, "Flag of the Khmer Republic.svg"},
{1989, "Flag of the People's Republic of Kampuchea.svg"},
{1991, "Flag of the State of Cambodia.svg"},
{1993, "Flag of Cambodia under UNTAC.svg"},
"Flag of Cambodia.svg",
},
CAN = {
name = "கனடா",
{1921, "Canadian Red Ensign (1868-1921).svg"},
{1957, "Canadian Red Ensign (1921-1957).svg"},
{1965, "Canadian Red Ensign (1957-1965).svg"},
"Flag of Canada (Pantone).svg",
["Summer Olympics"] = {
[1936] = "Canadian Red Ensign 1921-1957 (with disc).svg",
},
},
CAY = {
name = "கேமன் தீவுகள்",
{1999, "Flag of the Cayman Islands (pre-1999).svg"},
"Flag of the Cayman Islands.svg",
},
CEY = {
name = "இலங்கை",
{1948, "British Ceylon flag.svg"},
{1951, "Flag of Ceylon (1948-1951).svg"},
{1971, "Flag of Ceylon (1951-1972).svg"},
"Flag of Sri Lanka.svg",
},
CGO = {
name = "கொங்கோ குடியரசு",
{1988, "Flag of the People's Republic of Congo.svg"},
"Flag of the Republic of the Congo.svg",
},
CHA = {
name = "சாட்",
"Flag of Chad.svg",
},
CHI = {
name = "சிலி",
"Flag of Chile.svg",
},
CHN = {
name = "சீனா",
"Flag of the People's Republic of China.svg",
},
CIV = {
name = "கோட் டிவார்",
"Flag of Côte d'Ivoire.svg",
},
CMR = {
name = "கமரூன்",
{1975, "Flag of Cameroon (1961-1975).svg"},
"Flag of Cameroon.svg",
},
COD = {
name = "காங்கோ மக்களாட்சிக் குடியரசு",
{1971, "Flag of Congo-Kinshasa (1966-1971).svg"},
{1996, "Flag of Zaire.svg"},
{2003, "Flag of the Democratic Republic of the Congo (1997-2003).svg"},
{2006, "Flag of the Democratic Republic of the Congo (2003-2006).svg"},
"Flag of the Democratic Republic of the Congo.svg",
},
COK = {
name = "குக் தீவுகள்",
{1979, "Flag of the Cook Islands (1973-1979).svg"},
"Flag of the Cook Islands.svg",
},
COL = {
name = "கொலம்பியா",
"Flag of Colombia.svg",
},
COM = {
name = "கொமொரோசு",
{1996, "Flag of the Comoros (1992-1996).svg"},
{2001, "Flag of the Comoros (1996-2001).svg"},
"Flag of the Comoros.svg",
},
COR = {
name = "கொரியா",
"Unification flag of Korea.svg",
["Winter Olympics"] = {