Difference between revisions of "Template:Location"
imported>Fippe (clean-up) |
(Nomenclature) |
||
(4 intermediate revisions by 2 users not shown) | |||
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 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: | + | [[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}}} | ||
Line 21: | Line 22: | ||
|AM=Armenia | |AM=Armenia | ||
|AO=Angola | |AO=Angola | ||
− | |||
|AS=American Samoa | |AS=American Samoa | ||
|AW=Aruba | |AW=Aruba | ||
Line 58: | Line 58: | ||
|DJ=Djibouti | |DJ=Djibouti | ||
|DM=Dominica | |DM=Dominica | ||
− | |||
|DZ=Algeria | |DZ=Algeria | ||
|EC=Ecuador | |EC=Ecuador | ||
Line 95: | Line 94: | ||
|IR=Iran | |IR=Iran | ||
|JM=Jamaica | |JM=Jamaica | ||
− | |||
|KE=Kenya | |KE=Kenya | ||
|KG=Kyrgyzstan | |KG=Kyrgyzstan | ||
− | |||
|KI=Kiribati | |KI=Kiribati | ||
|KM=Comoros | |KM=Comoros | ||
Line 109: | Line 106: | ||
|LB=Lebanon | |LB=Lebanon | ||
|LC=Saint Lucia | |LC=Saint Lucia | ||
− | |||
|LK=Sri Lanka | |LK=Sri Lanka | ||
|LR=Liberia | |LR=Liberia | ||
|LS=Lesotho | |LS=Lesotho | ||
− | |||
− | |||
− | |||
|LY=Libya | |LY=Libya | ||
− | |||
|MC=Monaco | |MC=Monaco | ||
|MD=Moldova | |MD=Moldova | ||
Line 131: | Line 123: | ||
|MR=Mauritania | |MR=Mauritania | ||
|MS=Montserrat | |MS=Montserrat | ||
− | |||
|MU=Mauritius | |MU=Mauritius | ||
|MV=Maldives | |MV=Maldives | ||
|MW=Malawi | |MW=Malawi | ||
− | |||
|MZ=Mozambique | |MZ=Mozambique | ||
− | |||
|NC=New Caledonia | |NC=New Caledonia | ||
|NE=Niger | |NE=Niger | ||
|NF=Norfolk Island | |NF=Norfolk Island | ||
− | |||
|NI=Nicaragua | |NI=Nicaragua | ||
− | |||
− | |||
|NR=Nauru | |NR=Nauru | ||
|NU=Niue | |NU=Niue | ||
− | |||
|OM=Oman | |OM=Oman | ||
|PA=Panama | |PA=Panama | ||
− | |||
|PF=French Polynesia | |PF=French Polynesia | ||
|PG=Papua New Guinea | |PG=Papua New Guinea | ||
− | |||
− | |||
− | |||
|PM=Saint Pierre and Miquelon | |PM=Saint Pierre and Miquelon | ||
|PN=the Pitcairn Islands | |PN=the Pitcairn Islands | ||
− | |||
− | |||
− | |||
|PW=Palau | |PW=Palau | ||
|PY=Paraguay | |PY=Paraguay | ||
|QA=Qatar | |QA=Qatar | ||
|RE=Réunion | |RE=Réunion | ||
− | |||
− | |||
|RW=Rwanda | |RW=Rwanda | ||
|SA=Saudi Arabia | |SA=Saudi Arabia | ||
Line 172: | Line 148: | ||
|SC=Seychelles | |SC=Seychelles | ||
|SD=Sudan | |SD=Sudan | ||
− | |||
− | |||
|SH=Saint Helena, Ascension and Tristan da Cunha | |SH=Saint Helena, Ascension and Tristan da Cunha | ||
− | |||
− | |||
|SL=Sierra Leone | |SL=Sierra Leone | ||
|SM=San Marino | |SM=San Marino | ||
Line 186: | Line 158: | ||
|SV=El Salvador | |SV=El Salvador | ||
|SX=Sint Maarten | |SX=Sint Maarten | ||
− | |||
|SZ=Eswatini | |SZ=Eswatini | ||
|TC=the Turks and Caicos Islands | |TC=the Turks and Caicos Islands | ||
Line 192: | Line 163: | ||
|TF=French Southern and Antarctic Lands | |TF=French Southern and Antarctic Lands | ||
|TG=Togo | |TG=Togo | ||
− | |||
− | |||
|TK=Tokelau | |TK=Tokelau | ||
|TL=Timor-Leste | |TL=Timor-Leste | ||
|TM=Turkmenistan | |TM=Turkmenistan | ||
− | |||
|TO=Tonga | |TO=Tonga | ||
− | |||
|TT=Trinidad and Tobago | |TT=Trinidad and Tobago | ||
|TV=Tuvalu | |TV=Tuvalu | ||
|TW=Taiwan | |TW=Taiwan | ||
|TZ=Tanzania | |TZ=Tanzania | ||
− | |||
|UG=Uganda | |UG=Uganda | ||
|UM=the United States Minor Outlying Islands | |UM=the United States Minor Outlying Islands | ||
− | |||
|UZ=Uzbekistan | |UZ=Uzbekistan | ||
|VA=Vatican City | |VA=Vatican City | ||
|VC=Saint Vincent and the Grenadines | |VC=Saint Vincent and the Grenadines | ||
− | |||
|VG=the British Virgin Islands | |VG=the British Virgin Islands | ||
|VI=the United States Virgin Islands | |VI=the United States Virgin Islands | ||
Line 218: | Line 182: | ||
|WF=Wallis and Futuna | |WF=Wallis and Futuna | ||
|WS=Samoa | |WS=Samoa | ||
− | |||
|XK=Kosovo | |XK=Kosovo | ||
|YE=Yemen | |YE=Yemen | ||
|YT=Mayotte | |YT=Mayotte | ||
− | |||
|ZM=Zambia | |ZM=Zambia | ||
|ZW=Zimbabwe | |ZW=Zimbabwe | ||
}}}}]]</includeonly> | }}}}]]</includeonly> |
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.