Difference between revisions of "Template:Location"

From Geohashing
imported>Fippe
imported>Fippe
Line 13: Line 13:
 
|#default=an unknown location
 
|#default=an unknown location
 
|AD=Andorra
 
|AD=Andorra
|AE=the United Arab Emirates
+
|AE={{location/AE|{{{2}}}}}
 
|AF=Afghanistan
 
|AF=Afghanistan
 
|AG=Antigua and Barbuda
 
|AG=Antigua and Barbuda
Line 49: Line 49:
 
|BY=Belarus
 
|BY=Belarus
 
|BZ=Belize
 
|BZ=Belize
|CA=Canada
+
|CA={{location/CA|{{{2}}}}}
 
|CC=the Cocos Islands
 
|CC=the Cocos Islands
 
|CD=the Democratic Republic of the Congo
 
|CD=the Democratic Republic of the Congo
Line 59: Line 59:
 
|CL=Chile
 
|CL=Chile
 
|CM=Cameroon
 
|CM=Cameroon
|CN=China
+
|CN={{location/CN|{{{2}}}}}
 
|CO=Colombia
 
|CO=Colombia
 
|CR=Costa Rica
 
|CR=Costa Rica

Revision as of 14:51, 1 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