Jump to content

Module:Fba/list: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Protected "Module:Fba/list": High-risk template or module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
remove _c suffix
Line 343: Line 343:


p.codes = {
p.codes = {
["Afghanistan_c"] = "AFG",
["Afghanistan"] = "AFG",
["Albania_c"] = "ALB",
["Albania"] = "ALB",
["Algeria_c"] = "ALG",
["Algeria"] = "ALG",
["American Samoa_c"] = "ASA",
["American Samoa"] = "ASA",
["Andorra_c"] = "AND",
["Andorra"] = "AND",
["Angola_c"] = "ANG",
["Angola"] = "ANG",
["Anguilla_c"] = "AIA",
["Anguilla"] = "AIA",
["Antigua and Barbuda_c"] = "ATG",
["Antigua and Barbuda"] = "ATG",
["Argentina_c"] = "ARG",
["Argentina"] = "ARG",
["Armenia_c"] = "ARM",
["Armenia"] = "ARM",
["Aruba_c"] = "ARU",
["Aruba"] = "ARU",
["Australia_c"] = "AUS",
["Australia"] = "AUS",
["Austria_c"] = "AUT",
["Austria"] = "AUT",
["Azerbaijan_c"] = "AZE",
["Azerbaijan"] = "AZE",
["The Bahamas_c"] = "BAH",
["The Bahamas"] = "BAH",
["Bahrain_c"] = "BHR",
["Bahrain"] = "BHR",
["Bangladesh_c"] = "BAN",
["Bangladesh"] = "BAN",
["Barbados_c"] = "BRB",
["Barbados"] = "BRB",
["Belarus_c"] = "BLR",
["Belarus"] = "BLR",
["Belgium_c"] = "BEL",
["Belgium"] = "BEL",
["Belize_c"] = "BLZ",
["Belize"] = "BLZ",
["Benin_c"] = "BEN",
["Benin"] = "BEN",
["Bermuda_c"] = "BER",
["Bermuda"] = "BER",
["Bhutan_c"] = "BHU",
["Bhutan"] = "BHU",
["Bolivia_c"] = "BOL",
["Bolivia"] = "BOL",
["Bosnia and Herzegovina_c"] = "BIH",
["Bosnia and Herzegovina"] = "BIH",
["Botswana_c"] = "BOT",
["Botswana"] = "BOT",
["Brazil_c"] = "BRA",
["Brazil"] = "BRA",
["British Virgin Islands_c"] = "VGB",
["British Virgin Islands"] = "VGB",
["Brunei_c"] = "BRU",
["Brunei"] = "BRU",
["Bulgaria_c"] = "BUL",
["Bulgaria"] = "BUL",
["Burkina Faso_c"] = "BFA",
["Burkina Faso"] = "BFA",
["Burundi_c"] = "BDI",
["Burundi"] = "BDI",
["Cambodia_c"] = "CAM",
["Cambodia"] = "CAM",
["Cameroon_c"] = "CMR",
["Cameroon"] = "CMR",
["Canada_c"] = "CAN",
["Canada"] = "CAN",
["Cape Verde_c"] = "CPV",
["Cape Verde"] = "CPV",
["Cayman Islands_c"] = "CAY",
["Cayman Islands"] = "CAY",
["Central African Republic_c"] = "CTA",
["Central African Republic"] = "CTA",
["Chad_c"] = "CHA",
["Chad"] = "CHA",
["Chile_c"] = "CHI",
["Chile"] = "CHI",
["China_c"] = "CHN",
["China"] = "CHN",
["Chinese Taipei_c"] = "TPE",
["Chinese Taipei"] = "TPE",
["Colombia_c"] = "COL",
["Colombia"] = "COL",
["Comoros_c"] = "COM",
["Comoros"] = "COM",
["Republic of the Congo_c"] = "CGO",
["Republic of the Congo"] = "CGO",
["Cook Islands_c"] = "COK",
["Cook Islands"] = "COK",
["Costa Rica_c"] = "CRC",
["Costa Rica"] = "CRC",
["Croatia_c"] = "CRO",
["Croatia"] = "CRO",
["Cuba_c"] = "CUB",
["Cuba"] = "CUB",
["Curaçao_c"] = "CUW",
["Curaçao"] = "CUW",
["Cyprus_c"] = "CYP",
["Cyprus"] = "CYP",
["Czech Republic_c"] = "CZE",
["Czech Republic"] = "CZE",
["Denmark_c"] = "DEN",
["Denmark"] = "DEN",
["Djibouti_c"] = "DJI",
["Djibouti"] = "DJI",
["Dominica_c"] = "DMA",
["Dominica"] = "DMA",
["Dominican Republic_c"] = "DOM",
["Dominican Republic"] = "DOM",
["Democratic Republic of the Congo_c"] = "COD",
["Democratic Republic of the Congo"] = "COD",
["Ecuador_c"] = "ECU",
["Ecuador"] = "ECU",
["Egypt_c"] = "EGY",
["Egypt"] = "EGY",
["El Salvador_c"] = "SLV",
["El Salvador"] = "SLV",
["England_c"] = "ENG",
["England"] = "ENG",
["Equatorial Guinea_c"] = "EQG",
["Equatorial Guinea"] = "EQG",
["Eritrea_c"] = "ERI",
["Eritrea"] = "ERI",
["Estonia_c"] = "EST",
["Estonia"] = "EST",
["Ethiopia_c"] = "ETH",
["Ethiopia"] = "ETH",
["Faroe Islands_c"] = "FRO",
["Faroe Islands"] = "FRO",
["Fiji_c"] = "FIJ",
["Fiji"] = "FIJ",
["Finland_c"] = "FIN",
["Finland"] = "FIN",
["France_c"] = "FRA",
["France"] = "FRA",
["Gabon_c"] = "GAB",
["Gabon"] = "GAB",
["The Gambia_c"] = "GAM",
["The Gambia"] = "GAM",
["Georgia (country)_c"] = "GEO",
["Georgia (country)"] = "GEO",
["Germany_c"] = "GER",
["Germany"] = "GER",
["Ghana_c"] = "GHA",
["Ghana"] = "GHA",
["Gibraltar_c"] = "GIB",
["Gibraltar"] = "GIB",
["Greece_c"] = "GRE",
["Greece"] = "GRE",
["Grenada_c"] = "GRN",
["Grenada"] = "GRN",
["Guam_c"] = "GUM",
["Guam"] = "GUM",
["Guatemala_c"] = "GUA",
["Guatemala"] = "GUA",
["Guinea_c"] = "GUI",
["Guinea"] = "GUI",
["Guinea-Bissau_c"] = "GNB",
["Guinea-Bissau"] = "GNB",
["Guyana_c"] = "GUY",
["Guyana"] = "GUY",
["Haiti_c"] = "HAI",
["Haiti"] = "HAI",
["Honduras_c"] = "HON",
["Honduras"] = "HON",
["Hong Kong_c"] = "HKG",
["Hong Kong"] = "HKG",
["Hungary_c"] = "HUN",
["Hungary"] = "HUN",
["Iceland_c"] = "ISL",
["Iceland"] = "ISL",
["India_c"] = "IND",
["India"] = "IND",
["Indonesia_c"] = "IDN",
["Indonesia"] = "IDN",
["Iran_c"] = "IRN",
["Iran"] = "IRN",
["Iraq_c"] = "IRQ",
["Iraq"] = "IRQ",
["Israel_c"] = "ISR",
["Israel"] = "ISR",
["Italy_c"] = "ITA",
["Italy"] = "ITA",
["Ivory Coast_c"] = "CIV",
["Ivory Coast"] = "CIV",
["Jamaica_c"] = "JAM",
["Jamaica"] = "JAM",
["Japan_c"] = "JPN",
["Japan"] = "JPN",
["Jordan_c"] = "JOR",
["Jordan"] = "JOR",
["Kazakhstan_c"] = "KAZ",
["Kazakhstan"] = "KAZ",
["Kenya_c"] = "KEN",
["Kenya"] = "KEN",
["Kosovo_c"] = "KOS",
["Kosovo"] = "KOS",
["Kuwait_c"] = "KUW",
["Kuwait"] = "KUW",
["Kyrgyzstan_c"] = "KGZ",
["Kyrgyzstan"] = "KGZ",
["Laos_c"] = "LAO",
["Laos"] = "LAO",
["Latvia_c"] = "LVA",
["Latvia"] = "LVA",
["Lebanon_c"] = "LBN",
["Lebanon"] = "LBN",
["Lesotho_c"] = "LES",
["Lesotho"] = "LES",
["Liberia_c"] = "LBR",
["Liberia"] = "LBR",
["Libya_c"] = "LBY",
["Libya"] = "LBY",
["Liechtenstein_c"] = "LIE",
["Liechtenstein"] = "LIE",
["Lithuania_c"] = "LTU",
["Lithuania"] = "LTU",
["Luxembourg_c"] = "LUX",
["Luxembourg"] = "LUX",
["Macau_c"] = "MAC",
["Macau"] = "MAC",
["North Macedonia_c"] = "MKD",
["North Macedonia"] = "MKD",
["Madagascar_c"] = "MAD",
["Madagascar"] = "MAD",
["Malawi_c"] = "MWI",
["Malawi"] = "MWI",
["Malaysia_c"] = "MAS",
["Malaysia"] = "MAS",
["Maldives_c"] = "MDV",
["Maldives"] = "MDV",
["Mali_c"] = "MLI",
["Mali"] = "MLI",
["Malta_c"] = "MLT",
["Malta"] = "MLT",
["Mauritania_c"] = "MTN",
["Mauritania"] = "MTN",
["Mauritius_c"] = "MRI",
["Mauritius"] = "MRI",
["Mexico_c"] = "MEX",
["Mexico"] = "MEX",
["Moldova_c"] = "MDA",
["Moldova"] = "MDA",
["Mongolia_c"] = "MNG",
["Mongolia"] = "MNG",
["Montenegro_c"] = "MNE",
["Montenegro"] = "MNE",
["Montserrat_c"] = "MSR",
["Montserrat"] = "MSR",
["Morocco_c"] = "MAR",
["Morocco"] = "MAR",
["Mozambique_c"] = "MOZ",
["Mozambique"] = "MOZ",
["Myanmar_c"] = "MYA",
["Myanmar"] = "MYA",
["Namibia_c"] = "NAM",
["Namibia"] = "NAM",
["Nepal_c"] = "NEP",
["Nepal"] = "NEP",
["Netherlands_c"] = "NED",
["Netherlands"] = "NED",
["New Caledonia_c"] = "NCL",
["New Caledonia"] = "NCL",
["New Zealand_c"] = "NZL",
["New Zealand"] = "NZL",
["Nicaragua_c"] = "NCA",
["Nicaragua"] = "NCA",
["Niger_c"] = "NIG",
["Niger"] = "NIG",
["Nigeria_c"] = "NGA",
["Nigeria"] = "NGA",
["North Korea_c"] = "PRK",
["North Korea"] = "PRK",
["Northern Ireland_c"] = "NIR",
["Northern Ireland"] = "NIR",
["Norway_c"] = "NOR",
["Norway"] = "NOR",
["Oman_c"] = "OMA",
["Oman"] = "OMA",
["Pakistan_c"] = "PAK",
["Pakistan"] = "PAK",
["Palestine_c"] = "PLE",
["Palestine"] = "PLE",
["State of Palestine_c"] = "PLE",
["State of Palestine"] = "PLE",
["Panama_c"] = "PAN",
["Panama"] = "PAN",
["Papua New Guinea_c"] = "PNG",
["Papua New Guinea"] = "PNG",
["Paraguay_c"] = "PAR",
["Paraguay"] = "PAR",
["Peru_c"] = "PER",
["Peru"] = "PER",
["Philippines_c"] = "PHI",
["Philippines"] = "PHI",
["Poland_c"] = "POL",
["Poland"] = "POL",
["Portugal_c"] = "POR",
["Portugal"] = "POR",
["Puerto Rico_c"] = "PUR",
["Puerto Rico"] = "PUR",
["Qatar_c"] = "QAT",
["Qatar"] = "QAT",
["Republic of Ireland_c"] = "IRL",
["Republic of Ireland"] = "IRL",
["Romania_c"] = "ROU",
["Romania"] = "ROU",
["Russia_c"] = "RUS",
["Russia"] = "RUS",
["Rwanda_c"] = "RWA",
["Rwanda"] = "RWA",
["Saint Kitts and Nevis_c"] = "SKN",
["Saint Kitts and Nevis"] = "SKN",
["Saint Lucia_c"] = "LCA",
["Saint Lucia"] = "LCA",
["Saint Vincent and the Grenadines_c"] = "VIN",
["Saint Vincent and the Grenadines"] = "VIN",
["Samoa_c"] = "SAM",
["Samoa"] = "SAM",
["San Marino_c"] = "SMR",
["San Marino"] = "SMR",
["São Tomé and Príncipe_c"] = "STP",
["São Tomé and Príncipe"] = "STP",
["Saudi Arabia_c"] = "KSA",
["Saudi Arabia"] = "KSA",
["Scotland_c"] = "SCO",
["Scotland"] = "SCO",
["Senegal_c"] = "SEN",
["Senegal"] = "SEN",
["Serbia_c"] = "SRB",
["Serbia"] = "SRB",
["Seychelles_c"] = "SEY",
["Seychelles"] = "SEY",
["Sierra Leone_c"] = "SLE",
["Sierra Leone"] = "SLE",
["Singapore_c"] = "SGP",
["Singapore"] = "SGP",
["Slovakia_c"] = "SVK",
["Slovakia"] = "SVK",
["Slovenia_c"] = "SVN",
["Slovenia"] = "SVN",
["Solomon Islands_c"] = "SOL",
["Solomon Islands"] = "SOL",
["Somalia_c"] = "SOM",
["Somalia"] = "SOM",
["South Africa_c"] = "RSA",
["South Africa"] = "RSA",
["South Korea_c"] = "KOR",
["South Korea"] = "KOR",
["South Sudan_c"] = "SSD",
["South Sudan"] = "SSD",
["Spain_c"] = "ESP",
["Spain"] = "ESP",
["Sri Lanka_c"] = "SRI",
["Sri Lanka"] = "SRI",
["Sudan_c"] = "SDN",
["Sudan"] = "SDN",
["Suriname_c"] = "SUR",
["Suriname"] = "SUR",
["Eswatini_c"] = "SWZ",
["Eswatini"] = "SWZ",
["Sweden_c"] = "SWE",
["Sweden"] = "SWE",
["Switzerland_c"] = "SUI",
["Switzerland"] = "SUI",
["Syria_c"] = "SYR",
["Syria"] = "SYR",
["French Polynesia_c"] = "TAH",
["French Polynesia"] = "TAH",
["Tajikistan_c"] = "TJK",
["Tajikistan"] = "TJK",
["Tanzania_c"] = "TAN",
["Tanzania"] = "TAN",
["Thailand_c"] = "THA",
["Thailand"] = "THA",
["East Timor_c"] = "TLS",
["East Timor"] = "TLS",
["Timor-Leste_c"] = "TLS",
["Timor-Leste"] = "TLS",
["Togo_c"] = "TOG",
["Togo"] = "TOG",
["Tonga_c"] = "TGA",
["Tonga"] = "TGA",
["Trinidad and Tobago_c"] = "TRI",
["Trinidad and Tobago"] = "TRI",
["Tunisia_c"] = "TUN",
["Tunisia"] = "TUN",
["Turkey_c"] = "TUR",
["Turkey"] = "TUR",
["Turkmenistan_c"] = "TKM",
["Turkmenistan"] = "TKM",
["Turks and Caicos Islands_c"] = "TCA",
["Turks and Caicos Islands"] = "TCA",
["Uganda_c"] = "UGA",
["Uganda"] = "UGA",
["Ukraine_c"] = "UKR",
["Ukraine"] = "UKR",
["United Arab Emirates_c"] = "UAE",
["United Arab Emirates"] = "UAE",
["United States_c"] = "USA",
["United States"] = "USA",
["Uruguay_c"] = "URU",
["Uruguay"] = "URU",
["United States Virgin Islands_c"] = "VIR",
["United States Virgin Islands"] = "VIR",
["Uzbekistan_c"] = "UZB",
["Uzbekistan"] = "UZB",
["Vanuatu_c"] = "VAN",
["Vanuatu"] = "VAN",
["Venezuela_c"] = "VEN",
["Venezuela"] = "VEN",
["Vietnam_c"] = "VIE",
["Vietnam"] = "VIE",
["Wales_c"] = "WAL",
["Wales"] = "WAL",
["Yemen_c"] = "YEM",
["Yemen"] = "YEM",
["Zambia_c"] = "ZAM",
["Zambia"] = "ZAM",
["Zimbabwe_c"] = "ZIM",
["Zimbabwe"] = "ZIM",


["Åland Islands_c"] = "AXL",
["Åland Islands"] = "AXL",
["Åland_c"] = "AXL",
["Åland"] = "AXL",
["Republic of Artsakh_c"] = "NKR",
["Republic of Artsakh"] = "NKR",
["Basque Country (autonomous community)_c"] = "BSQ",
["Basque Country (autonomous community)"] = "BSQ",
["Bonaire_c"] = "BOE",
["Bonaire"] = "BOE",
["Catalonia_c"] = "CAT",
["Catalonia"] = "CAT",
["French Guiana_c"] = "GUF",
["French Guiana"] = "GUF",
["United Kingdom_c"] = "GBR",
["United Kingdom"] = "GBR",
["United Kingdom of Great Britain and Ireland_c"] = "GBR",
["United Kingdom of Great Britain and Ireland"] = "GBR",
["Greenland_c"] = "GRL",
["Greenland"] = "GRL",
["Guadeloupe_c"] = "GLP",
["Guadeloupe"] = "GLP",
["Kiribati_c"] = "KIR",
["Kiribati"] = "KIR",
["Martinique_c"] = "MTQ",
["Martinique"] = "MTQ",
["Northern Cyprus_c"] = "TRNC",
["Northern Cyprus"] = "TRNC",
["Northern Mariana Islands_c"] = "NMI",
["Northern Mariana Islands"] = "NMI",
["Réunion_c"] = "REU",
["Réunion"] = "REU",
["Collectivity of Saint Martin_c"] = "SMN",
["Collectivity of Saint Martin"] = "SMN",
["Sint Maarten_c"] = "SMA",
["Sint Maarten"] = "SMA",
["Tuvalu_c"] = "TUV",
["Tuvalu"] = "TUV",
["Vatican City_c"] = "VAT",
["Vatican City"] = "VAT",
["Zanzibar_c"] = "ZAN",
["Zanzibar"] = "ZAN",
["Federated States of Micronesia_c"] = "FSM",
["Federated States of Micronesia"] = "FSM",
["Monaco_c"] = "MCO",
["Monaco"] = "MCO",
["Marshall Islands_c"] = "MHL",
["Marshall Islands"] = "MHL",
["Niue_c"] = "NIU",
["Niue"] = "NIU",
["Palau_c"] = "PLW",
["Palau"] = "PLW",
["British Guiana_c"] = "BGU",
["British Guiana"] = "BGU",
["British Raj_c"] = "BIN",
["British Raj"] = "BIN",
["Bohemia_c"] = "BOH",
["Bohemia"] = "BOH",
["Myanmar_c_old"] = "BUR",
["Myanmar_old"] = "BUR",
["Dominion of Ceylon_c"] = "CEY",
["Dominion of Ceylon"] = "CEY",
["Commonwealth of Independent States_c"] = "CIS",
["Commonwealth of Independent States"] = "CIS",
["Czechoslovakia_c"] = "TCH",
["Czechoslovakia"] = "TCH",
["Republic of Dahomey_c"] = "DAH",
["Republic of Dahomey"] = "DAH",
["Dutch East Indies_c"] = "INH",
["Dutch East Indies"] = "INH",
["Federal Republic of Yugoslavia_c"] = "YUG",
["Federal Republic of Yugoslavia"] = "YUG",
["East Germany_c"] = "GDR",
["East Germany"] = "GDR",
["Gold Coast (British colony)_c"] = "GOC",
["Gold Coast (British colony)"] = "GOC",
["Ireland_c"] = "EIR",
["Ireland"] = "EIR",
["Federation of Malaya_c"] = "MAL",
["Federation of Malaya"] = "MAL",
["Netherlands Antilles_c"] = "ANT",
["Netherlands Antilles"] = "ANT",
["New Hebrides_c"] = "HEB",
["New Hebrides"] = "HEB",
["North Vietnam_c"] = "VNO",
["North Vietnam"] = "VNO",
["Yemen Arab Republic_c"] = "NYE",
["Yemen Arab Republic"] = "NYE",
["Northern Rhodesia_c"] = "NRH",
["Northern Rhodesia"] = "NRH",
["Mandatory Palestine_c"] = "PAL",
["Mandatory Palestine"] = "PAL",
["Rhodesia_c"] = "RHO",
["Rhodesia"] = "RHO",
["Saar Protectorate_c"] = "SAA",
["Saar Protectorate"] = "SAA",
["Serbia and Montenegro_c"] = "SCG",
["Serbia and Montenegro"] = "SCG",
["Thailand_c_old"] = "SIA",
["Thailand_old"] = "SIA",
["Southern Rhodesia_c"] = "SRH",
["Southern Rhodesia"] = "SRH",
["South Vietnam_c"] = "VSO",
["South Vietnam"] = "VSO",
["South Yemen_c"] = "YMD",
["South Yemen"] = "YMD",
["Soviet Union_c"] = "URS",
["Soviet Union"] = "URS",
["Tanganyika_c"] = "TAA",
["Tanganyika"] = "TAA",
["Taiwan_c"] = "TAI",
["Taiwan"] = "TAI",
["United Arab Republic_c"] = "UAR",
["United Arab Republic"] = "UAR",
["Republic of Upper Volta_c"] = "UPV",
["Republic of Upper Volta"] = "UPV",
["West Germany_c"] = "FRG",
["West Germany"] = "FRG",
["Samoa_c_old"] = "WSM",
["Samoa_old"] = "WSM",
["Socialist Federal Republic of Yugoslavia_c"] = "YUG",
["Socialist Federal Republic of Yugoslavia"] = "YUG",
["Zaire_c"] = "ZAI",
["Zaire"] = "ZAI",
}
}


