Difference between revisions of "Template:Data country"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>This is a data template which takes name of the country and returns 2 commonly used currencies (codes), capital and | + | <noinclude>This is a data template which takes name of the country and returns 2 commonly used currencies (codes), capital, subregion and population. Separated by slashes. Second optional parameter is for choosing which value should template return. |
'''Examples:''' | '''Examples:''' | ||
<pre> | <pre> | ||
− | {{Data country|Afghanistan}} -> AFN | + | {{Data country|Afghanistan}} -> AFN//Kabul/Southern Asia/26023100 |
− | {{Data country|Cuba}} -> CUC | + | {{Data country|Cuba}} -> CUC/CUP/Havana/Caribbean/11167325 |
+ | |||
+ | {{Data country|Afghanistan|cur}} -> AFN | ||
+ | {{Data country|Afghanistan|cur1}} -> AFN | ||
+ | {{Data country|Afghanistan|currency}} -> AFN | ||
+ | {{Data country|Afghanistan|currency1}} -> AFN | ||
+ | {{Data country|Afghanistan|cur2}} -> | ||
+ | {{Data country|Afghanistan|currency2}} -> | ||
+ | {{Data country|Afghanistan|cap}} -> Kabul | ||
+ | {{Data country|Afghanistan|capital}} -> Kabul | ||
+ | {{Data country|Afghanistan|sub}} -> Southern Asia | ||
+ | {{Data country|Afghanistan|subregion}} -> Southern Asia | ||
+ | {{Data country|Afghanistan|pop}} -> 26023100 | ||
+ | {{Data country|Afghanistan|population}} -> 26023100 | ||
</pre> | </pre> | ||
− | </noinclude> | + | |
− | {{#switch:{{{1}}} | + | [[Category:Templates]] |
− | |Afghanistan=AFN | + | </noinclude><includeonly>{{#titleparts: {{#switch:{{{1}}} |
− | | | + | |Abkhazia=RUB//Sukhumi/Western Asia/240705 |
− | |Albania=ALL | + | |Afghanistan=AFN//Kabul/Southern Asia/26023100 |
− | |Algeria=DZD | + | |Åland Islands=EUR//Mariehamn/Northern Europe/28502 |
− | |American Samoa=USD | + | |Albania=ALL//Tirana/Southern Europe/2895947 |
− | |Andorra=EUR | + | |Algeria=DZD//Algiers/Northern Africa/38700000 |
− | |Angola=AOA | + | |American Samoa=USD//Pago Pago/Polynesia/55519 |
− | |Anguilla=XCD | + | |Andorra=EUR//Andorra la Vella/Southern Europe/76098 |
− | |Antigua and Barbuda=XCD | + | |Angola=AOA//Luanda/Middle Africa/19813179 |
− | |Argentina=ARS | + | |Anguilla=XCD//The Valley/Caribbean/13452 |
− | |Armenia=AMD | + | |Antigua and Barbuda=XCD//Saint John's/Caribbean/86295 |
− | |Aruba=AWG | + | |Argentina=ARS//Buenos Aires/South America/42669500 |
− | |Australia=AUD | + | |Armenia=AMD//Yerevan/Western Asia/3009800 |
− | |Austria=EUR | + | |Aruba=AWG//Oranjestad/Caribbean/101484 |
− | |Azerbaijan=AZN | + | |Australia=AUD//Canberra/Australia and New Zealand/23608400 |
− | |Bahamas=BSD | + | |Austria=EUR//Vienna/Western Europe/8527230 |
− | |Bahrain=BHD | + | |Azerbaijan=AZN//Baku/Western Asia/9477100 |
− | |Bangladesh=BDT | + | |Bahamas=BSD//Nassau/Caribbean/368390 |
− | |Barbados=BBD | + | |Bahrain=BHD//Manama/Western Asia/1234571 |
− | |Belarus=BYR | + | |Bangladesh=BDT//Dhaka/Southern Asia/157024000 |
− | |Belgium=EUR | + | |Barbados=BBD//Bridgetown/Caribbean/285000 |
− | |Belize=BZD | + | |Belarus=BYR//Minsk/Eastern Europe/9469200 |
− | |Benin=XOF | + | |Belgium=EUR//Brussels/Western Europe/11203787 |
− | |Bermuda=BMD | + | |Belize=BZD//Belmopan/Central America/349728 |
− | |Bhutan=BTN | + | |Benin=XOF//Porto-Novo/Western Africa/9988068 |
− | |Bolivia=BOB | + | |Bermuda=BMD//Hamilton/Northern America/64237 |
− | |Bonaire=USD | + | |Bhutan=BTN/INR/Thimphu/Southern Asia/752080 |
− | |Bosnia and Herzegovina=BAM | + | |Bolivia=BOB//Sucre/South America/10027254 |
− | |Botswana=BWP | + | |Bonaire=USD//Kralendijk/Caribbean/17408 |
− | |Bouvet Island=NOK | + | |Bosnia and Herzegovina=BAM//Sarajevo/Southern Europe/3791622 |
− | |Brazil=BRL | + | |Botswana=BWP//Gaborone/Southern Africa/2024904 |
− | |British Indian Ocean Territory=USD | + | |Bouvet Island=NOK////0 |
− | |British Virgin Islands=USD | + | |Brazil=BRL//Brasília/South America/203193000 |
− | |Brunei=BND | + | |British Indian Ocean Territory=USD//Diego Garcia/Eastern Africa/3000 |
− | |Bulgaria=BGN | + | |British Virgin Islands=USD//Road Town/Caribbean/29537 |
− | |Burkina Faso=XOF | + | |Brunei=BND//Bandar Seri Begawan/South-Eastern Asia/393372 |
− | | | + | |Bulgaria=BGN//Sofia/Eastern Europe/7245677 |
− | | | + | |Burkina Faso=XOF//Ouagadougou/Western Africa/17322796 |
− | |Cameroon=XAF | + | |Burma=MMK//Naypyidaw/South-Eastern Asia/51419420 |
− | |Canada=CAD | + | |Burundi=BIF//Bujumbura/Eastern Africa/9420248 |
− | |Cape Verde=CVE | + | |Cambodia=KHR//Phnom Penh/South-Eastern Asia/15184116 |
− | |Cayman Islands=KYD | + | |Cameroon=XAF//Yaoundé/Middle Africa/20386799 |
− | |Central African Republic=XAF | + | |Canada=CAD//Ottawa/Northern America/35427524 |
− | |Chad=XAF | + | |Cape Verde=CVE//Praia/Western Africa/518467 |
− | |Chile=CLP | + | |Cayman Islands=KYD//George Town/Caribbean/55456 |
− | |China=CNY | + | |Central African Republic=XAF//Bangui/Middle Africa/4709000 |
− | |Christmas Island=AUD | + | |Chad=XAF//N'Djamena/Middle Africa/13211000 |
− | |Cocos (Keeling) Islands=AUD | + | |Chile=CLP//Santiago/South America/17819054 |
− | |Colombia=COP | + | |China=CNY//Beijing/Eastern Asia/1366910000 |
− | |Comoros=KMF | + | |Christmas Island=AUD//Flying Fish Cove/Australia and New Zealand/2072 |
− | | | + | |Cocos (Keeling) Islands=AUD//West Island/Australia and New Zealand/596 |
− | + | |Colombia=COP//Bogotá/South America/47788700 | |
− | + | |Comoros=KMF//Moroni/Eastern Africa/763952 | |
− | |Costa Rica=CRC | + | |Cook Islands=NZD//Avarua/Polynesia/14974 |
− | |Croatia=HRK | + | |Costa Rica=CRC//San José/Central America/4667096 |
− | |Cuba=CUC | + | |Croatia=HRK//Zagreb/Southern Europe/4267558 |
− | | | + | |Cuba=CUC/CUP/Havana/Caribbean/11167325 |
− | |Cyprus=EUR | + | |Curaçao=ANG//Willemstad/Caribbean/150563 |
− | |Czech Republic=CZK | + | |Cyprus=EUR//Nicosia/Eastern Europe/858000 |
− | | | + | |Czech Republic=CZK//Prague/Eastern Europe/10517400 |
− | |Djibouti=DJF | + | |Democratic Republic of the Congo=CDF//Kinshasa/Middle Africa/69360000 |
− | |Dominica=XCD | + | |Denmark=DKK//Copenhagen/Northern Europe/5639719 |
− | |Dominican Republic=DOP | + | |Djibouti=DJF//Djibouti/Eastern Africa/886000 |
− | |Ecuador=USD | + | |Dominica=XCD//Roseau/Caribbean/71293 |
− | |Egypt=EGP | + | |Dominican Republic=DOP//Santo Domingo/Caribbean/10378267 |
− | |El Salvador=USD | + | |Ecuador=USD//Quito/South America/15831900 |
− | |Equatorial Guinea=XAF | + | |Egypt=EGP//Cairo/Northern Africa/87202700 |
− | |Eritrea=ERN | + | |El Salvador=USD//San Salvador/Central America/6401240 |
− | |Estonia=EUR | + | |Equatorial Guinea=XAF//Malabo/Middle Africa/1622000 |
− | |Ethiopia=ETB | + | |Eritrea=ERN//Asmara/Eastern Africa/6536000 |
− | |Falkland Islands=FKP | + | |Estonia=EUR//Tallinn/Northern Europe/1315819 |
− | |Faroe Islands=DKK | + | |Ethiopia=ETB//Addis Ababa/Eastern Africa/87952991 |
− | | | + | |Falkland Islands=FKP//Stanley/South America/3000 |
− | |Finland=EUR | + | |Faroe Islands=DKK//Tórshavn/Northern Europe/48456 |
− | |France=EUR | + | |Federated States of Micronesia=USD//Palikir/Micronesia/101351 |
− | |French Guiana=EUR | + | |Fiji=FJD//Suva/Melanesia/859178 |
− | |French Polynesia=XPF | + | |Finland=EUR//Helsinki/Northern Europe/5462939 |
− | |French Southern and Antarctic Lands=EUR | + | |France=EUR//Paris/Western Europe/65991000 |
− | |Gabon=XAF | + | |French Guiana=EUR//Cayenne/South America/237549 |
− | |Gambia=GMD | + | |French Polynesia=XPF//Papeetē/Polynesia/268270 |
− | |Georgia=GEL | + | |French Southern and Antarctic Lands=EUR//Port-aux-Français//140 |
− | |Germany=EUR | + | |Gabon=XAF//Libreville/Middle Africa/1711000 |
− | |Ghana=GHS | + | |Gambia=GMD//Banjul/Western Africa/1882450 |
− | |Gibraltar=GIP | + | |Georgia=GEL//Tbilisi/Western Asia/4490500 |
− | |Greece=EUR | + | |Germany=EUR//Berlin/Western Europe/80781000 |
− | |Greenland=DKK | + | |Ghana=GHS//Accra/Western Africa/27043093 |
− | |Grenada=XCD | + | |Gibraltar=GIP//Gibraltar/Southern Europe/30001 |
− | |Guadeloupe=EUR | + | |Greece=EUR//Athens/Southern Europe/10992589 |
− | |Guam=USD | + | |Greenland=DKK//Nuuk/Northern America/56483 |
− | |Guatemala=GTQ | + | |Grenada=XCD//St. George's/Caribbean/103328 |
− | |Guernsey=GBP | + | |Guadeloupe=EUR//Basse-Terre/Caribbean/405739 |
− | |Guinea=GNF | + | |Guam=USD//Hagåtña/Micronesia/159358 |
− | |Guinea-Bissau=XOF | + | |Guatemala=GTQ//Guatemala City/Central America/15806675 |
− | |Guyana=GYD | + | |Guernsey=GBP//St. Peter Port/Northern Europe/63085 |
− | |Haiti=HTG | + | |Guinea=GNF//Conakry/Western Africa/10628972 |
− | |Heard Island and McDonald Islands=AUD | + | |Guinea-Bissau=XOF//Bissau/Western Africa/1746000 |
− | | | + | |Guyana=GYD//Georgetown/South America/784894 |
− | + | |Haiti=HTG/USD/Port-au-Prince/Caribbean/10745665 | |
− | |Hong Kong=HKD | + | |Heard Island and McDonald Islands=AUD////0 |
− | |Hungary=HUF | + | |Honduras=HNL//Tegucigalpa/Central America/8725111 |
− | |Iceland=ISK | + | |Hong Kong=HKD//City of Victoria/Eastern Asia/7234800 |
− | |India=INR | + | |Hungary=HUF//Budapest/Eastern Europe/9879000 |
− | |Indonesia=IDR | + | |Iceland=ISK//Reykjavik/Northern Europe/327050 |
− | + | |India=INR//New Delhi/Southern Asia/1249670000 | |
− | |Iran=IRR | + | |Indonesia=IDR//Jakarta/South-Eastern Asia/252164800 |
− | |Iraq=IQD | + | |Iran=IRR//Tehran/Southern Asia/77765200 |
− | |Ireland=EUR | + | |Iraq=IQD//Baghdad/Western Asia/36004552 |
− | |Isle of Man=GBP | + | |Ireland=EUR//Dublin/Northern Europe/4609600 |
− | |Israel=ILS | + | |Isle of Man=GBP//Douglas/Northern Europe/84497 |
− | |Italy=EUR | + | |Israel=ILS//Jerusalem/Western Asia/8222700 |
− | | | + | |Italy=EUR//Rome/Southern Europe/60780377 |
− | |Japan=JPY | + | |Ivory Coast=XOF//Yamoussoukro/Western Africa/23202000 |
− | |Jersey=GBP | + | |Jamaica=JMD//Kingston/Caribbean/2717991 |
− | |Jordan=JOD | + | |Japan=JPY//Tokyo/Eastern Asia/127040000 |
− | |Kazakhstan=KZT | + | |Jersey=GBP//Saint Helier/Northern Europe/99000 |
− | |Kenya=KES | + | |Jordan=JOD//Amman/Western Asia/6635230 |
− | |Kiribati=AUD | + | |Kazakhstan=KZT//Astana/Central Asia/17309000 |
− | |Kuwait=KWD | + | |Kenya=KES//Nairobi/Eastern Africa/41800000 |
− | |Kyrgyzstan=KGS | + | |Kiribati=AUD//South Tarawa/Micronesia/106461 |
− | |Laos=LAK | + | |Kosovo=EUR//Pristina/Eastern Europe/1859203 |
− | |Latvia=EUR | + | |Kuwait=KWD//Kuwait City/Western Asia/3065850 |
− | |Lebanon=LBP | + | |Kyrgyzstan=KGS//Bishkek/Central Asia/5842600 |
− | |Lesotho=LSL | + | |Laos=LAK//Vientiane/South-Eastern Asia/6693300 |
− | |Liberia=LRD | + | |Latvia=EUR//Riga/Northern Europe/1994300 |
− | |Libya=LYD | + | |Lebanon=LBP//Beirut/Western Asia/4966000 |
− | |Liechtenstein=CHF | + | |Lesotho=LSL//Maseru/Southern Africa/2098000 |
− | |Lithuania=LTL | + | |Liberia=LRD//Monrovia/Western Africa/4397000 |
− | |Luxembourg=EUR | + | |Libya=LYD//Tripoli/Northern Africa/6253000 |
− | |Macau=MOP | + | |Liechtenstein=CHF//Vaduz/Western Europe/37132 |
− | |Macedonia=MKD | + | |Lithuania=LTL//Vilnius/Northern Europe/2928897 |
− | |Madagascar=MGA | + | |Luxembourg=EUR//Luxembourg/Western Europe/549700 |
− | |Malawi=MWK | + | |Macau=MOP///Eastern Asia/614500 |
− | |Malaysia=MYR | + | |Macedonia=MKD//Skopje/Southern Europe/2065769 |
− | |Maldives=MVR | + | |Madagascar=MGA//Antananarivo/Eastern Africa/21263403 |
− | |Mali=XOF | + | |Malawi=MWK//Lilongwe/Eastern Africa/15805239 |
− | |Malta=EUR | + | |Malaysia=MYR//Kuala Lumpur/South-Eastern Asia/30348100 |
− | |Marshall Islands=USD | + | |Maldives=MVR//Malé/Southern Asia/341848 |
− | |Martinique=EUR | + | |Mali=XOF//Bamako/Western Africa/15768000 |
− | |Mauritania=MRO | + | |Malta=EUR//Valletta/Southern Europe/416055 |
− | |Mauritius=MUR | + | |Marshall Islands=USD//Majuro/Micronesia/56086 |
− | |Mayotte=EUR | + | |Martinique=EUR//Fort-de-France/Caribbean/386486 |
− | |Mexico=MXN | + | |Mauritania=MRO//Nouakchott/Western Africa/3545620 |
− | + | |Mauritius=MUR//Port Louis/Eastern Africa/1261208 | |
− | |Moldova=MDL | + | |Mayotte=EUR//Mamoudzou/Eastern Africa/212645 |
− | |Monaco=EUR | + | |Mexico=MXN//Mexico City/Central America/119713203 |
− | |Mongolia=MNT | + | |Moldova=MDL//Chișinău/Eastern Europe/3557600 |
− | |Montenegro=EUR | + | |Monaco=EUR//Monaco/Western Europe/36950 |
− | |Montserrat=XCD | + | |Mongolia=MNT//Ulan Bator/Eastern Asia/2973957 |
− | |Morocco=MAD | + | |Montenegro=EUR//Podgorica/Southern Europe/620029 |
− | |Mozambique=MZN | + | |Montserrat=XCD//Plymouth/Caribbean/4922 |
− | |Myanmar=MMK | + | |Morocco=MAD//Rabat/Northern Africa/33386000 |
− | |Namibia=NAD | + | |Mozambique=MZN//Maputo/Eastern Africa/25041922 |
− | |Nauru=AUD | + | |Myanmar=MMK//Naypyidaw/South-Eastern Asia/51419420 |
− | |Nepal=NPR | + | |Namibia=NAD//Windhoek/Southern Africa/2113077 |
− | |Netherlands=EUR | + | |Nauru=AUD//Yaren/Micronesia/10084 |
− | |New Caledonia=XPF | + | |Nepal=NPR//Kathmandu/Southern Asia/26494504 |
− | |New Zealand=NZD | + | |Netherlands=EUR//Amsterdam/Western Europe/16869300 |
− | |Nicaragua=NIO | + | |New Caledonia=XPF//Nouméa/Melanesia/258958 |
− | |Niger=XOF | + | |New Zealand=NZD//Wellington/Australia and New Zealand/4529350 |
− | |Nigeria=NGN | + | |Nicaragua=NIO//Managua/Central America/6071045 |
− | |Niue=NZD | + | |Niger=XOF//Niamey/Western Africa/17138707 |
− | |Norfolk Island=AUD | + | |Nigeria=NGN//Abuja/Western Africa/178517000 |
− | |North Korea=KPW | + | |Niue=NZD//Alofi/Polynesia/1613 |
− | |Northern | + | |Norfolk Island=AUD//Kingston/Australia and New Zealand/2302 |
− | |Norway=NOK | + | |North Korea=KPW//Pyongyang/Eastern Asia/25027000 |
− | |Oman=OMR | + | |Northern Cyprus=TRY//North Nicosia/Eastern Europe/294906 |
− | |Pakistan=PKR | + | |Northern Mariana Islands=USD//Saipan/Micronesia/53883 |
− | |Palau=USD | + | |Norway=NOK//Oslo/Northern Europe/5137679 |
− | |Palestine=ILS | + | |Oman=OMR//Muscat/Western Asia/4055418 |
− | |Panama=PAB | + | |Pakistan=PKR//Islamabad/Southern Asia/188020000 |
− | |Papua New Guinea=PGK | + | |Palau=USD//Ngerulmud/Micronesia/20901 |
− | |Paraguay=PYG | + | |Palestine=ILS//Ramallah/Western Asia/4550368 |
− | |Peru=PEN | + | |Panama=PAB/USD/Panama City/Central America/3713312 |
− | |Philippines=PHP | + | |Papua New Guinea=PGK//Port Moresby/Melanesia/7398500 |
− | |Pitcairn Islands=NZD | + | |Paraguay=PYG//Asunción/South America/6893727 |
− | |Poland=PLN | + | |Peru=PEN//Lima/South America/30814175 |
− | |Portugal=EUR | + | |Philippines=PHP//Manila/South-Eastern Asia/100291600 |
− | |Puerto Rico=USD | + | |Pitcairn Islands=NZD//Adamstown/Polynesia/56 |
− | |Qatar=QAR | + | |Poland=PLN//Warsaw/Eastern Europe/38496000 |
− | | | + | |Portugal=EUR//Lisbon/Southern Europe/10477800 |
− | | | + | |Puerto Rico=USD//San Juan/Caribbean/3615086 |
− | |Romania=RON | + | |Qatar=QAR//Doha/Western Asia/2077357 |
− | |Russia=RUB | + | |Republic of the Congo=XAF//Brazzaville/Middle Africa/4559000 |
− | |Rwanda=RWF | + | |Réunion=EUR//Saint-Denis/Eastern Africa/840974 |
− | |Saint | + | |Romania=RON//Bucharest/Eastern Europe/19942642 |
− | |Saint Helena | + | |Russia=RUB//Moscow/Eastern Europe/146149200 |
− | |Saint Kitts and Nevis=XCD | + | |Rwanda=RWF//Kigali/Eastern Africa/10996891 |
− | |Saint Lucia=XCD | + | |Saint Barthélemy=EUR//Gustavia/Caribbean/8938 |
− | |Saint Martin=EUR | + | |Saint Helena, Ascension and Tristan da Cunha=SHP//Jamestown/Western Africa/4000 |
− | |Saint Pierre and Miquelon=EUR | + | |Saint Kitts and Nevis=XCD//Basseterre/Caribbean/55000 |
− | |Saint Vincent and the Grenadines=XCD | + | |Saint Lucia=XCD//Castries/Caribbean/184000 |
− | |Samoa=WST | + | |Saint Martin=EUR//Marigot/Caribbean/36979 |
− | |San Marino=EUR | + | |Saint Pierre and Miquelon=EUR//Saint-Pierre/Northern America/6081 |
− | | | + | |Saint Vincent and the Grenadines=XCD//Kingstown/Caribbean/109000 |
− | |Saudi Arabia=SAR | + | |Samoa=WST//Apia/Polynesia/187820 |
− | |Senegal=XOF | + | |San Marino=EUR//City of San Marino/Southern Europe/33698 |
− | |Serbia=RSD | + | |São Tomé and Príncipe=STD//São Tomé/Middle Africa/187356 |
− | |Seychelles=SCR | + | |Saudi Arabia=SAR//Riyadh/Western Asia/30770375 |
− | |Sierra Leone=SLL | + | |Senegal=XOF//Dakar/Western Africa/12873601 |
− | |Singapore=SGD | + | |Serbia=RSD//Belgrade/Southern Europe/7146759 |
− | |Sint Maarten=ANG | + | |Seychelles=SCR//Victoria/Eastern Africa/90945 |
− | |Slovakia=EUR | + | |Sierra Leone=SLL//Freetown/Western Africa/6205000 |
− | |Slovenia=EUR | + | |Singapore=SGD//Singapore/South-Eastern Asia/5399200 |
− | |Solomon Islands=SDB | + | |Sint Maarten=ANG//Philipsburg/Caribbean/37429 |
− | |Somalia=SOS | + | |Slovakia=EUR//Bratislava/Eastern Europe/5415949 |
− | |South Africa=ZAR | + | |Slovenia=EUR//Ljubljana/Southern Europe/2064064 |
− | |South Georgia=GBP | + | |Solomon Islands=SDB//Honiara/Melanesia/581344 |
− | |South Korea=KRW | + | |Somalia=SOS//Mogadishu/Eastern Africa/10806000 |
− | |South Sudan=SSP | + | |South Africa=ZAR//Pretoria/Southern Africa/54002000 |
− | |Spain=EUR | + | |South Georgia=GBP//King Edward Point/South America/30 |
− | |Sri Lanka=LKR | + | |South Korea=KRW//Seoul/Eastern Asia/50423955 |
− | |Sudan=SDG | + | |South Osetia=RUB//Tskhinvali/Western Asia/51547 |
− | |Suriname=SRD | + | |South Sudan=SSP//Juba/Middle Africa/11384393 |
− | |Svalbard and Jan Mayen=NOK | + | |Spain=EUR//Madrid/Southern Europe/46507800 |
− | |Swaziland=SZL | + | |Sri Lanka=LKR//Colombo/Southern Asia/20277597 |
− | |Sweden=SEK | + | |Sudan=SDG//Khartoum/Northern Africa/37289406 |
− | |Switzerland=CHF | + | |Suriname=SRD//Paramaribo/South America/534189 |
− | |Syria=SYP | + | |Svalbard and Jan Mayen |
− | |Taiwan=TWD | + | |Svalbard and Jan Mayen Islands=NOK//Longyearbyen/Northern Europe/2665 |
− | |Tajikistan=TJS | + | |Swaziland=SZL//Lobamba/Southern Africa/1268000 |
− | |Tanzania=TZS | + | |Sweden=SEK//Stockholm/Northern Europe/9705005 |
− | |Thailand=THB | + | |Switzerland=CHF//Bern/Western Europe/8183800 |
− | |Timor-Leste=USD | + | |Syria=SYP//Damascus/Western Asia/21987000 |
− | |Togo=XOF | + | |Taiwan=TWD//Taipei/Eastern Asia/23404243 |
− | |Tokelau=NZD | + | |Tajikistan=TJS//Dushanbe/Central Asia/8161000 |
− | |Tonga=TOP | + | |Tanzania=TZS//Dodoma/Eastern Africa/44928923 |
− | |Trinidad and Tobago=TTD | + | |Thailand=THB//Bangkok/South-Eastern Asia/64871000 |
− | |Tunisia=TND | + | |Timor-Leste=USD//Dili/South-Eastern Asia/1212107 |
− | |Turkey=TRY | + | |Togo=XOF//Lomé/Western Africa/6993000 |
− | |Turkmenistan=TMT | + | |Tokelau=NZD//Fakaofo/Polynesia/1411 |
− | |Turks and Caicos Islands=USD | + | |Tonga=TOP//Nuku'alofa/Polynesia/103252 |
− | |Tuvalu=AUD | + | |Transnistria=PRB//Tiraspol/Eastern Europe/505153 |
− | |Uganda=UGX | + | |Trinidad and Tobago=TTD//Port of Spain/Caribbean/1328019 |
− | |Ukraine=UAH | + | |Tunisia=TND//Tunis/Northern Africa/10982754 |
− | |United Arab Emirates=AED | + | |Turkey=TRY//Ankara/Western Asia/76667864 |
− | |United Kingdom=GBP | + | |Turkmenistan=TMT//Ashgabat/Central Asia/5307000 |
− | |United States=USD | + | |Turks and Caicos Islands=USD//Cockburn Town/Caribbean/31458 |
− | |United States Minor Outlying Islands=USD | + | |Tuvalu=AUD//Funafuti/Polynesia/11323 |
− | |United States Virgin Islands=USD | + | |Uganda=UGX//Kampala/Eastern Africa/35357000 |
− | |Uruguay=UYU | + | |Ukraine=UAH//Kiev/Eastern Europe/42981850 |
− | |Uzbekistan=UZS | + | |United Arab Emirates=AED//Abu Dhabi/Western Asia/9446000 |
− | |Vanuatu=VUV | + | |United Kingdom=GBP//London/Northern Europe/64105654 |
− | | | + | |United States |
− | | | + | |United States of America=USD//Washington D.C./Northern America/318793000 |
− | |Wallis and Futuna=XPF | + | |United States Minor Outlying Islands=USD///Northern America/300 |
− | |Western Sahara=MAD | + | |United States Virgin Islands=USD//Charlotte Amalie/Caribbean/106405 |
− | |Yemen=YER | + | |Uruguay=UYU//Montevideo/South America/3404189 |
− | |Zambia=ZMK | + | |Uzbekistan=UZS//Tashkent/Central Asia/30492800 |
− | |Zimbabwe=ZWL | + | |Vanuatu=VUV//Port Vila/Melanesia/264652 |
− | |}} | + | |Vatican |
− | + | |Vatican City=EUR//Vatican City/Southern Europe/839 | |
+ | |Venezuela=VEF//Caracas/South America/30206307 | ||
+ | |Vietnam=VND//Hanoi/South-Eastern Asia/89708900 | ||
+ | |Wallis and Futuna=XPF//Mata-Utu/Polynesia/13135 | ||
+ | |Western Sahara=MAD//El Aaiún/Northern Africa/586000 | ||
+ | |Yemen=YER//Sana'a/Western Asia/25956000 | ||
+ | |Zambia=ZMK//Lusaka/Eastern Africa/15023315 | ||
+ | |Zimbabwe=ZWL//Harare/Eastern Africa/13061239 | ||
+ | |}} | ||
+ | | {{#if:{{{2|}}}|1}} | ||
+ | | {{#switch:{{{2}}} | ||
+ | |cur | ||
+ | |cur1 | ||
+ | |currency | ||
+ | |currency1=1 | ||
+ | |cur2 | ||
+ | |currency2=2 | ||
+ | |cap | ||
+ | |capital=3 | ||
+ | |sub | ||
+ | |subregion=4 | ||
+ | |pop | ||
+ | |population=5 }} }}<nowiki /></includeonly> |
Latest revision as of 02:04, 25 September 2014
This is a data template which takes name of the country and returns 2 commonly used currencies (codes), capital, subregion and population. Separated by slashes. Second optional parameter is for choosing which value should template return.
Examples:
{{Data country|Afghanistan}} -> AFN//Kabul/Southern Asia/26023100 {{Data country|Cuba}} -> CUC/CUP/Havana/Caribbean/11167325 {{Data country|Afghanistan|cur}} -> AFN {{Data country|Afghanistan|cur1}} -> AFN {{Data country|Afghanistan|currency}} -> AFN {{Data country|Afghanistan|currency1}} -> AFN {{Data country|Afghanistan|cur2}} -> {{Data country|Afghanistan|currency2}} -> {{Data country|Afghanistan|cap}} -> Kabul {{Data country|Afghanistan|capital}} -> Kabul {{Data country|Afghanistan|sub}} -> Southern Asia {{Data country|Afghanistan|subregion}} -> Southern Asia {{Data country|Afghanistan|pop}} -> 26023100 {{Data country|Afghanistan|population}} -> 26023100