Zoophilia Wiki:WikiProject Geographical coordinates/region:: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
No edit summary
meta>Pigsonthewing
fewer examples; delink
Line 5: Line 5:
Examples of [[ISO 3166-1 alpha-2]] codes:
Examples of [[ISO 3166-1 alpha-2]] codes:
{{columns-list|2;width:50%|
{{columns-list|2;width:50%|
* '''AQ''' [[Antarctica]]
* '''AQ''' Antarctica
* '''AU''' [[Australia]]
* '''AU''' Australia
* '''BR''' [[Brazil]]
* '''BR''' Brazil
* '''CA''' [[Canada]]
* '''DE''' Germany
* '''CH''' [[Switzerland]]
* '''GB''' United Kingdom
* '''DE''' [[Germany]]
* '''HK''' Hong Kong
* '''FR''' [[France]]
* '''IN''' India
* '''GB''' [[United Kingdom]]
* '''LK''' Sri Lanka
* '''HK''' [[Hong Kong]]
* '''RU''' Russia
* '''IN''' [[India]]
* '''US''' United States}}
* '''JP''' [[Japan]]
* '''LK''' [[Sri Lanka]]
* '''NL''' [[Netherlands]]
* '''NZ''' [[New Zealand]]
* '''RU''' [[Russia]]
* '''US''' [[United States]]}}


Examples of [[ISO 3166-2]] codes:
Examples of [[ISO 3166-2]] codes:
* '''NO-03''' [[Oslo]], [[Norway]]
* '''NO-03''' Oslo, Norway
* '''DE-TH''' [[Thuringia]]
* '''DE-TH''' Thuringia
* '''US-NY''' [[New York|New York state]]
* '''US-NY''' New York|New York state


The oceans have the following Wiki assigned code elements per [[:de:Vorlage:Coordinate#Ozeane]].
The oceans have the following Wiki assigned code elements per [[:de:Vorlage:Coordinate#Ozeane]].

Revision as of 15:29, 20 January 2013

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:

2;width:50%

Examples of ISO 3166-2 codes:

  • NO-03 Oslo, Norway
  • DE-TH Thuringia
  • US-NY New York|New York state

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.
Samples
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.