function p.list(frame)
function p.list(frame)
return p.fbas[frame.args[1]] or p.codes[frame.args[1]] or ""
if frame.args[1] then
if string.sub(frame.args[1], -2) == "_c" then
return p.codes[string.sub(frame.args[1], 1, -3)] or ""
elseif string.sub(frame.args[1], -6) == "_c_old" then
return p.codes[string.sub(frame.args[1], 1, -7) .. "_old"] or ""
end
return p.fbas[frame.args[1]] or ""
end
return ""
end
end



Revision as of 18:12, 3 March 2025

local p = {}

p.fbas = {
	["Albania"] = "Albanian Football Federation",
	["Andorra"] = "Andorran Football Federation",
	["Armenia"] = "Football Federation of Armenia",
	["Austria"] = "Austrian Football Association",
	["Azerbaijan"] = "Association of Football Federations of Azerbaijan",
	["Belarus"] = "Football Federation of Belarus",
	["Belgium"] = "Royal Belgian Football Association",
	["Bosnia and Herzegovina"] = "Football Association of Bosnia and Herzegovina",
	["Bulgaria"] = "Bulgarian Football Union",
	["Croatia"] = "Croatian Football Federation",
	["Cyprus"] = "Cyprus Football Association",
	["Czech Republic"] = "Football Association of the Czech Republic",
		["Czechia"] = "Football Association of the Czech Republic",
		["Czechoslovakia"] = "Football Association of the Czech Republic",
		["Bohemia"] = "Football Association of the Czech Republic",
		["Protectorate of Bohemia and Moravia"] = "Football Association of the Czech Republic",
	["Denmark"] = "Danish Football Association",
	["England"] = "The Football Association",
		["United Kingdom"] = "The Football Association",
		["United Kingdom of Great Britain and Ireland"] = "The Football Association",
	["Estonia"] = "Estonian Football Association",
	["Faroe Islands"] = "Faroe Islands Football Association",
	["Finland"] = "Football Association of Finland",
	["France"] = "French Football Federation",
	["Kingdom of Galicia and Lodomeria"] = "Związek Polski Piłki Nożnej",
	["Georgia (country)"] = "Georgian Football Federation",
	["Germany"] = "German Football Association",
		["West Germany"] = "German Football Association",
	["Gibraltar"] = "Gibraltar Football Association",
	["Greece"] = "Hellenic Football Federation",
	["Hungary"] = "Hungarian Football Federation",
	["Iceland"] = "Football Association of Iceland",
	["Republic of Ireland"] = "Football Association of Ireland",
		["Irish Free State"] = "Football Association of Ireland",
	["Israel"] = "Israel Football Association",
		["Mandatory Palestine"] = "Israel Football Association",
	["Italy"] = "Italian Football Federation",
	["Kazakhstan"] = "Kazakhstan Football Federation",
	["Kosovo"] = "Football Federation of Kosovo",
	["Latvia"] = "Latvian Football Federation",
	["Liechtenstein"] = "Liechtenstein Football Association",
	["Lithuania"] = "Lithuanian Football Federation",
	["Luxembourg"] = "Luxembourg Football Federation",
	["Malta"] = "Malta Football Association",
	["Moldova"] = "Moldovan Football Federation",
	["Montenegro"] = "Football Association of Montenegro",
	["Netherlands"] = "Royal Dutch Football Association",
	["North Macedonia"] = "Football Federation of Macedonia",
	["Northern Ireland"] = "Irish Football Association",
		["Ireland"] = "Irish Football Association",
	["Norway"] = "Norwegian Football Federation",
	["Poland"] = "Polish Football Association",
	["Portugal"] = "Portuguese Football Federation",
	["Romania"] = "Romanian Football Federation",
	["Russia"] = "Russian Football Union",
	["San Marino"] = "San Marino Football Federation",
	["Scotland"] = "Scottish Football Association",
	["Serbia"] = "Football Association of Serbia",
	["Slovakia"] = "Slovak Football Association",
	["Slovenia"] = "Football Association of Slovenia",
	["Spain"] = "Royal Spanish Football Federation",
	["Sweden"] = "Swedish Football Association",
	["Switzerland"] = "Swiss Football Association",
	["Turkey"] = "Turkish Football Federation",
	["Ukraine"] = "Ukrainian Association of Football",
	["Wales"] = "Football Association of Wales",

	["Algeria"] = "Algerian Football Federation",
	["Angola"] = "Angolan Football Federation",
	["Benin"] = "Benin Football Federation",
		["Republic of Dahomey"] = "Benin Football Federation",
	["Botswana"] = "Botswana Football Association",
	["Burkina Faso"] = "Burkinabé Football Federation",
		["Republic of Upper Volta"] = "Burkinabé Football Federation",
	["Burundi"] = "Football Federation of Burundi",
	["Cameroon"] = "Cameroonian Football Federation",
	["Cape Verde"] = "Cape Verdean Football Federation",
	["Central African Republic"] = "Central African Football Federation",
	["Chad"] = "Chadian Football Federation",
	["Comoros"] = "Comoros Football Federation",
	["Republic of the Congo"] = "Congolese Football Federation",
	["Democratic Republic of the Congo"] = "Congolese Association Football Federation",
		["Zaire"] = "Congolese Association Football Federation",
	["Djibouti"] = "Djiboutian Football Federation",
	["Egypt"] = "Egyptian Football Association",
		["United Arab Republic"] = "Egyptian Football Association",
	["Equatorial Guinea"] = "Equatoguinean Football Federation",
	["Eritrea"] = "Eritrean National Football Federation",
	["Eswatini"] = "Eswatini Football Association",
	["Ethiopia"] = "Ethiopian Football Federation",
	["Gabon"] = "Gabonese Football Federation",
	["The Gambia"] = "Gambia Football Federation",
	["Ghana"] = "Ghana Football Association",
		["Gold Coast (British colony)"] = "Ghana Football Association",
	["Guinea"] = "Guinean Football Federation",
	["Guinea-Bissau"] = "Football Federation of Guinea-Bissau",
	["Ivory Coast"] = "Ivorian Football Federation",
	["Kenya"] = "Football Kenya Federation",
	["Lesotho"] = "Lesotho Football Association",
	["Liberia"] = "Liberia Football Association",
	["Libya"] = "Libyan Football Federation",
	["Madagascar"] = "Malagasy Football Federation",
	["Malawi"] = "Football Association of Malawi",
	["Mali"] = "Malian Football Federation",
	["Mauritania"] = "Football Federation of the Islamic Republic of Mauritania",
	["Mauritius"] = "Mauritius Football Association",
	["Morocco"] = "Royal Moroccan Football Federation",
	["Mozambique"] = "Mozambican Football Federation",
	["Namibia"] = "Namibia Football Association",
	["Niger"] = "Nigerien Football Federation",
	["Nigeria"] = "Nigeria Football Federation",
	["Rwanda"] = "Rwanda Football Federation",
	["São Tomé and Príncipe"] = "São Toméan Football Federation",
	["Senegal"] = "Senegalese Football Federation",
	["Seychelles"] = "Seychelles Football Federation",
	["Sierra Leone"] = "Sierra Leone Football Association",
	["Somalia"] = "Somali Football Federation",
	["South Africa"] = "South African Football Association",
	["Sudan"] = "Sudan Football Association",
	["South Sudan"] = "South Sudan Football Association",
	["Tanzania"] = "Tanzania Football Federation",
		["Tanganyika"] = "Tanzania Football Federation",
	["Togo"] = "Togolese Football Federation",
	["Tunisia"] = "Tunisian Football Federation",
	["Uganda"] = "Federation of Uganda Football Associations",
	["Zambia"] = "Football Association of Zambia",
		["Northern Rhodesia"] = "Football Association of Zambia",
	["Zimbabwe"] = "Zimbabwe Football Association",
		["Rhodesia"] = "Zimbabwe Football Association",
		["Southern Rhodesia"] = "Zimbabwe Football Association",

	["Afghanistan"] = "Afghanistan Football Federation",
	["Australia"] = "Football Australia",
	["Bahrain"] = "Bahrain Football Association",
	["Bangladesh"] = "Bangladesh Football Federation",
	["Bhutan"] = "Bhutan Football Federation",
	["Brunei"] = "Football Association of Brunei Darussalam",
	["Cambodia"] = "Football Federation of Cambodia",
	["China"] = "Chinese Football Association",
	["Chinese Taipei"] = "Chinese Taipei Football Association",
		["Taiwan"] = "Chinese Taipei Football Association",
	["East Timor"] = "East Timor Football Federation",
		["Timor-Leste"] = "East Timor Football Federation",
	["Guam"] = "Guam Football Association",
	["Hong Kong"] = "Football Association of Hong Kong, China",
	["India"] = "All India Football Federation",
		["British Raj"] = "All India Football Federation",
	["Indonesia"] = "Football Association of Indonesia",
		["Dutch East Indies"] = "Football Association of Indonesia",
	["Iran"] = "Football Federation Islamic Republic of Iran",
	["Iraq"] = "Iraq Football Association",
	["Japan"] = "Japan Football Association",
	["Jordan"] = "Jordan Football Association",
	["North Korea"] = "DPR Korea Football Association",
	["South Korea"] = "Korea Football Association",
	["Kuwait"] = "Kuwait Football Association",
	["Kyrgyzstan"] = "Kyrgyz Football Union",
	["Laos"] = "Lao Football Federation",
	["Lebanon"] = "Lebanese Football Association",
	["Macau"] = "Macau Football Association",
	["Malaysia"] = "Football Association of Malaysia",
		["Federation of Malaya"] = "Football Association of Malaysia",
	["Maldives"] = "Football Association of Maldives",
	["Mongolia"] = "Mongolian Football Federation",
	["Myanmar"] = "Myanmar Football Federation",
	["Nepal"] = "All Nepal Football Association",
	["Oman"] = "Oman Football Association",
	["Pakistan"] = "Pakistan Football Federation",
	["Palestine"] = "Palestinian Football Association",
		["State of Palestine"] = "Palestinian Football Association",
	["Philippines"] = "Philippine Football Federation",
	["Qatar"] = "Qatar Football Association",
	["Saudi Arabia"] = "Saudi Arabian Football Federation",
	["Singapore"] = "Football Association of Singapore",
	["Sri Lanka"] = "Football Federation of Sri Lanka",
		["Dominion of Ceylon"] = "Football Federation of Sri Lanka",
	["Syria"] = "Syrian Football Association",
	["Tajikistan"] = "Tajikistan Football Federation",
	["Thailand"] = "Football Association of Thailand",
	["Turkmenistan"] = "Football Federation of Turkmenistan",
	["United Arab Emirates"] = "United Arab Emirates Football Association",
	["Uzbekistan"] = "Uzbekistan Football Association",
	["Vietnam"] = "Vietnam Football Federation",
		["North Vietnam"] = "Vietnam Football Federation",
		["South Vietnam"] = "Vietnam Football Federation",
	["Yemen"] = "Yemen Football Association",
		["Yemen Arab Republic"] = "Yemen Football Association",

	["British Columbia"] = "British Columbia Soccer Association",
	["Canada"] = "Canadian Soccer Association",
	["Mexico"] = "Mexican Football Federation",
	["Ontario"] = "Ontario Soccer Association",
	["United States"] = "United States Soccer Federation",
	["Belize"] = "Football Federation of Belize",
	["Costa Rica"] = "Costa Rican Football Federation",
	["El Salvador"] = "Salvadoran Football Federation",
	["Guatemala"] = "National Football Federation of Guatemala",
	["Honduras"] = "National Autonomous Federation of Football of Honduras",
	["Nicaragua"] = "Nicaraguan Football Federation",
	["Panama"] = "Panamanian Football Federation",
	["Anguilla"] = "Anguilla Football Association",
	["Antigua and Barbuda"] = "Antigua and Barbuda Football Association",
	["Aruba"] = "Aruba Football Federation",
	["The Bahamas"] = "Bahamas Football Association",
	["Barbados"] = "Barbados Football Association",
	["Bermuda"] = "Bermuda Football Association",
	["British Virgin Islands"] = "British Virgin Islands Football Association",
	["Cayman Islands"] = "Cayman Islands Football Association",
	["Cuba"] = "Football Association of Cuba",
	["Curaçao"] = "Curaçao Football Federation",
	["Dominica"] = "Dominica Football Association",
	["Dominican Republic"] = "Dominican Football Federation",
	["Grenada"] = "Grenada Football Association",
	["Guyana"] = "Guyana Football Federation",
		["British Guiana"] = "Guyana Football Federation",
	["Haiti"] = "Haitian Football Federation",
	["Jamaica"] = "Jamaica Football Federation",
	["Montserrat"] = "Montserrat Football Association",
	["Puerto Rico"] = "Puerto Rican Football Federation",
	["Saint Kitts and Nevis"] = "St. Kitts and Nevis Football Association",
	["Saint Lucia"] = "Saint Lucia Football Association",
	["Saint Vincent and the Grenadines"] = "Saint Vincent and the Grenadines Football Federation",
	["Suriname"] = "Surinamese Football Association",
		["Surinam (Dutch colony)"] = "Surinamese Football Association",
		["Suriname (Kingdom of the Netherlands)"] = "Surinamese Football Association",
	["Trinidad and Tobago"] = "Trinidad and Tobago Football Association",
	["Turks and Caicos Islands"] = "Turks and Caicos Islands Football Association",
	["United States Virgin Islands"] = "U.S. Virgin Islands Soccer Federation",

	["Argentina"] = "Argentine Football Association",
	["Bolivia"] = "Bolivian Football Federation",
	["Brazil"] = "Brazilian Football Confederation",
	["Chile"] = "Football Federation of Chile",
	["Colombia"] = "Colombian Football Federation",
	["Ecuador"] = "Ecuadorian Football Federation",
	["Paraguay"] = "Paraguayan Football Association",
	["Peru"] = "Peruvian Football Federation",
	["Uruguay"] = "Uruguayan Football Association",
	["Venezuela"] = "Venezuelan Football Federation",

	["American Samoa"] = "Football Federation American Samoa",
	["Cook Islands"] = "Cook Islands Football Association",
	["Fiji"] = "Fiji Football Association",
	["New Caledonia"] = "New Caledonian Football Federation",
	["New Zealand"] = "New Zealand Football",
	["Papua New Guinea"] = "Papua New Guinea Football Association",
	["Samoa"] = "Football Federation Samoa",
	["Solomon Islands"] = "Solomon Islands Football Federation",
	["French Polynesia"] = "Tahitian Football Federation",
	["Tonga"] = "Tonga Football Association",
	["Vanuatu"] = "Vanuatu Football Federation",
		["New Hebrides"] = "Vanuatu Football Federation",

	["Réunion"] = "Ligue réunionnaise de football",
	["Zanzibar"] = "Zanzibar Football Federation",
	["Northern Mariana Islands"] = "Northern Mariana Islands Football Association",
	["Bonaire"] = "Bonaire Football Federation",
	["French Guiana"] = "Ligue de football de la Guyane",
	["Guadeloupe"] = "Ligue guadeloupéenne de football",
	["Martinique"] = "Ligue de football de la Martinique",
	["Collectivity of Saint Martin"] = "Ligue de football de Saint-Martin",
	["Sint Maarten"] = "Sint Maarten Football Federation",
	["Kiribati"] = "Kiribati Islands Football Federation",
	["Niue"] = "Niue Football Association",
	["Tuvalu"] = "Tuvalu Islands Football Association",

	["East Germany"] = "Deutscher Fußball-Verband der DDR",
	["Saar Protectorate"] = "Saarland Football Association",
	["Serbia and Montenegro"] = "Football Association of Serbia and Montenegro",
		["Federal Republic of Yugoslavia"] = "Football Association of Serbia and Montenegro",
	["Soviet Union"] = "Football Federation of the Soviet Union",
	["Kingdom of Yugoslavia"] = "Football Association of Yugoslavia",
		["Democratic Federal Yugoslavia"] = "Football Association of Yugoslavia",
		["Federal People's Republic of Yugoslavia"] = "Football Association of Yugoslavia",
		["Socialist Federal Republic of Yugoslavia"] = "Football Association of Yugoslavia",
	["Commonwealth of Independent States"] = "Association Football Federation of CIS",
	["Netherlands Antilles"] = "Netherlands Antillean Football Union",
	["Curaçao and Dependencies"] = "Curaçao Football Association",
	["South Yemen"] = "PDR Yemen Football Federation",

	["Republic of Artsakh"] = "Artsakh Football Association",
	["Vatican City"] = "Vatican Amateur Sports Association",
	["Monaco"] = "Monégasque Football Federation",
	["Isle of Man"] = "Isle of Man Football Association",
	["Jersey"] = "Jersey Football Association",
	["Federated States of Micronesia"] = "Federated States of Micronesia Football Association",
	["Catalonia"] = "Catalan Football Federation",
	["Republika Srpska"] = "Football Association of Republika Srpska",
	["Greenland"] = "Football Association of Greenland",
	["Western Sahara"] = "Sahrawi Football Federation",
	["Guernsey"] = "Guernsey Football Association",
	["Falkland Islands"] = "Falkland Islands Football League",
	["Marshall Islands"] = "Marshall Islands Soccer Federation",
	["Palau"] = "Palau Football Association",
	["Gozo"] = "Gozo Football Association",
	["Northern Cyprus"] = "Cyprus Turkish Football Association",
	["Sápmi"] = "FA Sápmi",
	["Iraqi Kurdistan"] = "Kurdistan Football Association",
	["Tibet"] = "Tibetan National Football Association",
	["Abkhazia"] = "Football Federation of Abkhazia",
	["Quebec"] = "Soccer Québec",
	["Saint Barthélemy"] = "Comité Territorial de Football de Saint-Barthélemy",
	["Sint Eustatius"] = "Statia Football Association",
	["Saint Pierre and Miquelon"] = "Ligue de football de Saint-Pierre-et-Miquelon",
	["Saba (island)"] = "Saba Football Association",
	["Åland Islands"] = "Åland Football Association",
		["Åland"] = "Åland Football Association",
	["Gotland"] = "Gotlands Fotbollförbund",
	["Orkney"] = "Orkney Amateur Football Association",
	["Shetland"] = "Shetland Football Association",
	["Valencian Community"] = "Valencian Community Football Federation",
	["Ceuta"] = "Ceuta Football Federation",
	["Galicia (Spain)"] = "Royal Galician Football Federation",
	["Community of Madrid"] = "Royal Madrid Football Federation",
	["Melilla"] = "Royal Melillan Football Federation",
	["Region of Murcia"] = "Football Federation of the Region of Murcia",
	["Andalusia"] = "Royal Andalusian Football Federation",
	["Aragon"] = "Royal Aragonese Football Federation",
	["Asturias"] = "Royal Football Federation of the Principality of Asturias",
	["Basque Country (autonomous community)"] = "Basque Football Federation",
	["Castile and León"] = "Royal Castile and León Football Federation",
	["British West Indies"] = "British Caribbean Football Association",
	["Maasai people"] = "Maasai Football Federation",
	["Principality of Sealand"] = "Sealand National Football Association",
	["Ukrainian Soviet Socialist Republic"] = "Football Federation of the Ukrainian SSR",
	["Croatian Republic of Herzeg-Bosnia"] = "Football Federation of Herzeg-Bosnia",
	["Mayotte"] = "Ligue mahoraise de football",
	["Chagos Archipelago"] = "Chagos Football Association",
	["Somaliland"] = "Somaliland Football Association",
	["Nauru"] = "Nauru Soccer Federation",
	["Autonomous Region of Bougainville"] = "Bougainville Football Federation",
	["Hawaii"] = "Hawaiian Football",
	["Republic of West Papua"] = "Football Association West Papua",
	["Easter Island"] = "Asociación de Fútbol de Isla de Pascua",

	["Kenya_old"] = "Football Kenya Limited",
	["Brunei_old"] = "Football Association of Brunei Darussalam",
	["Niue_old"] = "Niue Island Soccer Association",
}

