Modulis:Country alias/Smilšu kaste
Šī ir Modulis:Country alias moduļa smilšu kastes lapa (labojumi). |
Moduļa dokumentācija[izveidot]
Iespējams, vēlies izveidot dokumentāciju šim modulim Vari eksperimentēt šī moduļa smilšu kastes (labot | labojumi) un testu (izveidot) lapā Lūdzu, kategorijas pievieno dokumentācijas apakšlapā. Moduļa apakšlapas. |
-- This module returns the country name or the flag name for a country,
-- based on the three-letter IOC/CGA/FINA alias.
--[[
The following country code is used for multiple countries
ANG (workaround: added ANG_CGF for use with Commonwealth Games)
The following names have different names/flags based on sport/year
Great Britain (and N.I.) GBR, GBR_WCA (latter added to add text in parens)
Hong Kong HKG, HKG_CGF (latter added to keep colonial flag)
Individual Olympic Athletes IOA, IOA_2000 (IOA changed to Independent Olympic Athletes in 2012)
Russian Athletes OAR (2018), ROC_2020 (2020 Summer, 2022 Winter)
SWZ Swaziland became Eswatini after the 2018 Commonwealth Games
MKD Macedonia became North Macedonia in 2019
ART No "athlete" before Refugee Team @ 2017 AIMAG
The following countries have multiple aliases due to CGF/IOC/FINA/IAAF/etc differences, or deprecated uses
Anguilla AIA, ANG_CGF
Antigua and Barbuda ANT, ATG
Bahrain BHN, BHR, BRN
Curação CUR, CUW
East Timor TLS, TMP
Faroe Islands FAR, FRO
Guernsey GGY, GUE
Iran IRI, IRN
Ireland IRE, IRL - IRE is «only» used for CGF apps
Jersey JER, JEY
Lebanon LIB, LBN
Montserrat MNT, MSR
Nicaragua NCA, NIC
Norfolk Island NFI, NFK
Oman OMA, OMN
Refugee Olympic Team ROA, ROT, EOR
Romania ROM, ROU
Saint Helena SHE, SHN
Saint Vincent and the Grenadines SVG, VIN
Sarawak SAR, SWK
Singapore SIN, SGP
South Africa RSA, SAF
Tonga TON, TGA
Trinidad and Tobago TRI, TTO
Turks and Caicos Islands TCA, TKI, TKS
Oddity that needs to be revisited
French Polynesia PYF, TAH - TAH has been converted to Tahiti per Silence
]]
local countries = {
EXA = { -- Piemērs testēšanai
name = "Piemēra Valsts",
{1951, "Flag1951.svg"}, -- gads <= 1951
{1995, "Flag1995.svg"}, -- 1951 <gads <= 1995
"Flag of test.svg", -- citādi
["paraolimpiskās spēles"] = "Paralympics.svg",
["vasaras olimpiskajās spēlēs"] = {
[1948] = "SO1948.svg",
[1952] = "SO1952.svg",
[1980] = "SO1980.svg",
},
["ziemas olimpiskajās spēlēs"] = {
[1956] = "SO1956.svg",
[1964] = "SO1964.svg",
},
},
ADN = {
name = "Adena",
"Flag of the Colony of Aden.svg",
},
AFG = {
name = "Afganistāna",
{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"},
{2021, "Flag of Afghanistan (2013–2021).svg"},
"Flag of Afghanistan.svg",
},
AHO = {
name = "Nīderlandes Antiļas",
{1985, "Flag of the Netherlands Antilles (1959–1986).svg"},
"Flag of the Netherlands Antilles (1986–2010).svg",
["panamerikas spēlēs"] = {
[2011] = "Flag of PASO.svg",
},
},
AIA = {
name = "Angilja",
"Flag of Anguilla.svg",
},
ALB = {
name = "Albānija",
{1991, "Flag of Albania (1946–1992).svg"},
{2001, "Flag of Albania (1992–2002).svg"},
"Flag of Albania.svg",
},
ALG = {
name = "Alžīrija",
"Flag of Algeria.svg",
},
AND = {
name = "Andora",
"Flag of Andorra.svg",
["vasaras olimpiskajās spēlēs"] = {
[1976] = "Flag of Andorra (civil).svg",
[1980] = "Olympic flag.svg",
},
},
ANG = {
name = "Angola",
"Flag of Angola.svg",
},
ANT = {
name = "Antigva un Barbuda",
{1966, "Flag of Antigua and Barbuda (1962–1967).svg"},
"Flag of Antigua and Barbuda.svg",
},
ANZ = {
name = "Austrālāzija",
"Flag of the Australasian team for the Olympic games.svg",
},
ART = {
name = "Bēgļu olimpiskā komanda",
"IAAF flag (2017).svg",
},
AOI = {
name = "Neatkarīgie olimpiske sportisti",
"Olympic flag.svg",
},
ARG = {
name = "Argentīna",
{2010, "Flag of Argentina (1861–2010).svg"},
"Flag of Argentina.svg",
},
ARM = {
name = "Armēnija",
"Flag of Armenia.svg",
},
ARU = {
name = "Aruba",
"Flag of Aruba.svg",
},
ASA = {
name = "ASV Samoa",
"Flag of American Samoa.svg",
},
AUS = {
name = "Austrālija",
{1900, "Flag of the United Kingdom.svg"},
{1909, "Flag of Australia (1903–1908).svg"},
"Flag of Australia.svg",
["ziemas olimpiskajās spēlēs"] = {
[1952] = "Civil Ensign of Australia.svg",
},
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
AUT = {
name = "Austrija",
{1912, "Flag of Habsburg Monarchy.svg"},
"Flag of Austria.svg",
},
AZE = {
name = "Azerbaidžāna",
{2013, "Flag of Azerbaijan (1991–2013).svg"},
"Flag of Azerbaijan.svg",
},
BAH = {
name = "Bahamas",
{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).svg"},
"Flag of the Bahamas.svg",
},
BAN = {
name = "Bangladeša",
"Flag of Bangladesh.svg",
},
BAR = {
name = "Barbadosa",
{1966, "Flag of Barbados (1870–1966).svg"},
"Flag of Barbados.svg",
},
BDI = {
name = "Burundija",
"Flag of Burundi.svg",
},
BEL = {
name = "Beļģija",
"Flag of Belgium (civil).svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
BEN = {
name = "Benina",
{1990, "Flag of Benin (1975–1990).svg"},
"Flag of Benin.svg",
},
BER = {
name = "Bermuda",
{1999, "Flag of Bermuda (1910–1999).svg"},
"Flag of Bermuda.svg",
},
BGU = {
name = "Britu Gvijāna",
{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 = "Bahreina",
{2001, "Flag of Bahrain (1972-2002).svg"},
},
BHU = {
name = "Butāna",
"Flag of Bhutan.svg",
},
BIH = {
name = "Bosnija un Hercegovina",
{1997, "Flag of Bosnia and Hercegovina (1992–1998).svg"},
"Flag of Bosnia and Herzegovina.svg",
},
BIR = {
name = "Birma",
{1973, "Flag of Burma (1948–1974).svg"},
{2010, "Flag of Myanmar (1974–2010).svg"},
"Flag of Myanmar.svg",
},
BIZ = {
name = "Beliza",
{1981, "Flag of British Honduras (1919–1981).svg"},
{2019, "Flag of Belize (1981–2019).svg"},
"Flag of Belize.svg",
},
BLR = {
name = "Baltkrievija",
{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 = "Ziemeļborneo",
"Flag of North Borneo (1948–1963).svg",
},
BOH = {
name = "Bohēmija",
"Flag of Bohemia.svg",
["vasaras olimpiskajās spēlēs"] = {
[1912] = "Bohemian Olympic Flag 1912.svg",
},
},
BOL = {
name = "Bolīvija",
"Flag of Bolivia.svg",
},
BOT = {
name = "Botsvāna",
"Flag of Botswana.svg",
},
BRA = {
name = "Brazīlija",
{1960, "Flag of Brazil (1889–1960).svg"},
{1968, "Flag of Brazil (1960–1968).svg"},
{1991, "Flag of Brazil (1968–1992).svg"},
"Flag of Brazil.svg",
["vasaras olimpiskajās spēlēs"] = {
[1960] = "Flag of Brazil (1960–1968).svg",
[1968] = "Flag of Brazil (1968–1992).svg",
},
["ziemas olimpiskajās spēlēs"] = {
[1992] = "Flag of Brazil (1968–1992).svg",
},
},
BRU = {
name = "Bruneja",
"Flag of Brunei.svg",
},
BUL = {
name = "Bulgārija",
{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 = "Burkinafaso",
"Flag of Burkina Faso.svg",
},
BWI = {
name = "Britu Vestindija",
"Flag of the West Indies Federation (1958–1962).svg",
},
CAF = {
name = "Centrālāfrikas Republika",
"Flag of the Central African Republic.svg",
},
CAM = {
name = "Kambodža",
{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 = "Kanāda",
{1921, "Flag of Canada (1868–1921).svg"},
{1957, "Flag of Canada (1921-1957).svg"},
{1965, "Flag of Canada (1957-1965).svg"},
"Flag of Canada (Pantone).svg",
["vasaras olimpiskajās spēlēs"] = {
[1936] = "Canadian Red Ensign 1921-1957 (with disc).svg",
},
},
CAY = {
name = "Kaimanu Salas",
{2020, "Flag of the Cayman Islands (pre-1999).svg"},
"Flag of the Cayman Islands.svg",
["Nācijas Sadraudzības spēles"] = {
[2002] = "Flag of the Cayman Islands.svg",
[2006] = "Flag of the Cayman Islands.svg",
[2010] = "Flag of the Cayman Islands.svg",
},
},
CEY = {
name = "Ceilona",
{1947, "Flag of Ceylon (1875-1948).svg"},
{1951, "Flag of Ceylon (1948–1951).svg"},
{1971, "Flag of Ceylon (1951–1972).svg"},
"Flag of Sri Lanka.svg",
},
CGO = {
name = "Kongo Republika",
{1970, "Flag of the Republic of the Congo.svg"},
{1990, "Flag of the People's Republic of the Congo.svg"},
"Flag of the Republic of the Congo.svg",
},
CHA = {
name = "Čada",
"Flag of Chad.svg",
},
CHI = {
name = "Čīle",
"Flag of Chile.svg",
},
CHN = {
name = "Ķīna",
"Flag of the People's Republic of China.svg",
},
CIV = {
name = "Kotdivuāra",
"Flag of Côte d'Ivoire.svg",
},
CMR = {
name = "Kamerūna",
{1975, "Flag of Cameroon (1961-1975).svg"},
"Flag of Cameroon.svg",
},
COD = {
name = "Kongo Demokrātiskā Republika",
{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 = "Kuka Salas",
{1979, "Flag of the Cook Islands (1973-1979).svg"},
"Flag of the Cook Islands.svg",
},
COK_COD = {
name = "Kongo-Kinšasa",
"Flag of Congo-Kinshasa (1966–1971).svg",
},
COL = {
name = "Kolumbija",
"Flag of Colombia.svg",
},
COM = {
name = "Komoras",
{1996, "Flag of the Comoros (1992–1996).svg"},
{2001, "Flag of the Comoros (1996–2001).svg"},
"Flag of the Comoros.svg",
},
COR = {
name = "Koreja",
"Unification flag of korea.svg",
["ziemas olimpiskajās spēlēs"] = {
[2018] = "Unification flag of Korea (pre-2006).svg",
},
},
CPV = {
name = "Kaboverda",
"Flag of Cape Verde.svg",
},
CRC = {
name = "Kostarika",
"Flag of Costa Rica.svg",
},
CRO = {
name = "Horvātija",
"Flag of Croatia.svg",
},
CUB = {
name = "Kuba",
"Flag of Cuba.svg",
},
CUR = {
name = "Kirasao",
"Flag of Curacao.svg",
},
CYP = {
name = "Kipra",
{2006, "Flag of Cyprus (1960–2006).svg"},
"Flag of Cyprus.svg",
},
CZE = {
name = "Čehija",
"Flag of the Czech Republic.svg",
},
DAH = {
name = "Dahomeja",
"Flag of Benin.svg",
},
DEN = {
name = "Dānija",
"Flag of Denmark.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
DJI = {
name = "Džibutija",
"Flag of Djibouti.svg",
},
DMA = {
name = "Dominika",
{1965, "Flag of Dominica (1955–1965).svg"},
{1978, "Flag of Dominica (1965–1978).svg"},
{1981, "Flag of Dominica (1978–1981).svg"},
{1988, "Flag of Dominica (1981–1988).svg"},
{1990, "Flag of Dominica (1988–1990).svg"},
"Flag of Dominica.svg",
},
DOM = {
name = "Dominikāna",
"Flag of the Dominican Republic.svg",
},
ECU = {
name = "Ekvadora",
{2009, "Flag of Ecuador (1900–2009).svg"},
"Flag of Ecuador.svg",
},
EGY = {
name = "Ēģipte",
{1922, "Flag of Egypt (1882-1922).svg"},
{1952, "Flag of Egypt (1922–1953).svg"},
{1958, "Flag of Egypt (1953–1958).svg"},
{1971, "Flag of the United Arab Republic (1958–1971).svg"},
{1984, "Flag of Egypt (1972—1984).svg"},
"Flag of Egypt.svg",
},
ENG = {
name = "Anglija",
"Flag of England.svg",
},
ERI = {
name = "Eritreja",
"Flag of Eritrea.svg",
},
ESA = {
name = "Salvadora",
"Flag of El Salvador.svg",
},
ESP = {
name = "Spānija",
{1931, "Flag of Spain (1785-1873, 1875–1931).svg"},
{1939, "Flag of Spain (1931-1939).svg"},
{1977, "Flag of Spain (1945–1977).svg"},
{1981, "Flag of Spain (1977—1981).svg"},
"Flag of Spain.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Spain Olympic Flag 1980.svg",
},
},
EST = {
name = "Igaunija",
"Flag of Estonia.svg",
},
ETH = {
name = "Etiopija",
{1974, "Flag of Ethiopia (1897–1974).svg"},
{1975, "Flag of Ethiopia (1974–1975).svg"},
{1987, "Flag of Ethiopia (1975–1987).svg"},
{1991, "Flag of Ethiopia (1987–1991).svg"},
{1995, "Flag of Ethiopia (1991–1996).svg"},
{2009, "Flag of Ethiopia (1996—2009).svg"},
"Flag of Ethiopia.svg",
["vasaras olimpiskajās spēlēs"] = {
[1992] = "Flag of Ethiopia (1987–1991).svg",
},
},
EUA = {
name = "Vācijas apvienotā komanda",
{1959, "Flag of Germany.svg"},
"Flag of German Olympic Team (1959-1968).svg",
},
EUN = {
name = "Apvienotā komanda",
"Olympic flag.svg",
["Paraolimpiskas spēles"] = "Paralympics logo (1988-1994).svg",
["ziemas paralimpiskajās spēlēs"] = "Paralympics logo (1988-1994).svg",
["vasaras paralimpiskajās spēlēs"] = "Paralympics logo (1988-1994).svg",
},
FAI = {
name = "Folklenda Salas",
{1999, "Flag of the Falkland Islands (1948–1999).svg"},
"Flag of the Falkland Islands.svg",
},
FAR = {
name = "Fēru Salas",
"Flag of the Faroe Islands.svg",
},
FIJ = {
name = "Fidži",
{1970, "Flag of Fiji (1924-1970).svg"},
"Flag of Fiji.svg",
},
FIN = {
name = "Somija",
{1912, "Flag of Russia.svg"},
"Flag of Finland.svg",
},
FR_YUG = {
name = "FR Dienvidslāvija",
"Flag of Yugoslavia (1992-2003); Flag of Serbia and Montenegro (2003-2006).svg",
},
FRA = {
name = "Francija",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
"Flag of France.svg",
},
},
FRG = {
name = "Rietumvācija",
{1959, "Flag of Germany.svg"},
{1968, "Flag of German Olympic Team (1959-1968).svg"},
"Flag of Germany.svg",
},
FSA = {
name = "Dienvidārabijas Federācija",
"Flag of the South Arabian Federation.svg",
},
FSM = {
name = "Mikronēzijas Federatīvās Valstis",
"Flag of the Federated States of Micronesia.svg",
},
GAB = {
name = "Gabona",
"Flag of Gabon.svg",
},
GAM = {
name = "Gambija",
"Flag of the Gambia.svg",
},
GBR = {
name = "Lielbritānija",
"Flag of the United Kingdom.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
GBR_WCA = {
name = "Lielbritānija un Ziemeļīrija",
"Flag of the United Kingdom.svg",
},
GBS = {
name = "Gvineja-Bisava",
"Flag of Guinea-Bissau.svg",
},
GBO = {
name = "Zelta Krasts",
"Flag of the Gold Coast (1877–1957).svg",
},
GDR = {
name = "Austrumvācija",
{1959, "Flag of East Germany.svg"},
{1968, "Flag of the German Olympic Team (1959-1968).svg"},
"Flag of East Germany.svg",
},
GEO = {
name = "Gruzija",
{2003, "Flag of Georgia (1990–2004).svg"},
"Flag of Georgia.svg",
},
GEQ = {
name = "Ekvatoriālā Gvineja",
"Flag of Equatorial Guinea.svg,"
},
GHA = {
name = "Gana",
{1957, "Flag of the Gold Coast (1877–1957).svg"},
{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"},
"Flag of Ghana.svg",
},
GER = {
name = "Vācija",
{1912, "Flag of the German Empire.svg"},
{1932, "Flag of Germany (3-2 aspect ratio).svg"},
{1945, "Flag of Germany (1935–1945).svg"},
"Flag of Germany.svg",
},
GIB = {
name = "Gibraltārs",
"Flag of Gibraltar.svg",
},
GRE = {
name = "Grieķija",
{1969, "Flag of Greece (1828-1978).svg"},
{1975, "Flag of Greece (1970-1975).svg"},
{1978, "Flag of Greece (1828-1978).svg"},
"Flag of Greece.svg",
["ziemas olimpiskajās spēlēs"] = {
[1976] = "Flag of Greece.svg",
},
},
GRN = {
name = "Grenāda",
{1974, "Flag of Grenada (1967–1974).svg"},
"Flag of Grenada.svg",
},
GUA = {
name = "Gvatemala",
"Flag of Guatemala.svg",
},
GUE = {
name = "Gērnsija",
{1936, "Flag of Guernsey (1936).svg"},
"Flag of Guernsey.svg",
},
GUI = {
name = "Gvineja",
"Flag of Guinea.svg",
},
GUM = {
name = "Guama",
"Flag of Guam.svg",
},
GUY = {
name = "Gajāna",
{1906, "Flag of British Guiana (1875–1906).svg"},
{1919, "Flag of British Guiana (1906–1919).svg"},
{1955, "Flag of British Guiana (1919–1955).svg"},
{1966, "Flag of British Guiana (1955–1966).svg"},
"Flag of Guyana.svg",
},
HAI = {
name = "Haiti",
{1963, "Flag of Haiti (1859–1964).svg"},
{1986, "Flag of Haiti (1964–1986).svg"},
"Flag of Haiti.svg",
},
HBR = {
name = "Britu Hondurasa",
"Flag of British Honduras (1919–1981).svg",
},
HKG = {
name = "Honkonga",
{1955, "Flag of Hong Kong (1876—1941 and (1945—1955).svg"},
{1959, "Flag of Hong Kong (1955–1959).svg"},
{1997, "Flag of Hong Kong (1959-1997).svg"},
"Flag of Hong Kong.svg",
},
HKG_CGF = {
name = "Honkonga",
{1955, "Flag of Hong Kong 1876.svg"},
{1959, "Flag of Hong Kong 1955.svg"},
{1997, "Flag of Hong Kong 1959.svg"},
"Flag of Hong Kong.svg",
},
HON = {
name = "Hondurasa",
{1949, "Flag of Honduras (1866–1949).svg"},
{2022, "Flag of Honduras (1949–2022).svg"},
"Flag of Honduras.svg",
},
HUN = {
name = "Ungārija",
{1918, "Flag of Hungary (1867-1918).svg"},
{1946, "Flag of Hungary (1915-1918, 1919-1946; (3-2 aspect ratio).svg"},
{1949, "Flag of Hungary (1946-1949, 1956-1957).svg"},
{1955, "Flag of Hungary (1949-1956).svg"},
{1957, "Flag of Hungary (1946-1949, 1956-1957).svg"},
"Flag of Hungary.svg",
},
IFS = {
name = "Īrijas Brīvvalsts",
"Flag of Ireland.svg",
},
INA = {
name = "Indonēzija",
"Flag of Indonesia.svg",
},
IND = {
name = "Indija",
{1946, "British Raj Red Ensign.svg"},
{2012, "Flag of India.svg"},
"Flag of India.svg",
["vasaras olimpiskajās spēlēs"] = {
[1936] = "Flag of the Governor-General of India (1885–1947).svg",
},
},
IOA = {
name = "Neatkarīgie olimpiskie sportisti",
"Olympic flag.svg",
},
IOC = {
name = "Sportisti no Kuveitas",
"Olympic flag.svg",
},
IOP = {
name = "Neatkarīgie olimpiskie dalibnīeki",
"Olympic flag.svg",
},
IPA = {
name = "Individuāli paralimpiskie sportisti",
"Paralympic flag.svg",
},
IRE = {
name = "Īrija",
"Green harp flag of Ireland.svg",
},
IRI = {
name = "Irāna",
{1932, "Early 20th Century Qajar Flag.svg"},
{1964, "State Flag of Iran (1933–1964).svg"},
{1980, "State Flag of Iran (1964–1980).svg"},
"Flag of Iran.svg",
["vasaras olimpiskajās spēlēs"] = {
[1964] = "State Flag of Iran (1964–1980).svg",
},
},
IRL = {
name = "Īrija",
"Flag of Ireland.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
IRQ = {
name = "Irāka",
{1959, "Flag of Iraq (1921–1959).svg"},
{1963, "Flag of Iraq (1959–1963).svg"},
{1991, "Flag of Iraq (1963-1991).svg"},
{2003, "Flag of Iraq (1991–2004).svg"},
{2007, "Flag of Iraq (2004–2008).svg"},
"Flag of Iraq.svg",
},
ISL = {
name = "Islande",
{1915, "Flag of Denmark.svg"},
{1944, "Light Blue Flag of Iceland.svg"},
"Flag of Iceland.svg",
},
ISR = {
name = "Israēla",
"Flag of Israel.svg",
},
ISV = {
name = "ASV Virdžīnas",
"Flag of the United States Virgin Islands.svg",
},
ITA = {
name = "Itālija",
{1946, "Flag of Italy (1861–1946).svg"},
{2003, "Flag of Italy.svg"},
{2006, "Flag of Italy (2003–2006).svg"},
"Flag of Italy.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
IVB = {
name = "Britu Virdžīnas",
"Flag of the British Virgin Islands.svg",
},
JAM = {
name = "Jamaika",
{1957, "Flag of Jamaica (1906–1957).svg"},
{1962, "Flag of Jamaica (1957–1962).svg"},
"Flag of Jamaica.svg",
},
JPN = {
name = "Japāna",
{1999, "Flag of Japan (1870–1999).svg"},
"Flag of Japan.svg",
},
JER = {
name = "Džērsija",
"Flag of Jersey.svg",
},
JOR = {
name = "Jordānija",
"Flag of Jordan.svg",
},
KAZ = {
name = "Kazahstāna",
"Flag of Kazakhstan.svg",
},
KEN = {
name = "Kenija",
{1963, "Flag of Kenya (1921–1963).svg"},
"Flag of Kenya.svg",
},
KGZ = {
name = "Kirgizstāna",
"Flag of Kyrgyzstan.svg",
},
KHM = {
name = "Khmeru Republika",
"Flag of the Khmer Republic.svg",
},
KIR = {
name = "Kiribati",
"Flag of Kiribati.svg",
},
KOR = {
name = "Dienvidkoreja",
{1948, "Flag of South Korea (1945–1948).svg"},
{1949, "Flag of South Korea (1948–1949).svg"},
{1984, "Flag of South Korea (1949–1984).svg"},
{1997, "Flag of South Korea (1984–1997).svg"},
{2011, "Flag of South Korea (1997–2011).svg"},
"Flag of South Korea.svg",
},
KOS = {
name = "Kosova",
"Flag of Kosovo.svg",
},
KSA = {
name = "Saūda Arābija",
{1973, "Flag of Saudi Arabia (1938–1973).svg"},
"Flag of Saudi Arabia.svg",
},
KUW = {
name = "Kuveita",
"Flag of Kuwait.svg",
},
LAO = {
name = "Laosa",
{1975, "Flag of Laos (1952–1975).svg"},
"Flag of Laos.svg",
},
LAT = {
name = "Latvija",
"Flag of Latvia.svg",
},
LBA = {
name = "Lībija",
{1968, "Flag of Libya (1951–1969).svg"},
{1972, "Flag of Libya (1969–1972).svg"},
{1977, "Flag of Libya (1972–1977).svg"},
{2011, "Flag of Libya (1977–2011).svg"},
"Flag of Libya.svg",
},
LBN = {
name = "Libāna",
"Flag of Lebanon.svg",
},
LBR = {
name = "Libērija",
"Flag of Liberia.svg",
},
LCA = {
name = "Sentlūsija",
{1967, "Flag of Saint Lucia (1939–1967).svg"},
{1979, "Flag of Saint Lucia (1967-1979).svg"},
{2002, "Flag of Saint Lucia (1979–2002).svg"},
"Flag of Saint Lucia.svg",
},
LES = {
name = "Lesoto",
{1987, "Flag of Lesotho (1966-1987).svg"},
{2006, "Flag of Lesotho (1987–2006).svg"},
"Flag of Lesotho.svg",
},
LIE = {
name = "Lihtenšteina",
{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",
["vasaras olimpiskajãs spélés"] = {
[1936] = "Flag of Liechtenstein (1936 Summer Olympics (with crown).svg",
},
},
LTU = {
name = "Lietuva",
{1940, "Flag of Lithuania (1918–1940).svg"},
{2004, "Flag of Lithuania (1988–2004).svg"},
"Flag of Lithuania.svg",
["vasaras olimpiskajās spēlēs"] = {
[2004] = "Flag of Lithuania.svg",
},
},
LUX = {
name = "Luksemburga",
"Flag of Luxembourg.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
MAA = {
name = "Sintmārtena",
"Flag of Sint Maarten.svg",
},
MAC = {
name = "Makao",
{1999, "Bandeira do Leal Senado.svg"},
"Flag of Macau.svg",
},
MAD = {
name = "Madagsakara",
"Flag of Madagascar.svg",
},
MAL = {
name = "Malāja",
"Flag of Malaya.svg",
},
MAR = {
name = "Marokas",
"Flag of Morocco.svg",
},
MAS = {
name = "Malaizija",
{1963, "Flag of Malaya.svg",
"Flag of Malaysia.svg",
},
MAW = {
name = "Malāvija",
{2009, "Flag of Malawi.svg"},
{2012, "Flag of Malawi (2010–2012).svg"},
"Flag of Malawi.svg",
["vasaras olimpiskajās spēlēs"] = {
[2012] = "Flag of Malawi.svg",
},
},
MDA = {
name = "Moldova",
"Flag of Moldova.svg",
},
MDV = {
name = "Maldīvija",
"Flag of Maldives.svg",
},
MEX = {
name = "Meksika",
{1916, "Flag of Mexico (1893-1916).svg"},
{1934, "Flag of Mexico (1916–1934).svg"},
{1968, "Flag of Mexico (1934–1968).svg"},
["vasaras olimpiskajās spēlēs"] = {
[1968] = "Flag of Mexico.svg",
},
},
MGL = {
name = "Mongolija",
{1991, "Flag of the Mongolian People's Republic (1945–1992).svg"},
"Flag of Mongolia.svg",
["ziemas olimpiskajās spēlēs"] = {
[1992] = "Flag of the Mongolian People's Republic (1945–1992).svg",
},
},
MHL = {
name = "Māršala Salas",
"Flag of the Marshall Islands.svg",
},
MKD = {
name = "Maķedonija",
"Flag of Macedonia.svg",
},
MKD_2019 = {
name = "Ziemeļmaķedonija",
"Flag of North Macedonia.svg",
},
MLI = {
name = "Mali",
"Flag of Mali.svg",
},
MLT = {
name = "Malta",
{1943, "Flag of Malta (1923–1943).svg"},
{1964, "Flag of Malta (1943–1964).svg"},
"Flag of Malta.svg",
["vasaras olimpiskajās spēlēs"] = {
[1948] = "Flag of Malta (1943).svg",
},
},
MNE = {
name = "Melnkalne",
"Flag of Montenegro.svg",
},
MNT = {
name = "Montserrata",
"Flag of Montserrat.svg",
},
MON = {
name = "Monaka",
"Flag of Monaco.svg"},
},
MOZ = {
name = "Mozambika",
{1975, "Flag of Mozambique (1974–1975).svg"},
{1983, "Flag of Mozambique (1975–1983).svg"},
"Flag of Mozambique.svg",
},
MRI = {
name = "Maurīcija",
{1923, "Flag of Mauritius (1906–1923).svg"},
{1968, "Flag of Mauritius (1923–1968).svg"},
"Flag of Mauritius.svg",
},
MTN = {
name = "Mauritānija",
{2016, "Flag of Mauritania (1959–2017).svg"},
"Flag of Mauritania.svg",
},
MYA = {
name = "Mjanma",
{1973, "Flag of Burma (1948–1974).svg"},
{2010, "Flag of Myanmar (1974–2010).svg"},
"Flag of Myanmar.svg",
},
NAM = {
name = "Namībija",
"Flag of Namibia.svg",
},
NBO = {
name = "Ziemeļborneo",
"Flag of North Borneo (1948–1963).svg",
},
NCA = {
name = "Nikaragva",
"Flag of Nicaragua.svg",
},
NCL = {
name = "Jaunkaledonija",
"Flag of New Caledonia.svg",
},
NED = {
name = "Nīderlande",
"Flag of the Netherlands.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
NEP = {
name = "Nepāla",
{1962, "Flag of Nepal (1743–1962).svg"},
"Flag of Nepal.svg",
},
NFI = {
name = "Norfolkas Sala",
"Flag of Norfolk Island.svg",
},
NGR = {
name = "Nigērija",
{1952, "Flag of Nigeria (1914–1952).svg"},
{1960, "Flag of Nigeria (1952–1960).svg"},
"Flag of Nigeria.svg",
},
NIG = {
name = "Nigēra",
"Flag of Niger.svg",
},
NIR = {
name = "Ziemeļīrija",
"Ulster banner.svg",
},
NIU = {
name = "Niue",
"Flag of Niue.svg",
},
NMI = {
name = "Ziemeļu Marianas Salas",
"Flag of the Northern Mariana Islands.svg",
},
NOR = {
name = "Norvēģija",
"Flag of Norway.svg",
},
NRH = {
name = "Ziemeļrodēzija",
"Flag of Northern Rhodesia (1939–1953).svg",
},
NRU = {
name = "Nauru",
"Flag of Nauru.svg",
},
NZL = {
name = "Jaunzēlande",
"Flag of New Zealand.svg",
["Vasaras olimpiskajās spēlēs"] = {
[1980] = "Flag of New Zealand Olympic Commitee (1979-1994).svg",
},
},
OMA = {
name = "Omāna",
{1995, "Flag of Oman (1970–1995).svg"},
"Flag of Oman.svg",
},
PAK = {
name = "Pakistāna",
"Flag of Pakistan.svg",
},
PAN = {
name = "Panama",
"Flag of Panama.svg",
},
PAR = {
name = "Paragvaja",
{1954, "Flag of Paraguay (1842-1954).svg"},
{1988, "Flag of Paraguay (1954–1988).svg"},
{1990, "Flag of Paraguay (1988–1990).svg"},
{2013, "Flag of Paraguay (1990–2013).svg"},
"Flag of Paraguay.svg",
},
PER = {
name = "Peru",
{1950, "Flag of Peru (1825-1950).svg"},
"Flag of Peru.svg",
},
PHI = {
name = "Filipīnas",
{1935, "Flag of the Philippines (1919–1936).svg"},
{1984, "Flag of the Philippines (1936–1985, 1986–1998).svg"},
{1986, "Flag of the Philippines (1985–1986).svg"},
{1997, "Flag of the Philippines (1936–1985, 1986–1998).svg"},
"Flag of the Philippines.svg",
},
PLE = {
name = "Palestīnas Valsts",
"Flag of Palestina.svg",
},
PLW = {
name = "Palau",
"Flag of Palau.svg",
},
PLY = {
name = "Franču Polinēzija",
"Flag of French Polynesia.svg",
},
PNG = {
name = "Papua-Jaungvineja",
{1965, "Flag of the Territory of Guinea.svg"},
{1970, "!Flag of Papua New Guinea (1965–1970).svg"},
"Flag of Papua New Guinea.svg",
},
PRK = {
name = "Ziemeļkoreja",
{1947, "Flag of the Provisional People's Commitee of Korea.svg"},
{1991, "Flag of North Korea (1948–1992).svg"},
"Flag of North Korea.svg",
},
POL = {
name = "Polija",
{1927, "Flag of Poland (1919–1928).svg"},
{1979, "Flag of Poland (1928–1980).svg"},
"Flag of Poland.svg",
},
POR = {
name = "Portugāle",
"Flag of Portugal.svg",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Flag of Portugal-1980-Olympics.svg",
},
},
PUR = {
name = "Puertoriko",
{1951, "Flag of Puerto Rico (1895–1952).svg"},
{1995, "Flag of Puerto Rico (1952-1995).svg"},
"Flag of Puerto Rico.svg",
["vasaras olimpiskajās spēlēs"] = {
[1948] = "National sport flag of Puerto Rico.svg",
[1952] = "National sport flag of Puerto Rico.svg",
[1980] = "Olympic flag.svg",
},
},
QAT = {
name = "Katara",
"Flag of Qatar.svg",
},
RHO = {
name = "Rodēzija",
{1953, "Flag of Southern Rhodesia.svg"},
{1963, "Flag of the Federation of Nyasaland and Rhodesia.svg"},
{1968, "Flag of Rhodesia (1964).svg"},
"Flag of Rhodesia.svg",
},
ROC = {
name = "Ķīnas Republika",
{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 = "Taīvana",
"Flag of the Republic of China.svg",
},
ROC_2020 = {
name = "ROC",
"Olympic flag.svg",
},
ROM = {
name = "Romānija",
{1948, "Flag of Romania.svg"},
{1952, "Flag of Romania (1948–1952).svg"},
{1965, "Flag of Romania (1952–1965).svg"},
{1989, "Flag of Romania (1965–1989).svg"},
"Flag of Romania.svg",
},
RPC = {
name = "RPC",
"Paralympic flag.svg",
},
RSA = {
name = "Dienvidāfrika",
{1910, "Flag of the United Kingdom.svg"},
{1927, "Red Ensign of South Africa (1912–1951).svg"},
{1994, "Flag of South Africa (1928–1994).svg"},
"Flag of South Africa.svg",
["ziemas olimpiskajās spēlēs"] = {
[1994] = "Flag of South Africa (1994 Winter Olympics).svg",
},
["vasaras olimpiskajās spēlēs"] = {
[1992] = "Flag of South Africa (1992 Summer Olympics).svg",
},
},
RUS = {
name = "Krievija",
{1993, "Flag of Russia (1991–1993).svg"},
"Flag of Russia.svg",
},
RU1 = {
name = "Krievijas Impērija",
"Flag of Russia.svg",
},
RWA = {
name = "Ruanda",
{1961, "Flag of Rwanda (1959–1961).svg"},
{2001, "Flag of Rwanda (1962–2001).svg"},
"Flag of Rwanda.svg",
},
SAA = {
name = "Zāra",
"Flag of Saar (1947–1956).svg",
},
SAM = {
name = "Samoa",
"Flag of Samoa.svg",
},
SAR = {
name = "Saravaka",
"Flag of the Colony of Sarawak (1946).svg",
},
SCG = {
name = "Serbija un Melnkalne",
"Flag of Serbia and Montenegro.svg",
},
SCO = {
name = "Skotija",
"Flag of Scotland.svg",
},
SEN = {
name = "Senegāla",
"Flag of Senegal.svg",
},
SEY = {
name = "Seišelas",
{1995, "Flag of Seychelles (1977–1996).svg"},
"Flag of Seychelles.svg",
},
SGP = {
name = "Singapūra",
{1959, "Flag of Singapore (1946–1959).svg"},
"Flag of Singapore.svg",
},
SHE = {
name = "Svētās Helēnas Sala",
{1984, "Flag of Saint Helena (1874–1984).svg"},
"Flag of Saint-Helena.svg",
},
SKN = {
name = "Sentkitsa un Nevisa",
{1983, "Flag of Saint-Christopher-Nevis-Anguilla.svg"},
"Flag of Saint Kitts and Nevis.svg",
},
SLE = {
name = "Sjerraleone",
{1961, "Flag of Sierra Leone (1916–1961).svg"},
"Flag of Sierra Leone.svg",
},
SLO = {
name = "Slovēnija",
"Flag of Slovenia.svg",
},
SMR = {
name = "Sanmarīno",
"Flag of San Marino.svg",
{2010, "Flag of San Marino (pre-2011).svg"},
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
},
SOL = {
name = "Zālamana Salas",
"Flag of the Solomon Islands.svg",
},
SOM = {
name = "Somālija",
"Flag of Somalia.svg",
},
SRB = {
name = "Serbija",
{1918, "Flag of the State of Serbia (1882-1918).svg"},
{1944, "Flag of Serbia (1941–1944).svg"},
{1992, "Flag of SR Serbia.svg"},
{2004, "Flag of Serbia (1992–2004).svg"},
{2010, "Flag of Serbia (2004–2010).svg"},
"Flag of Serbia.svg",
},
SRH = {
name = "Dienvidrodēzija",
"Flag of Southern Rhodesia.svg",
},
SRI = {
name = "Šrilanka",
{1947, "British Ceylon flag.svg"},
{1951, "Flag of Ceylon (1948–1951).svg"},
{1971, "Flag of Ceylon (1951–1972).svg"},
"Flag of Sri Lanka.svg",
},
SSD = {
name = "Dienvidsudāna",
"Flag of South Sudan.svg",
},
STP = {
name = "Santome un Prinsipi",
"Flag of Sāo Tomé and Príncipe.svg",
},
SUD = {
name = "Sudāna",
{1970, "Flag of Sudan (1956–1970).svg"},
"Flag of Sudan.svg",
},
SUI = {
name = "Šveice",
["vasaras olimpiskajās spēlēs"] = {
[1980] = "Olympic flag.svg",
},
SUR = {
name = "Surinama",
{1975, "Flag of Suriname (1959–1975).svg"},
"Flag of Suriname.svg",
},
SVG = {
name = "Sentvinsenta un Grenadīnas",
{1979, "Flag of Saint Vincent and the Grenadines (1907–1979).svg"},
{1984, "Flag of Saint Vincent and the Grenadines (1979–1985).svg"},
{1985, "Flag of Saint Vincent and the Grenadines (1985).svg"},
"Flag of Saint Vincent and the Grenadines.svg",
},
SVK = {
name = "Slovākija",
"Flag of Slovakia.svg",
},
SWE = {
name = "Zviedrija",
{1905, "Swedish Civil Ensign (1844–1905).svg"},
"Flag of Sweden.svg",
},
SWZ = {
name = "Swazilenda",
"Flag of Swaziland.svg",
},
SYR = {
name = "Sīrija",
{1958, "Flag of Syria (1930–1958, 1961–1963).svg"},
{1961, "Flag of the United Arab Republic.svg"},
{1963, "Flag of Syria (1930–1958, 1961–1963).svg"},
{1971, "Flag of Syria (1963–1972).svg"},
{1979, "Flag of Syria (1972–1980).svg"},
"Flag of Syria.svg",
},
TAG = {
name = "Tanganjika",
"Flag of Tanganyika.svg",
},
TAH = {
name = "Taiti",
"Flag of French Polynesia.svg",
},
TAN = {
name = "Tanzānija",
{1964, "Flag of Tanganyika.svg"},
"Flag of Tanzania.svg"
},
TCH = {
name = "Čehoslovākija",
"Flag of Czechoslovakia.svg",
},
TCI = {
name = "Tērksas un Kaikosas",
"Flag of Turks and Caicos.svg",
},
TGA = {
name = "Tonga",
"Flag of Tonga.svg",
},
THA = {
name = "Taizeme",
"Flag of Thailand.svg",
},
TJK = {
name = "Tadžikistāna",
"Flag of Tajikistan.svg",
},
TKL = {
name = "Tokelau",
"Flag of Tokelau.svg",
},
TKM = {
name = "Turkmenistāna",
{1973, "Flag of Turkmen SSR (1956).svg"},
{1991, "Flag of Turkmen SSR.svg"},
{1997, "Flag of Turkmenistan (1992-1997).svg"},
{2001, "Flag of Turkmenistan (1997-2001).svg"},
"Flag of Turkmenistan.svg",
},
TLS = {
name = "Austrumtimora",
"Flag of East Timor.svg",
},
TOG = {
name = "Togo",
"Flag of Togo.svg",
},
TRI = {
name = "Trinidāda un Tobāgo",
{1958, "Flag of Trinidad and Tobago (1889–1958).svg"},
"Flag of Trinidad and Tobago.svg",
},
TPE = {
name = "Ķīnas Taipeja",
{1979, "Flag of the Republic of China.svg"},
"Flag of Chinese Taipei for Olympic games.svg",
["olimpiskajās spēlēs"] = "Flag of Chinese Taipei for Olympic games.svg",
["vasaras olimpiskajās spēlēs"] = "Flag of Chinese Taipei for Olympic games.svg",
["ziemas olimpiskajās spēlēs"] = "Flag of Chinese Taipei for Olympic games.svg",
["paralimpiskajās spēlēs"] = "Paralympic logo 1988-94.svg",
["vasaras paralimpiskajās spēlēs"] = "Paralympic logo 1988-94.svg",
["ziemas paralimpiskajās spēlēs"] = "Paralympic logo 1988-94.svg",
["vasaras universiāda"] = "Flag of Chinese Taipei for Universiade.svg",
["ziemas universiāda"] = "Flag of Chinese Taipei for Universiade.svg",
},
TUN = {
name = "Tunisija",
{1999, "Flag of Tunisia (1959–1999).svg"},
"Flag of Tunisia.svg",
},
TUR = {
name = "Turcija",
{1936, "Flag of Ottoman Empire.svg",
"Flag of Turkey.svg",
},
TUV = {
name = "Tuvalu",
"Flag of Tuvalu.svg",
},
UAE = {
name = "Apvienotie Arābu Emirāti",
"Flag of the United Arab Emirates.svg",
},
UAR = {
name = "Apvienotā Arābu Republika",
"Flag of the United Arab Republic (1958–1971).svg",
},
UGA = {
name = "Uganda",
{1962, "Flag of the Uganda Protecorate.svg"},
"Flag of Uganda.svg",
},
UKR = {
name = "Ukraina",
"Flag of Ukraine.svg",
},
URS = {
name = "Padomju Savienība",
{1955, "Flag of the Soviet Union (1923–1955).svg"},
{1980, "Flag of the Soviet Union (1955–1980).svg"},
"Flag of the Soviet Union.svg",
},
URU = {
name = "Urugvaja",
"Flag of Uruguay.svg",
},
USA = {
name = "ASV",
{1896, "US flag 44 stars.svg"},
{1908, "US flag 45 stars.svg"},
{1912, "US flag 46 stars.svg"},
{1959, "US flag 48 stars.svg"},
{1960, "US flag 49 stars.svg"},
"Flag of the United States.svg",
["vasaras olimpiskajās spēlēs"] = {
[1912] = "Flag of the United States (1912–1959).svg"},
[1960] = "Flag of the United States.svg"},
},
},
UZB = {
name = "Uzbekistāna",
"Flag of Uzbekistan.svg",
},
VAN = {
name = "Vanuatu",
"Flag of Vanuatu.svg",
},
VEN = {
name = "Venecuēla",
{1930, "Flag of Venezuela (1905–1930).svg"},
{1954, "Flag of Venezuela (1930–1954).svg"},
{2006, "Flag of Venezuela (1954–2006).svg"},
"Flag of Venezuela.svg"
},
VIE = {
name = "Vjetnama",
{1975, "Flag of South Vietnam.svg",
},
VNM = {
name = "Dienvidvjetnama",
{1975, "Flag of South Vietnam.svg"},
"Flag of Vietnam.svg",
},
VOL = {
name = "Augšvolta",
"Flag of Upper Volta.svg",
},
WAL = {
name = "Velsa",
{1953, "Flag of Wales 2.svg"},
{1959, "Flag of Wales (1953–1959).svg"},
},
WLF = {
name = "Volisa un Futuna",
"Flag of Wallis and Futuna.svg",
},
WSM = {
name = "Rietumsamoa",
"Flag of Samoa.svg",
},
YAR = {
name = "Ziemeļjemena",
"Flag of North Yemen.svg",
},
YEM = {
name = "Jemena",
"Flag of Yemen.svg",
},
YMD = {
name = "Dienvidjemena",
"Flag of South Yemen.svg",
},
YUG = {
name = "Dienvidslāvija",
{1941, "Flag of the Kingdom of Yugoslavia.svg"},
{1946, "Flag of the Democratic Federal Yugoslavia.svg"},
{1992, "Flag of SFR Yugoslavia.svg"},
{2002, "Flag of Serbia and Montenegro.svg"},
"Flag of Yugoslavia.svg",
},
ZAI = {
name = "Zaira",
"Flag of Zaire (1971–1997).svg"},
},
ZAM = {
name = "Zambija",
{1953, "Flag of Northern Rhodesia (1939–1953).svg"},
{1963, "Flag of Rhodesia and Nyasaland.svg"},
{1995, "Flag of Zambia (1964–1996).svg"},
"Flag of Zambia.svg",
},
ZIM = {
name = "Zimbabve",
{1953, "Flag of Southern Rhodesia.svg"},
{1963, "Flag of the Federation of Rhodesia and Nyasaland.svg"},
{1968, "Flag of Rhodesia (1964).svg"},
{1978, "Flag of Rhodesia.svg"},
{1979, "Flag of Zimbabwe Rhodesia.svg"},
"Flag of Zimbabwe.svg",
},
ZZX = {
name = "Jauktā komanda",
"Olympic flag.svg",
},
}
local function strip_to_nil(text)
-- If text is a string, return its trimmed content, or nil if empty.
-- Otherwise return text (which may, for example be nil).
if type(text) == 'string' then
text = text:match('(%S.-)%s*$')
end
return text
end
local function yes(parameter)
-- Return true if parameter should be interpreted as "yes".
return ({ y = true, yes = true, on = true })[parameter]
end
local function getFlag(args, country)
-- Return name of flag selected from country data (nil if none selected).
local year = tonumber(args.year)
local games = strip_to_nil(args.games)
if games then
local gdata = country[games]
if gdata then
if type(gdata) == 'string' then
return gdata
end
if gdata[year] then
return gdata[year]
end
end
end
for _, item in ipairs(country) do
if type(item) == 'string' then
return item
end
if year and year <= item[1] then
return item[2]
end
end
end
local function main(frame)
local args = frame.args
local alias = args.alias
local country = countries[alias]
local function quit(message)
if args.error then
return args.error
end
error(message)
end
if not country then
return quit('Invalid country alias: ' .. tostring(alias))
end
if yes(args.flag) then
return getFlag(args. country) or quit('No flag defined for ' .. alias)
else
return country.name or quit('No name defined for ' .. alias)
end
end
return { main = main }