Difference between revisions of "Template:Location"

From Geohashing
imported>Fippe
m (Subtemplates already exist)
(8 intermediate revisions by one other user not shown)
Line 9: Line 9:
 
*<code><nowiki>{{location|AD}}</nowiki></code>: Andorra
 
*<code><nowiki>{{location|AD}}</nowiki></code>: Andorra
 
*<code><nowiki>{{location|XI}}</nowiki></code>: international waters
 
*<code><nowiki>{{location|XI}}</nowiki></code>: international waters
 +
''Find more examples for your country at your country's [[:category:location templates|location template]].''
  
[[Category:Location templates| ]]</noinclude><includeonly>[[Category:Expeditions in {{#switch:{{{1}}}
+
[[Category:Location templates| ]]</noinclude><includeonly>[[Category:Expeditions in {{#ifexist:template:location/{{{1}}}
 +
|{{location/{{{1}}}|{{{2}}}|{{{3}}}|city={{{city}}}}}
 +
|{{#switch:{{{1}}}
 
|#default=an unknown location
 
|#default=an unknown location
 
|AD=Andorra
 
|AD=Andorra
|AE=the United Arab Emirates
 
 
|AF=Afghanistan
 
|AF=Afghanistan
 
|AG=Antigua and Barbuda
 
|AG=Antigua and Barbuda
Line 20: Line 22:
 
|AM=Armenia
 
|AM=Armenia
 
|AO=Angola
 
|AO=Angola
|AQ=Antarctica
 
|AR=Argentina
 
 
|AS=American Samoa
 
|AS=American Samoa
|AT={{location/AT|{{{2}}}|{{{3}}}}}
 
|AU={{location/AU|{{{2}}}}}
 
 
|AW=Aruba
 
|AW=Aruba
 
|AX=Åland
 
|AX=Åland
Line 31: Line 29:
 
|BB=Barbados
 
|BB=Barbados
 
|BD=Bangladesh
 
|BD=Bangladesh
|BE={{location/BE|{{{2}}}}}
 
 
|BF=Burkina Faso
 
|BF=Burkina Faso
|BG=Bulgaria
 
 
|BH=Bahrain
 
|BH=Bahrain
 
|BI=Burundi
 
|BI=Burundi
Line 42: Line 38:
 
|BO=Bolivia
 
|BO=Bolivia
 
|BQ=the Caribbean Netherlands
 
|BQ=the Caribbean Netherlands
|BR=Brazil
 
 
|BS=the Bahamas
 
|BS=the Bahamas
 
|BT=Bhutan
 
|BT=Bhutan
Line 49: Line 44:
 
|BY=Belarus
 
|BY=Belarus
 
|BZ=Belize
 
|BZ=Belize
|CA=Canada
 
 
|CC=the Cocos Islands
 
|CC=the Cocos Islands
 
|CD=the Democratic Republic of the Congo
 
|CD=the Democratic Republic of the Congo
 
|CF=the Central African Republic
 
|CF=the Central African Republic
 
|CG=the Republic of the Congo
 
|CG=the Republic of the Congo
|CH={{location/CH|{{{2}}}}}
 
 
|CI=Côte d'Ivoire
 
|CI=Côte d'Ivoire
 
|CK=the Cook Islands
 
|CK=the Cook Islands
|CL=Chile
 
 
|CM=Cameroon
 
|CM=Cameroon
|CN=China
 
 
|CO=Colombia
 
|CO=Colombia
 
|CR=Costa Rica
 
|CR=Costa Rica
|CU=Cuba
 
 
|CV=Cabo Verde
 
|CV=Cabo Verde
 
|CW=Curaçao
 
|CW=Curaçao
 
|CX=Christmas Island
 
|CX=Christmas Island
|CY=Cyprus
 
|CZ=Czechia
 
|DE={{location/DE|{{{2}}}|{{{3}}}|city={{{city}}}}}
 
 
|DJ=Djibouti
 
|DJ=Djibouti
|DK=Denmark
 
 
|DM=Dominica
 
|DM=Dominica
|DO=the Dominican Republic
 
 
|DZ=Algeria
 
|DZ=Algeria
 
|EC=Ecuador
 
|EC=Ecuador
|EE=Estonia
 
 
|EG=Egypt
 
|EG=Egypt
 
|EH=Western Sahara
 
|EH=Western Sahara
 
|ER=Eritrea
 
|ER=Eritrea
|ES={{location/ES|{{{2}}}|{{{3}}}}}
 
 
|ET=Ethiopia
 
|ET=Ethiopia
|FI={{location/FI|{{{2}}}}}
 
 
|FJ=Fiji
 
|FJ=Fiji
 
|FK=the Falkland Islands
 
|FK=the Falkland Islands
 
|FM=Micronesia
 
|FM=Micronesia
 
|FO=the Faroe Islands
 
|FO=the Faroe Islands
|FR={{location/FR|{{{2}}}}}
 
 
|GA=Gabon
 
|GA=Gabon
|GB={{location/GB|{{{2}}}|{{{3}}}}}
 
 
|GD=Grenada
 
|GD=Grenada
 
|GE=Georgia
 
|GE=Georgia
Line 100: Line 80:
 
|GP=Guadeloupe
 
|GP=Guadeloupe
 
|GQ=Equatorial Guinea
 
|GQ=Equatorial Guinea
|GR=Greece
 
 
|GS=South Georgia and the South Sandwich Islands
 
|GS=South Georgia and the South Sandwich Islands
 
|GT=Guatemala
 
|GT=Guatemala
Line 109: Line 88:
 
|HM=Heard Island and McDonald Islands
 
|HM=Heard Island and McDonald Islands
 
|HN=Honduras
 
|HN=Honduras
|HR=Croatia
 
 
|HT=Haiti
 
|HT=Haiti
|HU=Hungary
 
|ID=Indonesia
 
|IE=Ireland
 
|IL={{location/IL|{{{2}}}|{{{3}}}}}
 
 
|IM=the Isle of Man
 
|IM=the Isle of Man
|IN=India
 
 
|IO=British Indian Ocean Territory
 
|IO=British Indian Ocean Territory
 
|IQ=Iraq
 
|IQ=Iraq
 
|IR=Iran
 
|IR=Iran
|IS={{location/IS|{{{2}}}}}
 
|IT={{location/IT|{{{2}}}}}
 
|JE={{location/JE|{{{2}}}}}
 
 
|JM=Jamaica
 
|JM=Jamaica
|JO=Jordan
 
|JP={{location/JP|{{{2}}}}}
 
 
|KE=Kenya
 
|KE=Kenya
 
|KG=Kyrgyzstan
 
|KG=Kyrgyzstan
|KH=Cambodia
 
 
|KI=Kiribati
 
|KI=Kiribati
 
|KM=Comoros
 
|KM=Comoros
 
|KN=Saint Kitts and Nevis
 
|KN=Saint Kitts and Nevis
 
|KP=North Korea
 
|KP=North Korea
|KR={{location/KR|{{{2}}}}}
 
 
|KW=Kuwait
 
|KW=Kuwait
 
|KY=the Cayman Islands
 
|KY=the Cayman Islands
Line 140: Line 106:
 
|LB=Lebanon
 
|LB=Lebanon
 
|LC=Saint Lucia
 
|LC=Saint Lucia
|LI=Liechtenstein
 
 
|LK=Sri Lanka
 
|LK=Sri Lanka
 
|LR=Liberia
 
|LR=Liberia
 
|LS=Lesotho
 
|LS=Lesotho
|LT=Lithuania
 
|LU=Luxembourg
 
|LV=Latvia
 
 
|LY=Libya
 
|LY=Libya
|MA=Morocco
 
 
|MC=Monaco
 
|MC=Monaco
 
|MD=Moldova
 
|MD=Moldova
Line 158: Line 119:
 
|ML=Mali
 
|ML=Mali
 
|MM=Myanmar
 
|MM=Myanmar
|MN={{location/MN|{{{2}}}}}
 
 
|MO=Macau
 
|MO=Macau
 
|MP=the Northern Mariana Islands
 
|MP=the Northern Mariana Islands
|MQ={{location/MQ|{{{2}}}}}
 
 
|MR=Mauritania
 
|MR=Mauritania
 
|MS=Montserrat
 
|MS=Montserrat
|MT=Malta
 
 
|MU=Mauritius
 
|MU=Mauritius
 
|MV=Maldives
 
|MV=Maldives
 
|MW=Malawi
 
|MW=Malawi
|MX=Mexico
 
|MY=Malaysia
 
 
|MZ=Mozambique
 
|MZ=Mozambique
|NA=Namibia
 
 
|NC=New Caledonia
 
|NC=New Caledonia
 
|NE=Niger
 
|NE=Niger
 
|NF=Norfolk Island
 
|NF=Norfolk Island
|NG=Nigeria
 
 
|NI=Nicaragua
 
|NI=Nicaragua
|NL={{location/NL|{{{2}}}}}
 
|NO=Norway
 
|NP=Nepal
 
 
|NR=Nauru
 
|NR=Nauru
 
|NU=Niue
 
|NU=Niue
|NZ=New Zealand
 
 
|OM=Oman
 
|OM=Oman
 
|PA=Panama
 
|PA=Panama
|PE=Peru
 
 
|PF=French Polynesia
 
|PF=French Polynesia
 
|PG=Papua New Guinea
 
|PG=Papua New Guinea
|PH=Philippines
 
|PK=Pakistan
 
|PL=Poland
 
 
|PM=Saint Pierre and Miquelon
 
|PM=Saint Pierre and Miquelon
 
|PN=the Pitcairn Islands
 
|PN=the Pitcairn Islands
|PR=Puerto Rico
 
|PS=Palestine
 
|PT=Portugal
 
 
|PW=Palau
 
|PW=Palau
 
|PY=Paraguay
 
|PY=Paraguay
 
|QA=Qatar
 
|QA=Qatar
 
|RE=Réunion
 
|RE=Réunion
|RO=Romania
 
|RS=Serbia
 
|RU=Russia
 
 
|RW=Rwanda
 
|RW=Rwanda
 
|SA=Saudi Arabia
 
|SA=Saudi Arabia
Line 208: Line 148:
 
|SC=Seychelles
 
|SC=Seychelles
 
|SD=Sudan
 
|SD=Sudan
|SE=Sweden
 
|SG=Singapore
 
 
|SH=Saint Helena, Ascension and Tristan da Cunha
 
|SH=Saint Helena, Ascension and Tristan da Cunha
|SI=Slovenia
 
|SJ={{location/SJ|{{{2}}}}}
 
|SK=Slovakia
 
 
|SL=Sierra Leone
 
|SL=Sierra Leone
 
|SM=San Marino
 
|SM=San Marino
Line 223: Line 158:
 
|SV=El Salvador
 
|SV=El Salvador
 
|SX=Sint Maarten
 
|SX=Sint Maarten
|SY=Syria
 
 
|SZ=Eswatini
 
|SZ=Eswatini
 
|TC=the Turks and Caicos Islands
 
|TC=the Turks and Caicos Islands
Line 229: Line 163:
 
|TF=French Southern and Antarctic Lands
 
|TF=French Southern and Antarctic Lands
 
|TG=Togo
 
|TG=Togo
|TH=Thailand
 
|TJ=Tajikistan
 
 
|TK=Tokelau
 
|TK=Tokelau
 
|TL=Timor-Leste
 
|TL=Timor-Leste
 
|TM=Turkmenistan
 
|TM=Turkmenistan
|TN=Tunisia
 
 
|TO=Tonga
 
|TO=Tonga
|TR=Turkey
 
 
|TT=Trinidad and Tobago
 
|TT=Trinidad and Tobago
 
|TV=Tuvalu
 
|TV=Tuvalu
 
|TW=Taiwan
 
|TW=Taiwan
 
|TZ=Tanzania
 
|TZ=Tanzania
|UA=Ukraine
 
 
|UG=Uganda
 
|UG=Uganda
 
|UM=the United States Minor Outlying Islands
 
|UM=the United States Minor Outlying Islands
|US={{location/US|{{{2}}}|{{{3}}}}}
 
|UY=Uruguay
 
 
|UZ=Uzbekistan
 
|UZ=Uzbekistan
 
|VA=Vatican City
 
|VA=Vatican City
 
|VC=Saint Vincent and the Grenadines
 
|VC=Saint Vincent and the Grenadines
|VE=Venezuela
 
 
|VG=the British Virgin Islands
 
|VG=the British Virgin Islands
 
|VI=the United States Virgin Islands
 
|VI=the United States Virgin Islands
Line 256: Line 182:
 
|WF=Wallis and Futuna
 
|WF=Wallis and Futuna
 
|WS=Samoa
 
|WS=Samoa
|XI=international waters
 
 
|XK=Kosovo
 
|XK=Kosovo
 
|YE=Yemen
 
|YE=Yemen
 
|YT=Mayotte
 
|YT=Mayotte
|ZA=South Africa
 
 
|ZM=Zambia
 
|ZM=Zambia
 
|ZW=Zimbabwe
 
|ZW=Zimbabwe
}}]]</includeonly>
+
}}}}]]</includeonly>

Revision as of 11:10, 14 July 2020

Use {{location}} to tag expeditions by their location. It will add a subcategory of Category:Expeditions by location to the expedition.

For countries, use ISO 3166-1 alpha-2 codes. This template regards anything a country that is assigned such a code. Use XI for international waters. For some countries, you can also tag subdivisions or even subsubdivisions. See the templates in Category:Location templates for countries where these codes are defined and how to use them. Feel free to add a template for subdivision codes of a new country.

If the category link appears red, do not worry and create the category. Make sure that it is included in the appropriate parent category, for instance, Category:Expeditions in Germany is a subcategory of Category:Expeditions by location. The subcategories should be sorted in by their respective code.

Examples

  • {{location}}: an unknown location (Comment: Do not use this)
  • {{location|AD}}: Andorra
  • {{location|XI}}: international waters

Find more examples for your country at your country's location template.