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
meta>Stepheng3
fix link
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:Geohack|Geohack]] attempts to determine the region from the coordinates.
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. For example:
The region should be supplied as either a two character [[ISO 3166-1 alpha-2]] country code or an [[ISO 3166-2]] region code. For example:

Revision as of 00:48, 17 April 2010

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. For example:

In addition, two user-assigned code elements can used with {{coord}}:

  • XZ for objects in/above international waters (similar to UN/LOCODE)
  • ZZ for use in samples
Samples
Focus region R 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.