Zoophilia Wiki:WikiProject Geographical coordinates/region:: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Stepheng3 parallel other coord parameter help pages |
m 24 revisions imported |
||
(14 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
The <code>region:</code> parameter specifies the political region for terrestrial coordinates. It is used to select appropriate map resources. If no <code>region:</code> parameter is provided, [[tswiki: | The <code>region:</code> parameter specifies the political region for terrestrial coordinates. It is used to select appropriate map resources. If no <code>region:</code> parameter is provided, [[tswiki:GeoHack|GeoHack]] attempts to determine the region from the coordinates. | ||
The region should be supplied as either a two character [[ISO 3166-1 alpha-2]] country code or an [[ISO 3166-2]] region code. | The region should be supplied as either a two character [[ISO 3166-1 alpha-2]] country code or an [[ISO 3166-2]] region code. | ||
Examples of [[ISO 3166-1 alpha-2]] codes: | |||
* | {{columns-list| | ||
* | * '''AQ''' Antarctica | ||
* '''AU''' Australia | |||
* '''BR''' Brazil | |||
* '''DE''' Germany | |||
* '''GB''' United Kingdom | |||
* '''HK''' Hong Kong | |||
* '''IN''' India | |||
* '''LK''' Sri Lanka | |||
* '''RU''' Russia | |||
* '''US''' United States}} | |||
{| class="wikitable" | Examples of [[ISO 3166-2]] region codes: | ||
{{columns-list| | |||
* '''DE-TH''' Thuringia, Germany | |||
* '''GB-BIR''' Birmingham, England | |||
* '''NO-03''' Oslo, Norway | |||
* '''US-NY''' New York state, US}} | |||
The oceans have the following Wiki assigned code elements per [[:de:Vorlage:Coordinate#Ozeane]]. | |||
* '''XN''' Arctic Ocean | |||
* '''XA''' Atlantic Ocean | |||
* '''XI''' Indian Ocean | |||
* '''XP''' Pacific Ocean | |||
* '''XS''' Southern Ocean | |||
In addition, two Wiki assigned code elements can be used with {{tl|coord}}: | |||
* '''XZ''' for objects in or above international waters (similar to [[UN/LOCODE]]). | |||
* '''ZZ''' for use in examples. | |||
{| class="wikitable" cellpadding="20" | |||
|+ Samples | |+ Samples | ||
! Focus region | ! Focus region | ||
! | ! Region | ||
! Markup | ! Markup | ||
! Result | ! Result | ||
|- | |- | ||
| Switzerland | | Switzerland | ||
| <code>CH</code> | | <code>CH</code> | ||
| <nowiki>{{coord|46.9524|N|7.4396|E|region:CH}}</nowiki> | | <nowiki>{{coord|46.9524|N|7.4396|E|region:CH}}</nowiki> | ||
| {{coord|46.9524|N|7.4396|E|region:CH}} | | {{coord|46.9524|N|7.4396|E|region:CH}} | ||
|- | |- | ||
| Berlin, Germany | | Berlin, Germany | ||
| <code>DE-BE</code> | | <code>DE-BE</code> | ||
| <nowiki>{{coord|52.5164|N|13.3775|E|region:DE-BE}}</nowiki> | | <nowiki>{{coord|52.5164|N|13.3775|E|region:DE-BE}}</nowiki> | ||
| {{coord|52.5164|N|13.3775|E|region:DE-BE}} | | {{coord|52.5164|N|13.3775|E|region:DE-BE}} | ||
|} | |} | ||
[[Category:WikiProject Geographical coordinates]] | [[Category:WikiProject Geographical coordinates]] |
Latest revision as of 01:07, 3 September 2020
The region:
parameter specifies the political region for terrestrial coordinates. It is used to select appropriate map resources. If no region:
parameter is provided, GeoHack attempts to determine the region from the coordinates.
The region should be supplied as either a two character ISO 3166-1 alpha-2 country code or an ISO 3166-2 region code.
Examples of ISO 3166-1 alpha-2 codes:
- AQ Antarctica
- AU Australia
- BR Brazil
- DE Germany
- GB United Kingdom
- HK Hong Kong
- IN India
- LK Sri Lanka
- RU Russia
- US United States
Examples of ISO 3166-2 region codes:
- DE-TH Thuringia, Germany
- GB-BIR Birmingham, England
- NO-03 Oslo, Norway
- US-NY New York state, US
The oceans have the following Wiki assigned code elements per de:Vorlage:Coordinate#Ozeane.
- XN Arctic Ocean
- XA Atlantic Ocean
- XI Indian Ocean
- XP Pacific Ocean
- XS Southern Ocean
In addition, two Wiki assigned code elements can be used with {{coord}}:
- XZ for objects in or above international waters (similar to UN/LOCODE).
- ZZ for use in examples.
Focus region | Region | Markup | Result |
---|---|---|---|
Switzerland | CH
|
{{coord|46.9524|N|7.4396|E|region:CH}} | Lua error: callParserFunction: function "#coordinates" was not found. |
Berlin, Germany | DE-BE
|
{{coord|52.5164|N|13.3775|E|region:DE-BE}} | Lua error: callParserFunction: function "#coordinates" was not found. |