p.codes = {
	["Afghanistan"] = "AFG",
	["Albania"] = "ALB",
	["Algeria"] = "ALG",
	["American Samoa"] = "ASA",
	["Andorra"] = "AND",
	["Angola"] = "ANG",
	["Anguilla"] = "AIA",
	["Antigua and Barbuda"] = "ATG",
	["Argentina"] = "ARG",
	["Armenia"] = "ARM",
	["Aruba"] = "ARU",
	["Australia"] = "AUS",
	["Austria"] = "AUT",
	["Azerbaijan"] = "AZE",
	["The Bahamas"] = "BAH",
	["Bahrain"] = "BHR",
	["Bangladesh"] = "BAN",
	["Barbados"] = "BRB",
	["Belarus"] = "BLR",
	["Belgium"] = "BEL",
	["Belize"] = "BLZ",
	["Benin"] = "BEN",
	["Bermuda"] = "BER",
	["Bhutan"] = "BHU",
	["Bolivia"] = "BOL",
	["Bosnia and Herzegovina"] = "BIH",
	["Botswana"] = "BOT",
	["Brazil"] = "BRA",
	["British Virgin Islands"] = "VGB",
	["Brunei"] = "BRU",
	["Bulgaria"] = "BUL",
	["Burkina Faso"] = "BFA",
	["Burundi"] = "BDI",
	["Cambodia"] = "CAM",
	["Cameroon"] = "CMR",
	["Canada"] = "CAN",
	["Cape Verde"] = "CPV",
	["Cayman Islands"] = "CAY",
	["Central African Republic"] = "CTA",
	["Chad"] = "CHA",
	["Chile"] = "CHI",
	["China"] = "CHN",
	["Chinese Taipei"] = "TPE",
	["Colombia"] = "COL",
	["Comoros"] = "COM",
	["Republic of the Congo"] = "CGO",
	["Cook Islands"] = "COK",
	["Costa Rica"] = "CRC",
	["Croatia"] = "CRO",
	["Cuba"] = "CUB",
	["Curaçao"] = "CUW",
	["Cyprus"] = "CYP",
	["Czech Republic"] = "CZE",
	["Denmark"] = "DEN",
	["Djibouti"] = "DJI",
	["Dominica"] = "DMA",
	["Dominican Republic"] = "DOM",
	["Democratic Republic of the Congo"] = "COD",
	["Ecuador"] = "ECU",
	["Egypt"] = "EGY",
	["El Salvador"] = "SLV",
	["England"] = "ENG",
	["Equatorial Guinea"] = "EQG",
	["Eritrea"] = "ERI",
	["Estonia"] = "EST",
	["Ethiopia"] = "ETH",
	["Faroe Islands"] = "FRO",
	["Fiji"] = "FIJ",
	["Finland"] = "FIN",
	["France"] = "FRA",
	["Gabon"] = "GAB",
	["The Gambia"] = "GAM",
	["Georgia (country)"] = "GEO",
	["Germany"] = "GER",
	["Ghana"] = "GHA",
	["Gibraltar"] = "GIB",
	["Greece"] = "GRE",
	["Grenada"] = "GRN",
	["Guam"] = "GUM",
	["Guatemala"] = "GUA",
	["Guinea"] = "GUI",
	["Guinea-Bissau"] = "GNB",
	["Guyana"] = "GUY",
	["Haiti"] = "HAI",
	["Honduras"] = "HON",
	["Hong Kong"] = "HKG",
	["Hungary"] = "HUN",
	["Iceland"] = "ISL",
	["India"] = "IND",
	["Indonesia"] = "IDN",
	["Iran"] = "IRN",
	["Iraq"] = "IRQ",
	["Israel"] = "ISR",
	["Italy"] = "ITA",
	["Ivory Coast"] = "CIV",
	["Jamaica"] = "JAM",
	["Japan"] = "JPN",
	["Jordan"] = "JOR",
	["Kazakhstan"] = "KAZ",
	["Kenya"] = "KEN",
	["Kosovo"] = "KOS",
	["Kuwait"] = "KUW",
	["Kyrgyzstan"] = "KGZ",
	["Laos"] = "LAO",
	["Latvia"] = "LVA",
	["Lebanon"] = "LBN",
	["Lesotho"] = "LES",
	["Liberia"] = "LBR",
	["Libya"] = "LBY",
	["Liechtenstein"] = "LIE",
	["Lithuania"] = "LTU",
	["Luxembourg"] = "LUX",
	["Macau"] = "MAC",
	["North Macedonia"] = "MKD",
	["Madagascar"] = "MAD",
	["Malawi"] = "MWI",
	["Malaysia"] = "MAS",
	["Maldives"] = "MDV",
	["Mali"] = "MLI",
	["Malta"] = "MLT",
	["Mauritania"] = "MTN",
	["Mauritius"] = "MRI",
	["Mexico"] = "MEX",
	["Moldova"] = "MDA",
	["Mongolia"] = "MNG",
	["Montenegro"] = "MNE",
	["Montserrat"] = "MSR",
	["Morocco"] = "MAR",
	["Mozambique"] = "MOZ",
	["Myanmar"] = "MYA",
	["Namibia"] = "NAM",
	["Nepal"] = "NEP",
	["Netherlands"] = "NED",
	["New Caledonia"] = "NCL",
	["New Zealand"] = "NZL",
	["Nicaragua"] = "NCA",
	["Niger"] = "NIG",
	["Nigeria"] = "NGA",
	["North Korea"] = "PRK",
	["Northern Ireland"] = "NIR",
	["Norway"] = "NOR",
	["Oman"] = "OMA",
	["Pakistan"] = "PAK",
	["Palestine"] = "PLE",
		["State of Palestine"] = "PLE",
	["Panama"] = "PAN",
	["Papua New Guinea"] = "PNG",
	["Paraguay"] = "PAR",
	["Peru"] = "PER",
	["Philippines"] = "PHI",
	["Poland"] = "POL",
	["Portugal"] = "POR",
	["Puerto Rico"] = "PUR",
	["Qatar"] = "QAT",
	["Republic of Ireland"] = "IRL",
	["Romania"] = "ROU",
	["Russia"] = "RUS",
	["Rwanda"] = "RWA",
	["Saint Kitts and Nevis"] = "SKN",
	["Saint Lucia"] = "LCA",
	["Saint Vincent and the Grenadines"] = "VIN",
	["Samoa"] = "SAM",
	["San Marino"] = "SMR",
	["São Tomé and Príncipe"] = "STP",
	["Saudi Arabia"] = "KSA",
	["Scotland"] = "SCO",
	["Senegal"] = "SEN",
	["Serbia"] = "SRB",
	["Seychelles"] = "SEY",
	["Sierra Leone"] = "SLE",
	["Singapore"] = "SGP",
	["Slovakia"] = "SVK",
	["Slovenia"] = "SVN",
	["Solomon Islands"] = "SOL",
	["Somalia"] = "SOM",
	["South Africa"] = "RSA",
	["South Korea"] = "KOR",
	["South Sudan"] = "SSD",
	["Spain"] = "ESP",
	["Sri Lanka"] = "SRI",
	["Sudan"] = "SDN",
	["Suriname"] = "SUR",
	["Eswatini"] = "SWZ",
	["Sweden"] = "SWE",
	["Switzerland"] = "SUI",
	["Syria"] = "SYR",
	["French Polynesia"] = "TAH",
	["Tajikistan"] = "TJK",
	["Tanzania"] = "TAN",
	["Thailand"] = "THA",
	["East Timor"] = "TLS",
		["Timor-Leste"] = "TLS",
	["Togo"] = "TOG",
	["Tonga"] = "TGA",
	["Trinidad and Tobago"] = "TRI",
	["Tunisia"] = "TUN",
	["Turkey"] = "TUR",
	["Turkmenistan"] = "TKM",
	["Turks and Caicos Islands"] = "TCA",
	["Uganda"] = "UGA",
	["Ukraine"] = "UKR",
	["United Arab Emirates"] = "UAE",
	["United States"] = "USA",
	["Uruguay"] = "URU",
	["United States Virgin Islands"] = "VIR",
	["Uzbekistan"] = "UZB",
	["Vanuatu"] = "VAN",
	["Venezuela"] = "VEN",
	["Vietnam"] = "VIE",
	["Wales"] = "WAL",
	["Yemen"] = "YEM",
	["Zambia"] = "ZAM",
	["Zimbabwe"] = "ZIM",

	["Åland Islands"] = "AXL",
		["Åland"] = "AXL",
	["Republic of Artsakh"] = "NKR",
	["Basque Country (autonomous community)"] = "BSQ",
	["Bonaire"] = "BOE",
	["Catalonia"] = "CAT",
	["French Guiana"] = "GUF",
	["United Kingdom"] = "GBR",
		["United Kingdom of Great Britain and Ireland"] = "GBR",
	["Greenland"] = "GRL",
	["Guadeloupe"] = "GLP",
	["Kiribati"] = "KIR",
	["Martinique"] = "MTQ",
	["Northern Cyprus"] = "TRNC",
	["Northern Mariana Islands"] = "NMI",
	["Réunion"] = "REU",
	["Collectivity of Saint Martin"] = "SMN",
	["Sint Maarten"] = "SMA",
	["Tuvalu"] = "TUV",
	["Vatican City"] = "VAT",
	["Zanzibar"] = "ZAN",
	["Federated States of Micronesia"] = "FSM",
	["Monaco"] = "MCO",
	["Marshall Islands"] = "MHL",
	["Niue"] = "NIU",
	["Palau"] = "PLW",
	["British Guiana"] = "BGU",
	["British Raj"] = "BIN",
	["Bohemia"] = "BOH",
	["Myanmar_old"] = "BUR",
	["Dominion of Ceylon"] = "CEY",
	["Commonwealth of Independent States"] = "CIS",
	["Czechoslovakia"] = "TCH",
	["Republic of Dahomey"] = "DAH",
	["Dutch East Indies"] = "INH",
	["Federal Republic of Yugoslavia"] = "YUG",
	["East Germany"] = "GDR",
	["Gold Coast (British colony)"] = "GOC",
	["Ireland"] = "EIR",
	["Federation of Malaya"] = "MAL",
	["Netherlands Antilles"] = "ANT",
	["New Hebrides"] = "HEB",
	["North Vietnam"] = "VNO",
	["Yemen Arab Republic"] = "NYE",
	["Northern Rhodesia"] = "NRH",
	["Mandatory Palestine"] = "PAL",
	["Rhodesia"] = "RHO",
	["Saar Protectorate"] = "SAA",
	["Serbia and Montenegro"] = "SCG",
	["Thailand_old"] = "SIA",
	["Southern Rhodesia"] = "SRH",
	["South Vietnam"] = "VSO",
	["South Yemen"] = "YMD",
	["Soviet Union"] = "URS",
	["Tanganyika"] = "TAA",
	["Taiwan"] = "TAI",
	["United Arab Republic"] = "UAR",
	["Republic of Upper Volta"] = "UPV",
	["West Germany"] = "FRG",
	["Samoa_old"] = "WSM",
	["Socialist Federal Republic of Yugoslavia"] = "YUG",
	["Zaire"] = "ZAI",
}

