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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Docu
rearr, +cat
meta>Pigsonthewing
example of UK sub-code; sort alphabetcially; add Antarctica for balance
Line 3: Line 3:
The region should be supplied as either a two character [[ISO 3166-1 alpha-2]] country code, or an [[ISO 3166-2]] region code. E.g:
The region should be supplied as either a two character [[ISO 3166-1 alpha-2]] country code, or an [[ISO 3166-2]] region code. E.g:
<table><tr><td>
<table><tr><td>
* '''US''' [[United States]]
* ''AQ''' [[Antarctica]]
* '''US-NY''' [[United States]], New York
* '''AU''' [[Australia]]
* '''BR''' [[Brazil]]
* '''CA''' [[Canada]]
* '''CA''' [[Canada]]
* '''CH''' [[Switzerland]]
* '''DE''' [[Germany]]
* '''DE''' [[Germany]]
* '''DE-TH''' [[Germany]], [[Thuringia]]
** '''DE-TH''' [[Germany]], [[Thuringia]]
* '''CH''' [[Switzerland]]
* '''FR''' [[France]]
* '''FR''' [[France]]
</td><td>
</td><td>
* '''GB''' [[United Kingdom]]
* '''GB''' [[United Kingdom]]
** '''GB-BIR''' [[Birmingham]]
* '''IN''' [[India]]
* '''IN''' [[India]]
* '''BR''' [[Brazil]]
* '''LK''' [[Sri Lanka]]
* '''AU''' [[Australia]]
* '''NL''' [[Netherlands]]
* '''NO-03''' [[Oslo]], [[Norway]]
* '''NO-03''' [[Oslo]], [[Norway]]
* '''NL''' [[Netherlands]]
* '''US''' [[United States]]
* '''LK''' [[Sri Lanka]]
** '''US-NY''' New York
</td></tr></table>
</td></tr></table>
Samples:
Samples:

Revision as of 12:00, 14 December 2008

Sets the preferred map region of coverage, used in selecting appropriate map resources for the area. If no region parameter is supplied, the geohack extension attempts to determine it 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. E.g:

Samples:

  • {{coord|46.9524|N|7.4396|E|region:CH}} focuses the section for Switzerland at Lua error: callParserFunction: function "#coordinates" was not found..
  • {{coord|52.5164|N|13.3775|E|region:DE-BB}} focuses the section for Germany at Lua error: callParserFunction: function "#coordinates" was not found..

Specific code:

  • XZ is used for objects in/above international waters (similar to UN/LOCODE).
  • ZZ is used in samples