Difference between revisions of "Template:Location"

From Geohashing
imported>Fippe
(Defined KH, LI, LT, LU, LV, MA, MT, MY, NO, NP, NZ, PH, PL, PR, PS, PT, RO, RS, SE, SG, SI, SK, TJ, TN, TR, UA, ZA)
imported>Fippe
(Examples: Find more examples for your country at your country's location template.)
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 {{#ifexist:template:location/{{{1}}}
 
[[Category:Location templates| ]]</noinclude><includeonly>[[Category:Expeditions in {{#ifexist:template:location/{{{1}}}

Revision as of 08:22, 8 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

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