வார்ப்புரு:CountryAbbr2
&lt;noinclude&gt;&lt;!--
 -=============================================================
 - CountryAbbr2 - Get country code by span flag image+wikilink
 -==============================================================
 -                       (see NOTES at bottom)
 -
 --&gt;&lt;/noinclude&gt;{{{{{subst|}}}#switch: {{{1&lt;noinclude&gt;|{{USA}}&lt;/noinclude&gt;}}}
 |
 | City | city
   | State | state = unknown &lt;!--catch invalid words--&gt;
 | United States | &lt;!--
   --&gt; {{country flag2|alias=United States | name=United States &lt;!--
       --&gt; | flag alias=Flag of the United States.svg}}
   | {{flagicon|USA}} [[United States]]=US-{{{{{subst|}}}StateAbbr|{{{2|New York}}}|subst={{{subst|}}}}}
 |{{{{{subst|}}}#if:{{{debug|}}}|??;{{{1|}}};{{{2|}}}|{{{{{subst|}}}CountryAbbr2/debug|subst={{{subst|}}}}}}}
 |
 | Canada | {{country flag2|alias=Canada | name=Canada&lt;!--
   --&gt; | flag alias=Flag of Canada.svg}} =CA-{{CanAbbr2|{{{2|}}}}}
 |
 | United Kingdom | Great Britain | Britain
   | England | {{country flag2|alias=England | name=England &lt;!--
   --&gt; | flag alias=Flag of England.svg}}
   | Wales | {{country flag2|alias=Wales | name=Wales&lt;!--
   --&gt; | flag alias=Flag of Wales 2.svg}}
   | Scotland | {{country flag2|alias=Scotland | name=Scotland&lt;!--
   --&gt; | flag alias=Flag of Scotland.svg}}
   | {{country flag2|alias=United Kingdom | name=United Kingdom &lt;!--
   --&gt; | flag alias=Flag of the United Kingdom.svg}} =GB
 | Poland | [[Poland]] | {{flagicon|Poland}} [[Poland]] |&lt;!--
   --&gt; {{country flag2|alias=Poland| name=Poland&lt;!--
   --&gt; | flag alias=Flag of Poland.svg}} =PL
 | France | {{country flag2|alias=France | name=France &lt;!--
   --&gt; | flag alias=Flag of France.svg}} =FR{{FraAbbr|{{{2|}}}}}
 | China| People's Republic of China
   | {{country flag2 &lt;!--
   --&gt; | alias=People's Republic of China &lt;!--
   --&gt; | name=China &lt;!--
   --&gt; | flag alias=Flag of the People's Republic of China.svg}}
   | {{country flag2 &lt;!--
   --&gt; | alias=People's Republic of China &lt;!--
   --&gt; | name=People's Republic of China &lt;!--
   --&gt; | flag alias=Flag of the People's Republic of China.svg}} =CN
 | Australia | {{country flag2|alias=Australia |name=Australia&lt;!--
   --&gt; | flag alias=Flag of Australia.svg}} =AU
 | Germany | {{country flag2|alias=Germany | name=Germany &lt;!--
   --&gt; | flag alias=Flag of Germany.svg}} =DE{{#switch:{{{2|}}}
  |Baden-Wuerttemberg|Baden-Württemberg|[[Baden-Württemberg]]=-BW
  |Bayern|Bavaria|[[Bavaria]]=-BY
  |Berlin|[[Berlin]]=-BE
  |Brandenburg|[[Brandenburg]]=-BB
  |Bremen|[[Bremen]]=-HB
  |Hamburg|[[Hamburg]]=-HH
  |Hessen|Hesse|[[Hesse]]=-HE
  |Mecklenburg-Vorpommern|Mecklenburg-Western Pomerania|Mecklenburg-Vorpommern|[[Mecklenburg-Western Pomerania]]=-MV
  |Niedersachsen|Lower Saxony|[[Lower Saxony]]=-NI
  |Nordrhein-Westfalen|NRW|North Rhine-Westphalia|[[North Rhine-Westphalia]]=-NW
  |Rheinland-Pfalz|Rhineland-Palatinate|[[Rhineland-Palatinate]]=-RP
  |Saarland|[[Saarland]]=-SL
  |Sachsen-Anhalt|Saxony-Anhalt|[[Saxony-Anhalt]]=-ST
  |Sachsen|Saxony|[[Saxony]]=-SN
  |Schleswig-Holstein|[[Schleswig-Holstein]]=-SH
  |Thüringen|Thuringia|[[Thuringia]]=-TH|}}
 | Austria | {{country flag2|alias=Austria | name=Austria&lt;!--
   --&gt; | flag alias=Flag of Austria.svg}} =AT
 | Italy | {{country flag2|alias=Italy | name=Italy &lt;!--
   --&gt; | flag alias=Flag of Italy.svg}} =IT
 | Spain | {{country flag2|alias=Spain | name=Spain &lt;!--
   --&gt; | flag alias=Flag of Spain.svg}} =ES
 | Japan | {{country flag2|alias=Japan | name=Japan &lt;!--
   --&gt; | flag alias=Flag of Japan.svg}} =JP
 | Netherlands|[[Netherlands]]|{{flagicon|NED}} [[Netherlands]]
   | {{country flag2|alias=Netherlands | name=Netherlands&lt;!--
   --&gt; | flag alias=Flag of the Netherlands.svg}} =NL
 | Brazil | [[Brazil]] | &lt;!--
   --&gt; {{country flag2|alias=Brazil | name=Brazil&lt;!--
   --&gt; | flag alias=Flag of Brazil.svg}} =BR
 | Sweden | {{country flag2|alias=Sweden | name=Sweden &lt;!--
   --&gt; | flag alias=Flag of Sweden.svg}} =SE
 | Czech Republic | [[Czech Republic]] | {{country flag2&lt;!--
   --&gt; | alias=Czech Republic | name=Czech Republic&lt;!--
   --&gt; | flag alias=Flag of the Czech Republic.svg}} =CZ
 | India | {{country flag2|alias=India | name=India&lt;!--
   --&gt; | flag alias=Flag of India.svg}} =IN-{{IndAbbr|{{{2|}}}}}
 | Argentina | {{country flag2|alias=Argentina | name=Argentina&lt;!--
   --&gt; | flag alias=Flag of Argentina.svg}} =AR
 | New Zealand | {{country flag2 &lt;!--
   --&gt; | alias=New Zealand | name=New Zealand&lt;!--
   --&gt; | flag alias=Flag of New Zealand.svg}} =NZ
 | Philippines | Phillipines | {{flag|Philippines}} | {{country flag2 &lt;!--
   --&gt; | alias=Philippines | name=Philippines&lt;!--
   --&gt; | flag alias=Flag of Philippines.svg}} =PH
 | Belgium | {{country flag2|alias=Belgium | name=Belgium&lt;!--
   --&gt; | flag alias=Flag of Belgium (civil).svg}} =BE
 | Russia | {{country flag2|alias=Russia | name=Russia &lt;!--
   --&gt; | flag alias=Flag of Russia.svg}} =RU
 | Nepal | {{flag|Nepal}} | {{country flag2|alias=Nepal | name=Nepal &lt;!--
   --&gt; | flag alias=Flag of Nepal.svg}} =NP
 | Denmark | {{country flag2|alias=Denmark | name=Denmark&lt;!--
   --&gt; | flag alias=Flag of Denmark.svg}} =DK
 | Finland | {{country flag2|alias=Finland | name=Finland&lt;!--
   --&gt; | flag alias=Flag of Finland.svg}} =FI
 | Hungary | {{country flag2|alias=Hungary | name=Hungary &lt;!--
   --&gt; | flag alias=Flag of Hungary.svg}} =HU
 | United Arab Emirates | {{country flag2 &lt;!--
   --&gt; | alias=United Arab Emirates | name=United Arab Emirates&lt;!--
   --&gt; | flag alias=Flag of the United Arab Emirates.svg}} =AE
 | Greece | {{country flag2|alias=Greece | name=Greece &lt;!--
   --&gt; | flag alias=Flag of Greece.svg}} =GR
 |
 | Albania | {{country flag2|alias=Albania | name=Albania&lt;!--
   --&gt; | flag alias=Flag of Albania.svg}} =AL
 | Bulgaria | {{country flag2|alias=Bulgaria | name=Bulgaria&lt;!--
   --&gt; | flag alias=Flag of Bulgaria.svg}} =BG
 | Armenia | {{country flag2|alias=Armenia | name=Armenia&lt;!--
   --&gt; | flag alias=Flag of Armenia.svg}} =AM
 | Afghanistan | {{country flag2 &lt;!--
   --&gt; | alias=Afghanistan | name=Afghanistan&lt;!--
   --&gt; | flag alias=Flag of Afghanistan.svg}} =AF
 | Azerbaijan| {{country flag2|alias=Azerbaijan| name=Azerbaijan&lt;!--
   --&gt; | flag alias=Flag of Azerbaijan.svg}} =AZ
 | Andorra | {{country flag2|alias=Andorra | name=Andorra&lt;!--
   --&gt; | flag alias=Flag of Andorra.svg}} =AD
 | Angola | {{country flag2|alias=Angola | name=Angola&lt;!--
   --&gt; | flag alias=Flag of Angola.svg}} =AO
 | Korea | {{country flag2|alias=Korea | name=Korea&lt;!--
   --&gt; | flag alias=Flag of Korea.svg}} =KR
 | Mexico | {{country flag2|alias=Mexico | name=Mexico&lt;!--
   --&gt; | flag alias=Flag of Mexico.svg}} =MX
 | Colombia | {{country flag2|alias=Colombia| name=Colombia&lt;!--
   --&gt; | flag alias=Flag of Colombia.svg}} =CO
 | Chile | {{country flag2|alias=Chile | name=Chile &lt;!--
   --&gt; | flag alias=Flag of Chile.svg}} =CL
 |
 | Antigua and Barbuda | {{country flag2 &lt;!--
   --&gt; | alias=Antigua and Barbuda| name=Antigua and Barbuda&lt;!--
   --&gt; | flag alias=Flag of Antigua and Barbuda.svg}} =AG
 | Croatia | {{country flag2|alias=Croatia | name=Croatia&lt;!--
   --&gt; | flag alias=Flag of Croatia.svg}} =HR
 |
 | Netherlands Antilles | {{country flag2 &lt;!--
   --&gt; | alias=Netherlands Antilles |name=Netherlands Antilles&lt;!--
   --&gt; | flag alias=Flag of the Netherlands Antilles.svg}} =AN
 | Curaçao | Curacao | {{country flag2 &lt;!--
   --&gt; | alias=Curaçao | name=Curaçao&lt;!--
   --&gt; | flag alias=Flag of Curaçao.svg}} =AN
 | South Africa | {{country flag2 &lt;!--
   --&gt; | alias=South Africa | name=South Africa&lt;!--
   --&gt; | flag alias=Flag of South Africa.svg}} =ZA
 | Bosnia and Herzegovina | {{country flag2 &lt;!--
   --&gt; | alias=Bosnia and Herzegovina &lt;!--
   --&gt; | name=Bosnia and Herzegovina&lt;!--
   --&gt; | flag alias=Flag of Bosnia and Herzegovina.svg}} =BA
 | Bangladesh | {{country flag2 &lt;!--
   --&gt; | alias=Bangladesh | name=Bangladesh&lt;!--
   --&gt; | flag alias=Flag of Bangladesh.svg}} =BD
 | Bahrain | {{country flag2|alias=Bahrain | name=Bahrain&lt;!--
   --&gt; | flag alias=Flag of Bahrain.svg}} =BH
 | Burundi | {{country flag2|alias=Burundi | name=Burundi&lt;!--
   --&gt; | flag alias=Flag of Burundi.svg}} =BI
 | Benin | {{country flag2|alias=Benin | name=Benin&lt;!--
   --&gt; | flag alias=Flag of Benin.svg}} =BJ
 | Saint Barthélemy=BL
 | Bermuda | {{country flag2|alias=Bermuda | name=Bermuda&lt;!--
   --&gt; | flag alias=Flag of Bermuda.svg}} =BM
 | Brunei | {{country flag2|alias=Brunei | name=Brunei&lt;!--
   --&gt; | flag alias=Flag of Brunei.svg}} =BN
 | Bolivia | {{country flag2|alias=Bolivia | name=Bolivia&lt;!--
   --&gt; | flag alias=Flag of Bolivia.svg}} =BO
 | Bahamas | {{country flag2|alias=Bahamas | name=Bahamas&lt;!--
   --&gt; | flag alias=Flag of the Bahamas.svg}} =BS
 | Bhutan | {{country flag2|alias=Bhutan | name=Bhutan&lt;!--
   --&gt; | flag alias=Flag of Bhutan.svg}} =BT
 | Bouvet Island=BV
 | Botswana | {{country flag2|alias=Botswana | name=Botswana&lt;!--
   --&gt; | flag alias=Flag of Botswana.svg}} =BW
 | Belarus | {{country flag2|alias=Belarus | name=Belarus&lt;!--
   --&gt; | flag alias=Flag of Belarus.svg}} =BY
 | Belize | {{country flag2|alias=Belize | name=Belize&lt;!--
   --&gt; | flag alias=Flag of Belize.svg}} =BZ
 | Cocos (Keeling) Islands=CC
 | Democratic Republic of the Congo | {{country flag2 &lt;!--
   --&gt; | alias=Democratic Republic of the Congo &lt;!--
   --&gt; | name=Democratic Republic of the Congo &lt;!--
   --&gt; | flag alias= &lt;!--
   --&gt;     Flag of the Democratic Republic of the Congo.svg}} =CD
 |
 | Central African Republic | {{country flag2 &lt;!--
   --&gt; | alias=Central African Republic &lt;!--
   --&gt; | name=Central African Republic&lt;!--
   --&gt; | flag alias=Flag of the Central African Republic.svg}} =CF
 |
 | Republic of the Congo | {{country flag2 &lt;!--
   --&gt; | alias=Republic of the Congo &lt;!--
   --&gt; | name=Republic of the Congo &lt;!--
   --&gt; | flag alias=Flag of the Republic of the Congo.svg}} =CG
 |
 | Switzerland |{{CHE}}&lt;!--simple template of image+name
   --&gt; =CH&lt;!--
   --&gt;{{#ifeq:{{{2|}}}|Schwyz|-SZ}}
 | Côte d'Ivoire | |{{flag|Côte d'Ivoire}} | {{country flag2 &lt;!--
   --&gt; | alias=Côte d'Ivoire | name=Côte d'Ivoire&lt;!--
   --&gt; | flag alias=Flag of Côte d'Ivoire.svg}} =CI
 | Cook Islands | {{country flag2&lt;!--
   --&gt; | alias=Cook Islands | name=Cook Islands&lt;!--
   --&gt; | flag alias=Flag of the Cook Islands.svg}} =CK
 | Cameroon | {{country flag2|alias=Cameroon| name=Cameroon&lt;!--
   --&gt; | flag alias=Flag of Cameroon.svg}} =CM
 | Costa Rica | {{country flag2|alias=Costa Rica| name=Costa Rica&lt;!--
   --&gt; | flag alias=Flag of Costa Rica.svg}} =CR
 | Cuba | {{country flag2|alias=Cuba | name=Cuba &lt;!--
   --&gt; | flag alias=Flag of Cuba.svg}} =CU
 | Cape Verde=CV
 | Christmas Island=CX
 | Cyprus | {{country flag2|alias=Cyprus | name=Cyprus&lt;!--
   --&gt; | flag alias=Flag of Cyprus.svg}} =CY
 | Djibouti | {{country flag2|alias=Djibouti | name=Djibouti&lt;!--
   --&gt; | flag alias=Flag of Djibouti.svg}} =DJ
 | Dominica=DM
 | Dominican Republic | {{country flag2 &lt;!--
   --&gt; | alias=Dominican Republic | name=Dominican Republic&lt;!--
   --&gt; | flag alias=Flag of the Dominican Republic.svg}} =DO
 | Algeria | {{country flag2|alias=Algeria | name=Algeria&lt;!--
   --&gt; | flag alias=Flag of Algeria.svg}} =DZ
 | Ecuador | {{country flag2|alias=Ecuador | name=Ecuador&lt;!--
   --&gt; | flag alias=Flag of Ecuador.svg}} =EC
 | Estonia | {{country flag2|alias=Estonia | name=Estonia&lt;!--
   --&gt; | flag alias=Flag of Estonia.svg}} =EE
 | Western Sahara=EH
 | Eritrea | {{country flag2|alias=Eritrea | name=Eritrea&lt;!--
   --&gt; | flag alias=Flag of Eritrea.svg}} =ER
 | Ethiopia | {{country flag2|alias=Ethiopia | name=Ethiopia&lt;!--
   --&gt; | flag alias=Flag of Ethiopia.svg}} =ET
 | Fiji | {{country flag2|alias=Fiji | name=Fiji&lt;!--
   --&gt; | flag alias=Flag of Fiji.svg}} =FJ
 | Falkland Islands | {{country flag2 &lt;!--
   --&gt; | alias=Falkland Islands | name=Falkland Islands&lt;!--
   --&gt; | flag alias=Flag of the Falkland Islands.svg}} =FK
 | Federated States of Micronesia | {{country flag2&lt;!--
   --&gt; | alias=Federated States of Micronesia &lt;!--
   --&gt; | name=Federated States of Micronesia &lt;!--
   --&gt; | flag alias=Flag of Federated States of Micronesia.svg}} =FM
 | Faroe Islands=FO
 | Gabon | {{country flag2|alias=Gabon | name=Gabon &lt;!--
   --&gt; | flag alias=Flag of Gabon.svg}} =GA
 | Grenada | {{country flag2|alias=Grenada | name=Grenada&lt;!--
   --&gt; | flag alias=Flag of Grenada.svg}} =GD
 | Georgia | {{GEO}} | {{country flag2|alias=Georgia | name=Georgia&lt;!--
   --&gt; | flag alias=Flag of Georgia.svg}} =GE
 | French Guiana=GF
 | Guernsey=GG
 | Guernsey | {{country flag2|alias=Guernsey| name=Guernsey&lt;!--
   --&gt; | flag alias=Flag of Guernsey.svg}} =GG
 | Ghana | {{country flag2|alias=Ghana | name=Ghana&lt;!--
   --&gt; | flag alias=Flag of Ghana.svg}} =GH
 | Gibraltar | {{country flag2|alias=Gibraltar | name=Gibraltar&lt;!--
   --&gt; | flag alias=Flag of Gibraltar.svg}} =GI
 | Greenland | {{country flag2|alias=Greenland| name=Greenland&lt;!--
   --&gt; | flag alias=Flag of Greenland.svg}} =GL
 | Gambia| The Gambia | {{flag|Gambia}} | {{flag|The Gambia}} | {{country flag2 &lt;!--
   --&gt; | alias=Gambia | name=Gambia&lt;!--
   --&gt; | flag alias=Flag of Gambia.svg}} =GM
 | Guinea | {{country flag2|alias=Guinea | name=Guinea&lt;!--
   --&gt; | flag alias=Flag of Guinea.svg}} =GN
 | Guadeloupe | {{country flag2|alias=Guadeloupe| name=Guadeloupe&lt;!--
   --&gt; | flag alias=Flag of Guadeloupe.svg}} =GP
 | Equatorial Guinea | {{flag|Equatorial Guinea}} =GQ
 | South Georgia and the South Sandwich Islands=GS
 | Guatemala | {{country flag2|alias=Guatemala| name=Guatemala&lt;!--
   --&gt; | flag alias=Flag of Guatemala.svg}} =GT
 | Guam | {{country flag2|alias=Guam | name=Guam &lt;!--
   --&gt; | flag alias=Flag of Guam.svg}} =GU
 | Guinea-Bissau=GW
 | Guyana | {{country flag2|alias=Guyana | name=Guyana&lt;!--
   --&gt; | flag alias=Flag of Guyana.svg}} =GY
 | Hong Kong | {{country flag2|alias=Hong Kong| name=Hong Kong&lt;!--
   --&gt; | flag alias=Flag of Hong Kong.svg}} =HK
 | Honduras | {{country flag2|alias=Honduras| name=Honduras&lt;!--
   --&gt; | flag alias=Flag of Honduras.svg}} =HN
 | Haiti | {{country flag2|alias=Haiti | name=Haiti &lt;!--
   --&gt; | flag alias=Flag of Haiti.svg}} =HT
 | Indonesia | {{country flag2|alias=Indonesia| name=Indonesia&lt;!--
   --&gt; | flag alias=Flag of Indonesia.svg}} =ID
 | Ireland | {{country flag2 &lt;!--
   --&gt; | alias=Republic of Ireland | name=Ireland&lt;!--
   --&gt; | flag alias=Flag of Ireland.svg}} =IE
 | Israel | {{country flag2|alias=Israel | name=Israel&lt;!--
   --&gt; | flag alias=Flag of Israel.svg}} =IL
 | Egypt | {{country flag2|alias=Egypt | name=Egypt&lt;!--
   --&gt; | flag alias=Flag of Egypt.svg}} =EG
 | Isle of Man=IM
 | British Indian Ocean Territory=IO
 | Iraq | {{country flag2|alias=Iraq | name=Iraq&lt;!--
   --&gt; | flag alias=Flag of Iraq.svg}} =IQ
 | Iran | {{country flag2|alias=Iran | name=Iran&lt;!--
   --&gt; | flag alias=Flag of Iran.svg}} =IR
 | Iceland | {{country flag2|alias=Iceland | name=Iceland&lt;!--
   --&gt; | flag alias=Flag of Iceland.svg}} =IS
 | Jersey | {{country flag2|alias=Jersey | name=Jersey&lt;!--
   --&gt; | flag alias=Flag of Jersey.svg}} =JE
 | Jamaica | [[Jamaica]] | {{country flag2 &lt;!--
   --&gt; | alias=Jamaica | name=Jamaica &lt;!--
   --&gt; | flag alias=Flag of Jamaica.svg}} =JM
 | Jordan | {{country flag2|alias=Jordan | name=Jordan&lt;!--
   --&gt; | flag alias=Flag of Jordan.svg}} =JO
 | Kenya | {{country flag2|alias=Kenya | name=Kenya&lt;!--
   --&gt; | flag alias=Flag of Kenya.svg}} =KE
 | Kyrgyzstan |{{country flag2 &lt;!--
   --&gt; | alias=Kyrgyzstan | name=Kyrgyzstan&lt;!--
   --&gt; | flag alias=Flag of Kyrgyzstan.svg}} =KG
 | Cambodia | {{country flag2|alias=Cambodia| name=Cambodia&lt;!--
   --&gt; | flag alias=Flag of Cambodia.svg}} =KH
 | Kiribati=KI
 | Comoros | {{flag|Comoros}} | {{country flag2|alias=Comoros | name=Comoros&lt;!--
   --&gt; | flag alias=Flag of Comoros.svg}} =KM
 | Saint Kitts and Nevis=KN
 | North Korea | {{country flag2 &lt;!--
   --&gt; | alias=North Korea | name=North Korea&lt;!--
   --&gt; | flag alias=Flag of North Korea.svg}} =KP
 | Kuwait | {{country flag2|alias=Kuwait | name=Kuwait&lt;!--
   --&gt; | flag alias=Flag of Kuwait.svg}} =KW
 | Cayman Islands | {{country flag2 &lt;!--
   --&gt; | alias=Cayman Islands | name=Cayman Islands&lt;!--
   --&gt; | flag alias=Flag of Cayman Islands.svg}} =KY
 | Kazakhstan | {{country flag2 &lt;!--
   --&gt; | alias=Kazakhstan | name=Kazakhstan&lt;!--
   --&gt; | flag alias=Flag of Kazakhstan.svg}} =KZ
 | Laos | {{country flag2|alias=Laos | name=Laos&lt;!--
   --&gt; | flag alias=Flag of Laos.svg}} =LA
 | Lebanon | {{country flag2|alias=Lebanon | name=Lebanon&lt;!--
   --&gt; | flag alias=Flag of Lebanon.svg}} =LB
 | Saint Lucia=LC
 | Liechtenstein | {{country flag2 &lt;!--
   --&gt; | alias=Liechtenstein | name=Liechtenstein&lt;!--
   --&gt; | flag alias=Flag of Liechtenstein.svg}} =LI
 | Sri Lanka | {{country flag2 &lt;!--
   --&gt; | alias=Sri Lanka | name=Sri Lanka&lt;!--
   --&gt; | flag alias=Flag of Sri Lanka.svg}} =LK
 | Liberia | {{country flag2|alias=Liberia | name=Liberia&lt;!--
   --&gt; | flag alias=Flag of Liberia.svg}} =LR
 | Lesotho | {{country flag2|alias=Lesotho | name=Lesotho&lt;!--
   --&gt; | flag alias=Flag of Lesotho.svg}} =LS
 | Lithuania| {{country flag2 &lt;!--
   --&gt; | alias=Lithuania | name=Lithuania&lt;!--
   --&gt; | flag alias=Flag of Lithuania.svg}} =LT
 | Luxembourg| {{country flag2 &lt;!--
   --&gt; | alias=Luxembourg | name=Luxembourg&lt;!--
   --&gt; | flag alias=Flag of Luxembourg.svg}} =LU
 | Latvia | {{country flag2|alias=Latvia | name=Latvia&lt;!--
   --&gt; | flag alias=Flag of Latvia.svg}} =LV
 | Libya | {{country flag2|alias=Libya | name=Libya&lt;!--
   --&gt; | flag alias=Flag of Libya.svg}} =LY
 | Morocco | {{country flag2|alias=Morocco| name=Morocco&lt;!--
   --&gt; | flag alias=Flag of Morocco.svg}} =MA
 | Monaco | {{country flag2|alias=Monaco | name=Monaco&lt;!--
   --&gt; | flag alias=Flag of Monaco.svg}} =MC
 | Moldova | {{country flag2|alias=Moldova | name=Moldova&lt;!--
   --&gt; | flag alias=Flag of Moldova.svg}} =MD
 | Montenegro | {{country flag2 &lt;!--
   --&gt; | alias=Montenegro | name=Montenegro&lt;!--
   --&gt; | flag alias=Flag of Montenegro.svg}} =ME
 | Saint Martin | {{country flag2 &lt;!--
   --&gt; |alias=Saint Martin | name=Saint Martin&lt;!--
   --&gt; | flag alias=Flag of Saint Martin.svg}} =MF
 | Madagascar | {{country flag2 &lt;!--
   --&gt; | alias=Madagascar | name=Madagascar&lt;!--
   --&gt; | flag alias=Flag of Madagascar.svg}} =MG
 | Marshall Islands=MH
 | Macedonia | {{MKD}} | {{country flag2 &lt;!--
   --&gt; | alias=Macedonia  | name=Macedonia &lt;!--
   --&gt; | flag alias=Flag of Macedonia .svg}} =MK
 | Mali | {{country flag2|alias=Mali | name=Mali&lt;!--
   --&gt; | flag alias=Flag of Mali.svg}} =ML
 | Myanmar| Burma
   | {{country flag2|alias=Myanmar | name=Myanmar&lt;!--
   --&gt; | flag alias=Flag of Myanmar.svg}} =MM
 | Mongolia | {{country flag2|alias=Mongolia | name=Mongolia&lt;!--
   --&gt; | flag alias=Flag of Mongolia.svg}} =MN
 | Macau | {{country flag2|alias=Macau | name=Macau&lt;!--
   --&gt; | flag alias=Flag of Macau.svg}} =MO
 | Northern Mariana Islands | {{country flag2 &lt;!--
   --&gt; | alias=Northern Mariana Islands &lt;!--
   --&gt; | name=Northern Mariana Islands &lt;!--
   --&gt; | flag alias=Flag of Northern Mariana Islands.svg}} =MP
 | Martinique | {{country flag2 &lt;!--
   --&gt; | alias=Martinique | name=Martinique&lt;!--
   --&gt; | flag alias=Flag of Martinique.svg}} =MQ
 | Mauritania| {{country flag2 &lt;!--
   --&gt; | alias=Mauritania| name=Mauritania&lt;!--
   --&gt; | flag alias=Flag of Mauritania.svg}} =MR
 | Montserrat=MS
 | Malta | {{country flag2|alias=Malta | name=Malta&lt;!--
   --&gt; | flag alias=Flag of Malta.svg}} =MT
 | Mauritius | {{flag|Mauritius}} =MU
 | Maldives | {{country flag2|alias=Maldives| name=Maldives&lt;!--
   --&gt; | flag alias=Flag of Maldives.svg}} =MV
 | Malawi| {{country flag2|alias=Malawi | name=Malawi&lt;!--
   --&gt; | flag alias=Flag of Malawi.svg}} =MW
 | Malaysia| {{flag|Malaysia}} | {{country flag2|alias=Malaysia| name=Malaysia&lt;!--
   --&gt; | flag alias=Flag of Malaysia.svg}} =MY
 | Mozambique | {{country flag2 &lt;!--
   --&gt; | alias=Mozambique | name=Mozambique&lt;!--
   --&gt; | flag alias=Flag of Mozambique.svg}} =MZ
 | Namibia | {{country flag2|alias=Namibia| name=Namibia&lt;!--
   --&gt; | flag alias=Flag of Namibia.svg}} =NA
 | New Caledonia=NC
 | Niger | {{country flag2|alias=Niger | name=Niger&lt;!--
   --&gt; | flag alias=Flag of Niger.svg}} =NE
 | Norfolk Island=NF
 | Nigeria | {{country flag2|alias=Nigeria| name=Nigeria&lt;!--
   --&gt; | flag alias=Flag of Nigeria.svg}} =NG
 | Nicaragua | {{country flag2 &lt;!--
   --&gt; | alias=Nicaragua | name=Nicaragua&lt;!--
   --&gt; | flag alias=Flag of Nicaragua.svg}} =NI
 | Norway | {{country flag2|alias=Norway | name=Norway&lt;!--
   --&gt; | flag alias=Flag of Norway.svg}} =NO
 | Nauru | {{country flag2|alias=Nauru | name=Nauru&lt;!--
   --&gt; | flag alias=Flag of Nauru.svg}} =NR
 | Niue=NU
 | Oman | {{country flag2|alias=Oman | name=Oman&lt;!--
   --&gt; | flag alias=Flag of Oman.svg}} =OM
 | Panama | {{country flag2|alias=Panama | name=Panama&lt;!--
   --&gt; | flag alias=Flag of Panama.svg}} =PA
 | Peru | {{country flag2|alias=Peru | name=Peru &lt;!--
   --&gt; | flag alias=Flag of Peru.svg}} =PE
 | French Polynesia=PF
 | Papua New Guinea=PG
 | Pakistan | {{country flag2|alias=Pakistan | name=Pakistan&lt;!--
   --&gt; | flag alias=Flag of Pakistan.svg}} =PK
 | Saint Pierre and Miquelon=PM
 | Pitcairn Islands=PN
 | Puerto Rico | {{country flag2 &lt;!--
   --&gt; | alias=Puerto Rico | name=Puerto Rico&lt;!--
   --&gt; | flag alias=Flag of Puerto Rico.svg}} =PR
 | Palestinian Authority
 | Palestine | {{country flag2|alias=Palestine | name=Palestine&lt;!--
   --&gt; | flag alias=Flag of Palestine.svg}} =PS
 | Portugal | {{country flag2|alias=Portugal | name=Portugal&lt;!--
   --&gt; | flag alias=Flag of Portugal.svg}} =PT
 | Palau | {{country flag2|alias=Palau | name=Palau&lt;!--
   --&gt; | flag alias=Flag of Palau.svg}} =PW
 | Paraguay | {{country flag2|alias=Paraguay | name=Paraguay&lt;!--
   --&gt; | flag alias=Flag of Paraguay.svg}} =PY
 | Qatar | {{country flag2|alias=Qatar | name=Qatar&lt;!--
   --&gt; | flag alias=Flag of Qatar.svg}} =QA
 | Réunion=RE
 | Romania | {{country flag2|alias=Romania | name=Romania &lt;!--
   --&gt; | flag alias=Flag of Romania.svg}} =RO
 | Serbia | {{country flag2|alias=Serbia | name=Serbia &lt;!--
   --&gt; | flag alias=Flag of Serbia.svg}} =RS
 | Rwanda | {{country flag2|alias=Rwanda | name=Rwanda&lt;!--
   --&gt; | flag alias=Flag of Rwanda.svg}} =RW
 | Saudi Arabia | {{country flag2 &lt;!--
   --&gt; | alias=Saudi Arabia | name=Saudi Arabia&lt;!--
   --&gt; | flag alias=Flag of Saudi Arabia.svg}} =SA
 | Solomon Islands | {{country flag2 &lt;!--
   --&gt; | alias=Solomon Islands | name=Solomon Islands&lt;!--
   --&gt; | flag alias=Flag of the Solomon Islands.svg}} =SB
 | Seychelles | {{country flag2 &lt;!--
   --&gt; | alias=Seychelles| name=Seychelles&lt;!--
   --&gt; | flag alias=Flag of Seychelles.svg}} =SC
 | Sudan  | {{country flag2|alias=Sudan | name=Sudan &lt;!--
   --&gt; | flag alias=Flag of Sudan.svg}} =SD
 | Singapore | {{country flag2|alias=Singapore| name=Singapore&lt;!--
   --&gt; | flag alias=Flag of Singapore.svg}} =SG
 | Saint Helena | {{country flag2 &lt;!--
   --&gt; | alias=Saint Helena | name=Saint Helena&lt;!--
   --&gt; | flag alias=Flag of Saint Helena.svg}} =SH
 | Slovenia | {{country flag2|alias=Slovenia | name=Slovenia&lt;!--
   --&gt; | flag alias=Flag of Slovenia.svg}} =SI
 | Svalbard and Jan Mayen=SJ
 | Sierra Leone | {{country flag2 &lt;!--
   --&gt; | alias=Sierra Leone | name=Sierra Leone&lt;!--
   --&gt; | flag alias=Flag of Sierra Leone.svg}} =SL
 | San Marino | {{country flag2 &lt;!--
   --&gt; | alias=San Marino | name=San Marino&lt;!--
   --&gt; | flag alias=Flag of San Marino.svg}} =SM
 | Senegal | {{country flag2|alias=Senegal | name=Senegal&lt;!--
   --&gt; | flag alias=Flag of Senegal.svg}} =SN
 | Somalia | {{country flag2|alias=Somalia | name=Somalia&lt;!--
   --&gt; | flag alias=Flag of Somalia.svg}} =SO
 | Suriname | {{country flag2|alias=Suriname | name=Suriname&lt;!--
   --&gt; | flag alias=Flag of Suriname.svg}} =SR
 | São Tomé and Príncipe=ST
 | El Salvador | {{country flag2 &lt;!--
   --&gt; | alias=El Salvador | name=El Salvador &lt;!--
   --&gt; | flag alias=Flag of El Salvador.svg}} =SV
 | Syria | {{country flag2|alias=Syria | name=Syria &lt;!--
   --&gt; | flag alias=Flag of Syria.svg}} =SY
 | Swaziland | {{country flag2|alias=Swaziland| name=Swaziland&lt;!--
   --&gt; | flag alias=Flag of Swaziland.svg}} =SZ
 | Turks and Caicos Islands=TC
 | Chad | {{country flag2|alias=Chad | name=Chad &lt;!--
   --&gt; | flag alias=Flag of Chad.svg}} =TD
 | French Southern and Antarctic Lands=TF
 | Togo | {{country flag2|alias=Togo | name=Togo&lt;!--
   --&gt; | flag alias=Flag of Togo.svg}} =TG
 | Thailand | {{country flag2|alias=Thailand| name=Thailand&lt;!--
   --&gt; | flag alias=Flag of Thailand.svg}} =TH
 | Tajikistan | {{country flag2 &lt;!--
   --&gt; | alias=Tajikistan | name=Tajikistan&lt;!--
   --&gt; | flag alias=Flag of Tajikistan.svg}} =TJ
 | Tokelau | {{country flag2|alias=Tokelau | name=Tokelau&lt;!--
   --&gt; | flag alias=Flag of Tokelau.svg}} =TK
 | Timor-Leste | {{TLS}} =TL
 | Turkmenistan | {{country flag2 &lt;!--
   --&gt; | alias=Turkmenistan | name=Turkmenistan&lt;!--
   --&gt; | flag alias=Flag of Turkmenistan.svg}} =TM
 | Tunisia | {{country flag2|alias=Tunisia | name=Tunisia&lt;!--
   --&gt; | flag alias=Flag of Tunisia.svg}} =TN
 | Tonga | {{country flag2|alias=Tonga | name=Tonga&lt;!--
   --&gt; | flag alias=Flag of Tonga.svg}} =TO
 | Turkey | {{country flag2|alias=Turkey | name=Turkey&lt;!--
   --&gt; | flag alias=Flag of Turkey.svg}} =TR
 | Trinidad and Tobago | Trinidad | Tobago &lt;!--
   --&gt; | {{country flag2 &lt;!--
   --&gt; | alias=Trinidad and Tobago | name=Trinidad and Tobago&lt;!--
   --&gt; | flag alias=Flag of Trinidad and Tobago.svg}} =TT
 | Tuvalu | {{country flag2|alias=Tuvalu | name=Tuvalu &lt;!--
   --&gt; | flag alias=Flag of Tuvalu.svg}} =TV
 | Republic of China | {{ROC-TW}} | {{country flag2 &lt;!--
   --&gt; | alias=Republic of China | name=Republic of China&lt;!--
   --&gt; | flag alias=Flag of the Republic of China.svg}} =TW
 | Taiwan | {{country flag2 &lt;!--
   --&gt; | alias=Republic of China | name=Taiwan &lt;!--
   --&gt; | flag alias=Flag of the Republic of China.svg}} =TW
 | Tanzania | {{country flag2|alias=Tanzania| name=Tanzania&lt;!--
   --&gt; | flag alias=Flag of Tanzania.svg}} =TZ
 | Ukraine | {{UKR}} | {{country flag2|alias=Ukraine | name=Ukraine&lt;!--
   --&gt; | flag alias=Flag of Ukraine.svg}} =UA
 | Uganda | {{country flag2|alias=Uganda | name=Uganda&lt;!--
   --&gt; | flag alias=Flag of Uganda.svg}} =UG
 | United States Minor Outlying Islands=UM
 | Uruguay | {{country flag2|alias=Uruguay | name=Uruguay&lt;!--
   --&gt; | flag alias=Flag of Uruguay.svg}} =UY
 | Uzbekistan | {{country flag2 &lt;!--
   --&gt; | alias=Uzbekistan | name=Uzbekistan&lt;!--
   --&gt; | flag alias=Flag of Uzbekistan.svg}} =UZ
 | Vatican City | {{country flag2 &lt;!--
   --&gt; | alias=Vatican City | name=Vatican City &lt;!--
   --&gt; | flag alias=Flag of the Vatican City.svg}} = VA
 | Saint Vincent
 | Saint Vincent and the Grenadines | {{country flag2 &lt;!--
   --&gt;| alias=Saint Vincent and the Grenadines &lt;!--
   --&gt;| name=Saint Vincent and the Grenadines &lt;!--
   --&gt;|flag alias=Flag of Saint Vincent and the Grenadines.svg}}=VC
 |
 | Venezuela | {{country flag2|alias=Venezuela| name=Venezuela&lt;!--
   --&gt; | flag alias=Flag of Venezuela.svg}} =VE
 | British Virgin Islands | {{country flag2 &lt;!--
   --&gt;| alias=British Virgin Islands &lt;!--
   --&gt;| name=British Virgin Islands &lt;!--
   --&gt;| flag alias=Flag of the British Virgin Islands.svg}}=VG
 | United States Virgin Islands | {{country flag2 &lt;!--
   --&gt;| alias=United States Virgin Islands &lt;!--
   --&gt;| name=United States Virgin Islands &lt;!--
   --&gt;| flag alias=Flag of the United States Virgin Islands.svg}}=VI
 |
 | Vietnam | {{country flag2|alias=Vietnam | name=Vietnam&lt;!--
   --&gt; | flag alias=Flag of Vietnam.svg}} =VN
 | Vanuatu | {{country flag2|alias=Vanuatu | name=Vanuatu&lt;!--
   --&gt; | flag alias=Flag of Vanuatu.svg}} =VU
 | Wallis and Futuna=WF
 | Samoa | {{country flag2|alias=Samoa | name=Samoa&lt;!--
   --&gt; | flag alias=Flag of Samoa.svg}} =WS
 | Yemen | {{country flag2|alias=Yemen | name=Yemen &lt;!--
   --&gt; | flag alias=Flag of Yemen.svg}} =YE
 | Mayotte | {{country flag2|alias=Mayotte | name=Mayotte&lt;!--
   --&gt; | flag alias=Flag of Mayotte.svg}} =YT
 |
 | Zambia | {{country flag2|alias=Zambia | name=Zambia&lt;!--
   --&gt; | flag alias=Flag of Zambia.svg}} =ZM
 | Zimbabwe | {{country flag2|alias=Zimbabwe| name=Zimbabwe&lt;!--
   --&gt; | flag alias=Flag of Zimbabwe.svg}} =ZW
 |
 | Anguilla | {{country flag2|alias=Anguilla| name=Anguilla&lt;!--
   --&gt; | flag alias=Flag of Anguilla.svg}} =AI
 | Slovakia | {{country flag2|alias=Slovakia| name=Slovakia&lt;!--
   --&gt; | flag alias=Flag of Slovakia.svg}} =SK
 | Aruba | {{country flag2|alias=Aruba | name=Aruba&lt;!--
   --&gt; | flag alias=Flag of Aruba.svg}} =AW
 | Åland Islands=AX
 | American Samoa | {{country flag2 &lt;!--
   --&gt; | alias=American Samoa | name=American Samoa&lt;!--
   --&gt; | flag alias=Flag of American Samoa.svg}} =AS
 | Burkina Faso | {{country flag2 &lt;!--
   --&gt; | alias=Burkina Faso | name=Burkina Faso&lt;!--
   --&gt; | flag alias=Flag of Burkina Faso.svg}} =BF
 | Barbados | {{country flag2|alias=Barbados | name=Barbados&lt;!--
   --&gt; | flag alias=Flag of Barbados.svg}} =BB
 | Antarctica | {{country flag2 &lt;!--
   --&gt; | alias=Antarctica | name=Antarctica&lt;!--
   --&gt; | flag alias=Flag of Antarctica.svg}} =AQ
 |
 }}&lt;noinclude&gt;&lt;!--
 --------------------------------------------------------------
 --NOTES:
 --
 -- A1: This template is used to find a 2-letter country
 --     code (plus 2-letter region code) by matching each
 --     country-flag spanned image+wikilink. However, the
 --     original implementation transcluded over 560 flag
 --     or country-data templates, so the code has been
 --     simplified to omit specialized flag templates and
 --     omit rare flags not used by a caller page.
 --
 -- D2: The flag+wikilink data can be generated for each
 --     country by {{country flag2|...}} which shows:
 --       &lt;span class=&quot;flagicon&quot;&gt;[[File:Flag of XXX.svg|
 --       {{#if:||22x20px}}|border |alt=|link=]]&amp;nbsp;
 --       &lt;/span&gt;[[XXX|XXX]]
 --     Directly using template {{country flag2}} can bypass
 --     other country templates, and avoid hundreds in total,
 --     but XXX must be repeated in name, alias &amp; flag alias.
 --
 -- F3: The flag+wikilink combinations were originally
 --     generated by the 3-letter templates, such as {{DEU}}
 --     for the Germany flag+[[Germany]]. However, in most
 --     cases, using template {{flag}} will generate the same
 --     data and match as identical: {{DEU}}={{flag|Germany}}
 --     Unfortunately, {{flag}} uses {{Country data Germany}}
 --     so for all flags, hundreds of &quot;Country data XXX&quot;
 --     templates were also being transcluded. Eventually,
 --     to use the fewest templates, use {{country flag2}}:
 --       {{country flag2|alias=Germany|name=Germany
 --       | flag alias=Flag of Germany.svg}}
 --     Although country name is repeated 3 times, it avoids
 --     {{DEU}}, {{flag|Germany}} &amp; {{Country data Germany}}
 --     avoiding 3 templates for each nation.
 --
 -- Q4: Among the many quirks of images, an image name
 --     using blanks will not match a name with underscores
 --     or underbars (&quot;_&quot;), although they display the same.
 --
 -- S4: The top 40 most-referenced nations have been
 --     sorted into order, to match as quickly as possible
 --     in the #switch logic.
 --
 -- W5: The following are unusual items:
 --     Switzerland=CH but set &quot;Schwyz&quot; as CH-SZ.
 --     Flags of groups add &quot;the&quot; but not in Fed...Micronesia.
 --     Flag of Wales has &quot;2&quot; suffix:  Flag of Wales 2.svg
 --     Flag of Belgium:  Flag of Belgium (civil).svg
 --     Flag of Switzerland uses {{CHE}} not {Country flag2}.
 --     BEWARE: Flag name underbars won't match spaced names.
 --
 --     For simplicity, not all flags have been added into
 --     the template, and some nation flags will not match.
 --
 --------------------------------------------------------------
 --HISTORY:
 --08Mar09 Created to get 2-letter codes by flag-code templates.
 --24Mar10 Added HISTORY comments to log major changes.
 --25Mar10 Redone to omit most 3-letter templates {DEU},{VAT}...
 --25Mar10 Redone to omit 562 subtemplates of nation data/flags.
 --25Mar10 Re-added Europe/Africa/Asia flags as {Country flag2}.
 --25Mar10 Added internal NOTES comments to explain template coding.
 --25Mar10 Fixed Switzerland=CH (not SZ), canton Schwyz as CH-SZ.
 --27Mar10 Sorted 40 most-referenced nations to match quickly.
 --
 --&gt;