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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Stepheng3
+missing word
meta>Droll
beautification
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.
<table><tr><td>
 
Examples of [[ISO 3166-1 alpha-2]] codes:
{{columns-list|2;width:50%|
* '''AQ''' [[Antarctica]]
* '''AQ''' [[Antarctica]]
* '''AU''' [[Australia]]
* '''AU''' [[Australia]]
Line 9: Line 11:
* '''CH''' [[Switzerland]]
* '''CH''' [[Switzerland]]
* '''DE''' [[Germany]]
* '''DE''' [[Germany]]
** '''DE-TH''' [[Thuringia]]
* '''FR''' [[France]]
* '''FR''' [[France]]
</td><td>
* '''GB''' [[United Kingdom]]
* '''GB''' [[United Kingdom]]
** '''GB-BIR''' [[Birmingham]]
* '''IN''' [[India]]
* '''IN''' [[India]]
* '''LK''' [[Sri Lanka]]
* '''LK''' [[Sri Lanka]]
* '''NL''' [[Netherlands]]
* '''NL''' [[Netherlands]]
* '''US''' [[United States]]}}
Examples of [[ISO 3166-2]] codes:
* '''NO-03''' [[Oslo]], [[Norway]]
* '''NO-03''' [[Oslo]], [[Norway]]
* '''US''' [[United States]]
* '''DE-TH''' [[Thuringia]]
** '''US-NY''' New York
* '''US-NY''' [[New York|New York state]]
</td></tr></table>


In addition, two user-assigned code elements can be used with {{tl|coord}}:
*<code>XZ</code> for objects in/above international waters (similar to [[UN/LOCODE]])
*<code>ZZ</code> for use in samples


{| class="wikitable"
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
! R
! Region
! Markup
! Markup
! Result
! Result
|-
|-  
| Switzerland
| Switzerland
| <code>CH</code>
| <code>CH</code>
| <nowiki>{{coord|46.9524|N|7.4396|E|region:CH}}</nowiki>
| &nbsp;<nowiki>{{coord|46.9524|N|7.4396|E|region:CH}}</nowiki>&nbsp;
| {{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>
| &nbsp;<nowiki>{{coord|52.5164|N|13.3775|E|region:DE-BE}}</nowiki>&nbsp;
| {{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]]

Revision as of 16:25, 9 July 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.

Examples of ISO 3166-1 alpha-2 codes:

2;width:50%


Examples of ISO 3166-2 codes:


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.