function p.list(frame)
	if frame.args[1] then
		if string.sub(frame.args[1], -2) == "_c" then
			return p.codes[string.sub(frame.args[1], 1, -3)] or ""
		elseif string.sub(frame.args[1], -6) == "_c_old" then
			return p.codes[string.sub(frame.args[1], 1, -7) .. "_old"] or ""
		end
		return p.fbas[frame.args[1]] or ""
	end
	return ""
end

function p.list_all(frame)
	local fbas = {}
	local links = {}

	--Split table
	for k, v in pairs(p.fbas) do
		if links[v] then
			table.insert(fbas[links[v]].aliases, k)
			table.sort(fbas[links[v]].aliases)
		else
			links[v] = k
			fbas[k] = {[1] = v, aliases = {[1] = k}}
		end
	end
	
	local lists = mw.html.create()
	--Create fbas table
	local fbatable = lists:tag("table"):addClass("wikitable sortable collapsible")
	fbatable:tag("tr"):tag("th"):wikitext("Input"):done():tag("th"):wikitext("Output")
	for k,v in pairs(fbas) do
		local inp = (type(fbas[k].aliases) == "table") and ("<code>"..table.concat(fbas[k].aliases,"</code><br/><code>").."</code>") or ""
		local out = fbas[k][1] and ("[["..fbas[k][1].."]]") or k
		fbatable:tag("tr"):tag("td"):wikitext(inp):done():tag("td"):wikitext(out)
	end

	--Create codes table
	local ctable = lists:tag("table"):addClass("wikitable sortable collapsible")
	ctable:tag("tr"):tag("th"):wikitext("Input"):done():tag("th"):wikitext("Output")
	for k,v in pairs(p.codes) do
		ctable:tag("tr"):tag("td"):wikitext("<code>"..k.."</code>"):done():tag("td"):wikitext("<code>"..v.."</code>")
	end

	return lists
end

return p