Difference between revisions of "Template:Location"
m (Subtemplates already exist) |
(Nomenclature) |
||
Line 1: | Line 1: | ||
− | <noinclude>Use <code><nowiki>{{</nowiki>location<nowiki>}}</nowiki></code> to tag [[expedition]]s by their location. It will add a subcategory of [[:Category: | + | <noinclude>Use <code><nowiki>{{</nowiki>location<nowiki>}}</nowiki></code> to tag [[meetup]]s, including [[expedition]]s, by their location. It will add a subcategory of [[:Category:Meetup by country]] to the expedition. |
For countries, use [[wikipedia:ISO 3166-1 alpha-2|ISO 3166-1 alpha-2]] codes. This template regards anything a country that is assigned such a code. Use <code>XI</code> 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. | For countries, use [[wikipedia:ISO 3166-1 alpha-2|ISO 3166-1 alpha-2]] codes. This template regards anything a country that is assigned such a code. Use <code>XI</code> 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: | + | 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:Meetup in Germany]] is a subcategory of [[:Category:Meetup by country]]. The subcategories should be sorted in by their respective code. |
==Examples== | ==Examples== | ||
Line 11: | Line 11: | ||
''Find more examples for your country at your country's [[:category:location templates|location template]].'' | ''Find more examples for your country at your country's [[:category:location templates|location template]].'' | ||
− | [[Category:Location templates| ]]</noinclude><includeonly>[[Category: | + | [[Category:Location templates| ]]</noinclude><includeonly>[[Category:Meetup in {{#ifexist:template:location/{{{1}}} |
|{{location/{{{1}}}|{{{2}}}|{{{3}}}|city={{{city}}}}} | |{{location/{{{1}}}|{{{2}}}|{{{3}}}|city={{{city}}}}} | ||
|{{#switch:{{{1}}} | |{{#switch:{{{1}}} |
Latest revision as of 22:18, 3 September 2022
Use {{location}}
to tag meetups, including expeditions, by their location. It will add a subcategory of Category:Meetup by country 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:Meetup in Germany is a subcategory of Category:Meetup by country. 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.