Difference between revisions of "Template:Location"
imported>Fippe |
imported>Fippe (clean-up) |
||
Line 10: | Line 10: | ||
*<code><nowiki>{{location|XI}}</nowiki></code>: international waters | *<code><nowiki>{{location|XI}}</nowiki></code>: international waters | ||
− | [[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 | ||
− | |||
|AF=Afghanistan | |AF=Afghanistan | ||
|AG=Antigua and Barbuda | |AG=Antigua and Barbuda | ||
Line 21: | Line 22: | ||
|AO=Angola | |AO=Angola | ||
|AQ=Antarctica | |AQ=Antarctica | ||
− | |||
|AS=American Samoa | |AS=American Samoa | ||
− | |||
− | |||
|AW=Aruba | |AW=Aruba | ||
|AX=Åland | |AX=Åland | ||
Line 31: | Line 29: | ||
|BB=Barbados | |BB=Barbados | ||
|BD=Bangladesh | |BD=Bangladesh | ||
− | |||
|BF=Burkina Faso | |BF=Burkina Faso | ||
− | |||
|BH=Bahrain | |BH=Bahrain | ||
|BI=Burundi | |BI=Burundi | ||
Line 42: | Line 38: | ||
|BO=Bolivia | |BO=Bolivia | ||
|BQ=the Caribbean Netherlands | |BQ=the Caribbean Netherlands | ||
− | |||
|BS=the Bahamas | |BS=the Bahamas | ||
|BT=Bhutan | |BT=Bhutan | ||
Line 49: | Line 44: | ||
|BY=Belarus | |BY=Belarus | ||
|BZ=Belize | |BZ=Belize | ||
− | |||
|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 | ||
− | |||
|CI=Côte d'Ivoire | |CI=Côte d'Ivoire | ||
|CK=the Cook Islands | |CK=the Cook Islands | ||
− | |||
|CM=Cameroon | |CM=Cameroon | ||
− | |||
|CO=Colombia | |CO=Colombia | ||
|CR=Costa Rica | |CR=Costa Rica | ||
− | |||
|CV=Cabo Verde | |CV=Cabo Verde | ||
|CW=Curaçao | |CW=Curaçao | ||
|CX=Christmas Island | |CX=Christmas Island | ||
− | |||
− | |||
− | |||
|DJ=Djibouti | |DJ=Djibouti | ||
− | |||
|DM=Dominica | |DM=Dominica | ||
|DO=the Dominican Republic | |DO=the Dominican Republic | ||
|DZ=Algeria | |DZ=Algeria | ||
|EC=Ecuador | |EC=Ecuador | ||
− | |||
|EG=Egypt | |EG=Egypt | ||
|EH=Western Sahara | |EH=Western Sahara | ||
|ER=Eritrea | |ER=Eritrea | ||
− | |||
|ET=Ethiopia | |ET=Ethiopia | ||
− | |||
|FJ=Fiji | |FJ=Fiji | ||
|FK=the Falkland Islands | |FK=the Falkland Islands | ||
|FM=Micronesia | |FM=Micronesia | ||
|FO=the Faroe Islands | |FO=the Faroe Islands | ||
− | |||
|GA=Gabon | |GA=Gabon | ||
− | |||
|GD=Grenada | |GD=Grenada | ||
|GE=Georgia | |GE=Georgia | ||
Line 100: | Line 81: | ||
|GP=Guadeloupe | |GP=Guadeloupe | ||
|GQ=Equatorial Guinea | |GQ=Equatorial Guinea | ||
− | |||
|GS=South Georgia and the South Sandwich Islands | |GS=South Georgia and the South Sandwich Islands | ||
|GT=Guatemala | |GT=Guatemala | ||
Line 109: | Line 89: | ||
|HM=Heard Island and McDonald Islands | |HM=Heard Island and McDonald Islands | ||
|HN=Honduras | |HN=Honduras | ||
− | |||
|HT=Haiti | |HT=Haiti | ||
− | |||
− | |||
− | |||
− | |||
|IM=the Isle of Man | |IM=the Isle of Man | ||
− | |||
|IO=British Indian Ocean Territory | |IO=British Indian Ocean Territory | ||
|IQ=Iraq | |IQ=Iraq | ||
|IR=Iran | |IR=Iran | ||
− | |||
− | |||
− | |||
|JM=Jamaica | |JM=Jamaica | ||
|JO=Jordan | |JO=Jordan | ||
− | |||
|KE=Kenya | |KE=Kenya | ||
|KG=Kyrgyzstan | |KG=Kyrgyzstan | ||
Line 133: | Line 103: | ||
|KN=Saint Kitts and Nevis | |KN=Saint Kitts and Nevis | ||
|KP=North Korea | |KP=North Korea | ||
− | |||
|KW=Kuwait | |KW=Kuwait | ||
|KY=the Cayman Islands | |KY=the Cayman Islands | ||
Line 158: | Line 127: | ||
|ML=Mali | |ML=Mali | ||
|MM=Myanmar | |MM=Myanmar | ||
− | |||
|MO=Macau | |MO=Macau | ||
|MP=the Northern Mariana Islands | |MP=the Northern Mariana Islands | ||
− | |||
|MR=Mauritania | |MR=Mauritania | ||
|MS=Montserrat | |MS=Montserrat | ||
Line 168: | Line 135: | ||
|MV=Maldives | |MV=Maldives | ||
|MW=Malawi | |MW=Malawi | ||
− | |||
|MY=Malaysia | |MY=Malaysia | ||
|MZ=Mozambique | |MZ=Mozambique | ||
Line 177: | Line 143: | ||
|NG=Nigeria | |NG=Nigeria | ||
|NI=Nicaragua | |NI=Nicaragua | ||
− | |||
|NO=Norway | |NO=Norway | ||
|NP=Nepal | |NP=Nepal | ||
Line 202: | Line 167: | ||
|RO=Romania | |RO=Romania | ||
|RS=Serbia | |RS=Serbia | ||
− | |||
|RW=Rwanda | |RW=Rwanda | ||
|SA=Saudi Arabia | |SA=Saudi Arabia | ||
Line 212: | Line 176: | ||
|SH=Saint Helena, Ascension and Tristan da Cunha | |SH=Saint Helena, Ascension and Tristan da Cunha | ||
|SI=Slovenia | |SI=Slovenia | ||
− | |||
|SK=Slovakia | |SK=Slovakia | ||
|SL=Sierra Leone | |SL=Sierra Leone | ||
Line 244: | Line 207: | ||
|UG=Uganda | |UG=Uganda | ||
|UM=the United States Minor Outlying Islands | |UM=the United States Minor Outlying Islands | ||
− | |||
|UY=Uruguay | |UY=Uruguay | ||
|UZ=Uzbekistan | |UZ=Uzbekistan | ||
Line 263: | Line 225: | ||
|ZM=Zambia | |ZM=Zambia | ||
|ZW=Zimbabwe | |ZW=Zimbabwe | ||
− | }}]]</includeonly> | + | }}}}]]</includeonly> |
Revision as of 11:28, 7 June 2019
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