வார்ப்புரு:YearInCountryPortalBox/parse
&lt;includeonly&gt;{{#switch: {{{1|}}}
 &lt;!-- Africa --&gt;
 | Gambia
 | the Gambia
 | The Gambia = The Gambia
 
 | Spanish Saharager= Western Sahara %% Spain
 
 | Majeerteen Sultanate = Somalia
 
 | Basutoland = Africa
 | Griqualand West = South Africa
 | British Cameroons = Cameroon %% Nigeria
 | French Cameroons =  Cameroon %% France
 | French Togoland = Africa %% France
 | French Upper Volta = Africa %% France
 | Upper Volta = Africa 
 | Réunion = Africa %% France
 | Ubangi-Shari = Central African Republic %% France
 | French Sudan = Mali %% France
 | French Guinea = Guinea %% France
 
 | the Federation of Rhodesia and Nyasaland
 | Federation of Rhodesia and Nyasaland = Zambia %% Africa &lt;!-- also Malawi and British Empire --&gt;
 | Nyasaland = Malawi %% British Empire
 | Tanganyika = Tanzania %% British Empire
 | Bechuanaland Protectorate = Africa %% British Empire
 
 | the Congo Free State
 | Congo Free State = Democratic Republic of the Congo %% Belgium
 
 | the Mamluk Sultanate (Cairo)
 | Mamluk Sultanate (Cairo) = Egypt
 
 | North-Eastern Rhodesia
 | Northern Rhodesia = Zambia %% British Empire
 
 | French Somaliland = France %% Africa
 
 | British Somaliland = Somaliland %% British Empire
 
 | Italian Somaliland = Somalia %% Italy
 
 | German East Africa = German Empire %% Africa
 
 | French West Africa = France %% Africa
 
 | French Equatorial Africa = France %% Africa
 
 | the Transvaal
 | Transvaal
 | the Zulu Kingdom
 | Zulu Kingdom
 | the South African Republic
 | South African Republic
 | the Orange Free State
 | Orange Free State = South Africa
 
 | the Cape Colony
 | Cape Colony = South Africa%%British Empire
 
 | the Colony of Natal
 | Colony of Natal = South Africa%%British Empire
 
 | the Belgian Congo
 | Belgian Congo = Democratic Republic of the Congo%%Belgium
 
 | the Gold Coast (British colony)
 | Gold Coast (British colony) = Africa%%British Empire
 
 | Saint Helena
 | Saint Helena, Ascension and Tristan da Cunha
 | Saint Helena and Dependencies = British Empire
 
 | Dahomey = Africa
 
 | Dutch Mauritius = Africa%%Netherlands
 
 | French Dahomey = Africa%%France
 
 | German South West Africa = German Empire
 | Kamerun = Cameroon %% German Empire
 
 | Portuguese Mozambique = Africa%%Portugal
 | Portuguese Cape Verde = Cape Verde%%Portugal
 
 | Zanzibar = Tanzania
 
 
 &lt;!-- North America --&gt;
 | Maya civilization = Mesoamerica
 
 | Puerto Rico = {{#if: {{{year|}}} | {{#ifexpr: {{{year|}}} &lt; 1898 | Puerto Rico | Puerto Rico }} | Puerto Rico}}
 | the Spanish West Indies
 | Spanish West Indies = Caribbean
 
 | the Colony of Santiago
 | Colony of Santiago = Jamaica
 
 | Bonaire
 | Curaçao
 | Curaçao and Dependencies
 | Saba
 | the Netherlands Antilles
 | Netherlands Antilles = Caribbean %% Netherlands
 
 | Dominica = Caribbean
 
 | Saint Vincent and the Grenadines = Caribbean
 
 | Sint Maarten = Caribbean
 
 | British Honduras = Belize%%British Empire
 
 | Newfoundland = Canada  %% British Empire
 | Upper Canada = Ontario %% British Empire 
 | Lower Canada = Canada %% British Empire
 
 | the Province of Quebec (1763–1791)
 | Province of Quebec (1763–1791) = Canada 
 
 | New France = France %% North America
 | Saint Pierre and Miquelon = France %% North America
 
 | the Thirteen Colonies
 | Thirteen Colonies = British Empire%%United States
 
 |the Confederate States of America‎
 |Confederate States of America‎ = North America‎%%United States
 
 | the Republic of Texas
 | Republic of Texas = Texas
 
 |Cayman Islands |the Cayman Islands
 | the British Virgin Islands
 | British Virgin Islands = Caribbean %% British Empire
 
 | the United States Virgin Islands
 | United States Virgin Islands = Caribbean %% United States
 
 | Turks and Caicos Islands | the Turks and Caicos Islands = Caribbean %% British Empire
 | Saint Vincent and the Grenadines = Caribbean
 
 | Montserrat = Caribbean %% British Empire
 
 &lt;!-- South America --&gt;
 | the Aztec civilization
 | Aztec civilization = Mesoamerica
 
 | the Empire of Brazil = Brazil
 | Empire of Brazil = Brazil
 | Gran Colombia = Colombia%%Latin America
 | British Guiana = Guyana%%British Empire
 
 | the Viceroyalty of the Río de la Plata
 | Viceroyalty of the Río de la Plata
 | the United Provinces of the Rio de la Plata
 | United Provinces of the Rio de la Plata = Argentina%%Bolivia &lt;!-- also Uruguay and Brazil --&gt;
 
 | the Falkland Islands
 | Falkland Islands = British Empire 
 
 | Viceroyalty of Peru
 | the Viceroyalty of Peru = Peru
 
 | Captaincy General of Chile
 | the Captaincy General of Chile = Chile%%Argentina
 
 | the Viceroyalty of New Granada
 | Viceroyalty of New Granada = Latin America%%Spain
 
 | the Republic of New Granada 
 | Republic of New Granada  = Colombia %% Panama
 
 | the Inca civilization
 | Inca civilization
 | Kingdom of Cusco
 | the Kingdom of Cusco
 | the Inca Empire
 | Inca Empire = Peru %% Latin America
 
 &lt;!-- Asia --&gt;
 | the Mughal Empire
 | Mughal Empire = India %% Asia
 
 | the Mongol Empire
 | Mongol Empire = Asia
 
 | the Japanese colonial empire
 | Japanese colonial empire = Japan
 
 | French Indochina = Vietnam %% Cambodia &lt;!-- also Laos --&gt;
 
 |Macau = China %% Asia
 
 | Portuguese Malacca = Malaysia %% Portugal
 | North Borneo = Malaysia %% British Empire
 | British Malaya = Malaysia %% British Empire
 
 | Malaya = Malaysia
 | the Straits Settlements
 | Straits Settlements = Malaysia %% British Empire
 
 | Penang = Malaysia
 
 | Ceylon = Sri Lanka%%British Empire
 | Portuguese Timor = Asia%%Portugal
 | All-Palestine (Gaza) = Palestine%%Egypt
 
 | the West Bank Governorate
 | West Bank Governorate = Jordan%%Palestine
 
 | the Israeli Military Governorate
 | Israeli Military Governorate
 | the Israeli Civil Administration area
 | Israeli Civil Administration area = Israel %% Palestine
 
 | the Kingdom of Jerusalem
 | Kingdom of Jerusalem = Christianity %% War
 
 | Transjordan = Jordan
 
 |Tibet = China %% Asia
 
 | the Dutch East Indies
 | Dutch East Indies = Indonesia %% Netherlands
 
 | Netherlands New Guinea = Indonesia %% Netherlands
 
 | Hong Kong = {{#if: {{{year|}}} | {{#ifexpr: {{{year|}}} &lt; 1997 | Hong Kong%%British Empire | Hong Kong%%China }} | Hong Kong}}
 
 | the Spanish East Indies
 | Spanish East Indies = Philippines
 
 | Ottoman Syria = Asia
 
 | Mandatory Syria = Asia %% Lebanon
 
 | British India = India%%British Empire
 | Danish India = India%%Denmark
 | Dutch Formosa = Taiwan%%Netherlands
 | Dutch India = India%%Netherlands
 | Portuguese India = India%%Portugal
 | French India = India%%France
 
 | the Maratha Empire
 | Maratha Empire = India
 
 | North Vietnam = Vietnam
 | South Vietnam = Vietnam
 
 | the Trucial States
 | Trucial States = United Arab Emirates 
 
 | the Federation of South Arabia
 | Federation of South Arabia = Asia %% British Empire
 
 | North Yemen
 | South Yemen = Asia
 
 | Hejaz = Saudi Arabia
 
 | the Abbasid Caliphate
 | Abbasid Caliphate = Islam
 
 | Okinawa = Japan {{#if: {{{year|}}} | {{#ifexpr: {{{year|}}} &gt;= 1945 | {{#ifexpr: {{{year|}}} &lt; 1972 |  %% United States }} }} }}
 
 &lt;!-- Europe --&gt;
 | Roman Britain = Roman Empire %% United Kingdom
 
 | the Habsburg Monarchy
 | Habsburg Monarchy = Europe
 
 | Czechoslovak
 | Czechoslovakia = Czech Republic %% Slovakia
 
 | Northern Cyprus = Cyprus %% Turkey
 
 | the Austrian Empire
 | Austrian Empire
 |Austria-Hungary = Austria%%Hungary
 
 | the Batavian Republic
 | Batavian Republic = Netherlands
 
 | the Duchy of Nassau
 | Duchy of Nassau = Rhineland-Palatinate%%Germany
 
 
 | Bavaria
 | the Grand Duchy of Hesse
 | Grand Duchy of Hesse
 | the Kingdom of Hanover
 | Kingdom of Hanover
 | Saxony
 | Saar
 | Saarland
 | Thuringia
 | Saxony-Anhalt
 | Rhineland-Palatinate
 | Baden-Württemberg
 | Lower Saxony
 | Württemberg = Germany
 
 | Baden = Baden-Württemberg
 
 | Serbia and Montenegro = Serbia
 
 | San Marino = Europe %% Italy
 | Monaco = Europe %% France
 
 | Moldavia = Moldova %% Romania
 
 | Yugoslavia = Europe
 | the Socialist Republic of Macedonia
 | Socialist Republic of Macedonia
 | the Republic of Macedonia
 | Republic of Macedonia = North Macedonia
 
 | the Duchy of Lucca
 | Duchy of Lucca
 | the Duchy of Modena and Reggio
 | Duchy of Modena and Reggio
 | the Republic of Genoa
 | Republic of Genoa
 | Genoa
 | the Republic of Siena
 | Republic of Siena
 | the Grand Duchy of Tuscany
 | Grand Duchy of Tuscany
 | the Kingdom of Naples
 | Kingdom of Naples
 | the Republic of Florence
 | Republic of Florence
 | the Kingdom of the Two Sicilies
 | Kingdom of the Two Sicilies
 | Kingdom of Sicily
 | the Kingdom of Sicily
 | Kingdom of Sardinia
 | the Kingdom of Sardinia = Italy
 
 | the Kingdom of Kakheti
 | Kingdom of Kakheti = Georgia (country)
 
 | the Habsburg Monarchy
 | Habsburg Monarchy = &lt;!-- Austria-Hungary --&gt;
 
 | the Helvetic Republic
 | Helvetic Republic = Switzerland
 
 | Wallachia = Romania
 
 | the Kingdom of Italy (Napoleonic)
 | Kingdom of Italy (Napoleonic) = Italy%%France
 
 | the Burgundian Netherlands
 | Burgundian Netherlands = Belgium%%Netherlands
 
 | the French First Republic
 | French First Republic = France
 | the First French Empire
 | First French Empire = France
 
 | French Union = France
 
 | the French colonial empire
 | French colonial empire = France
 
 | the Habsburg Netherlands
 | Habsburg Netherlands = Netherlands%%Belgium
 
 | the Southern Netherlands
 | Southern Netherlands = Belgium%%Luxembourg
 
 | the Austrian Netherlands
 | Austrian Netherlands = Belgium%%Luxembourg
 
 | the Russian Empire
 | Russian Empire = Russia
 
 | the Italian Empire
 | Italian Empire = Italy
 
 | the Spanish Empire
 | Spanish Empire = Spain
 
 | the Danish colonial empire
 | Danish colonial empire = Denmark
 
 | the German colonial empire
 | German colonial empire = German Empire
 
 | the Polish–Lithuanian Commonwealth = Poland%%Lithuania
 | Polish–Lithuanian Commonwealth = Poland%%Lithuania
 
 | the Swedish colonial empire
 | Swedish colonial empire = Sweden
 
 |the Old Swiss Confederacy = Switzerland
 |Old Swiss Confederacy = Switzerland
 
 | South Ossetia = Georgia (country)
 
 | Aragon = Spain
 
 |Svalabard = Norway
 
 &lt;!-- Soviet Union --&gt;
 
 | the Byelorussian Soviet Socialist Republic
 | Byelorussian Soviet Socialist Republic = Belarus %% Soviet Union
 
 | the Moldavian Autonomous Soviet Socialist Republic
 | Moldavian Autonomous Soviet Socialist Republic = Moldova %% Soviet Union
 | the Moldavian Soviet Socialist Republic
 | Moldavian Soviet Socialist Republic = Moldova %% Soviet Union
 
 | the Kazakh Soviet Socialist Republic
 | Kazakh Soviet Socialist Republic
 | the Kazakh Autonomous Socialist Soviet Republic
 | Kazakh Autonomous Socialist Soviet Republic = Soviet Union
 
 | the Kirghiz Soviet Socialist Republic
 | Kirghiz Soviet Socialist Republic = Soviet Union
 
 | the Turkmen Soviet Socialist Republic
 | Turkmen Soviet Socialist Republic = Turkmenistan %% Soviet Union
 
 | the Transcaucasian Socialist Federative Soviet Republic
 | Transcaucasian Socialist Federative Soviet Republic = Soviet Union
 
 &lt;!-- Oceania --&gt;
 | German New Guinea = German Empire %% Oceania
 
 | the Gilbert and Ellice Islands
 | Gilbert and Ellice Islands = Oceania %% Tuvalu 
 
 | the Gilbert Islands
 | Gilbert Islands = Oceania
 
 | the British Solomon Islands
 | British Solomon Islands = Oceania %% British Empire 
 
 | the New Hebrides
 | New Hebrides = Oceania
 
 | the Territory of Papua
 | Territory of Papua = Oceania %% British Empire
 | the Territory of New Guinea
 | Territory of New Guinea= Oceania %% Australia
 
 | the Western Samoa Trust Territory
 | Western Samoa Trust Territory = Oceania %% New Zealand
 
 | German Samoa = Oceania %% Germany
 
 | the Pitcairn Islands
 | Pitcairn Islands = Oceania %% British Empire
 
 | Easter Island = Chile %% Oceania
 
 | Wallis and Futuna = France %% Oceania
 
 | French Polynesia = France %% Oceania
 
 &lt;!-- Antarctica --&gt; 
 | British Antarctic Territory = Geography %% British Empire
 | the Falkland Islands Dependencies
 | Falkland Islands Dependencies = Geography %% British Empire
 
 &lt;!-- Deleted countries--&gt;
 |Albania
 | Channel Islands | The Channel Islands
 | Guernsey
 | Isle of Man
 | Jersey
 |Kosovo
 |Monetenegro = Europe
 
 | Bermuda = North America
 | Honduras = North America
 
 |Bahamas
 |the Bahamas = Caribbean
 
 |the Spanish Empire
 |Spanish Empire
 |New Spain = Spain
 
 |Bhutan
 |Brunei
 |Burma
 |East Timor
 |Kazakhstan
 |Kyrgyzstan
 |Myanmar
 |Mongolia
 |Qatar
 |Syria
 |Yemen = Asia
 
 |Angola
 |Algeria
 |Benin
 |Botswana
 |Burkina Faso
 |Cape Verde
 |Chad
 |Comoros
 |Djibouti
 |Eswatini|Swaziland
 |Ethiopia
 |Equatorial Guinea
 |Gabon
 |Ghana
 |Guinea-Bissau
 |Ivory Coast
 |Lesotho
 |Maldives |the Maldives
 |Mauritius
 |Namibia
 |Niger
 |Rwanda
 |Seychelles
 |South Sudan
 |Sudan
 |Togo
 |Tunisia
 |Zimbabwe = Africa
 
 |Fiji
 |Federated States of Micronesia | the Federated States of Micronesia |Micronesia
 |Papua New Guinea‎
 |Tonga = Oceania
 
 | #default = {{#ifeq: {{#invoke:String|match|{{{1|}}}|^[Tt]he |nomatch=notmatched}} | notmatched | {{#ifexist: Portal:{{{1|}}} | {{{1|}}} | }} | {{#ifexist: Portal:{{#invoke:String|sub|{{{1|}}}|5}} | {{#invoke:String|sub|{{{1|}}}|5}} | }}