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

From Zoophilia Wiki
Jump to navigationJump to search
meta>Visi-on
DE-BB not exist
meta>Stepheng3
samples at end, in tabular format
Line 21: Line 21:
** '''US-NY''' New York
** '''US-NY''' New York
</td></tr></table>
</td></tr></table>
Samples:
* <nowiki>{{coord|46.9524|N|7.4396|E|region:CH}}</nowiki> focuses the section for Switzerland at {{coord|46.9524|N|7.4396|E|region:CH}}.
* <nowiki>{{coord|52.5164|N|13.3775|E|region:DE-BE}}</nowiki> focuses the section for Germany at {{coord|52.5164|N|13.3775|E|region:DE-BE}}.


Specific code:
Special region codes not in ISO 3166-1:
*XZ is used for objects in/above international waters (similar to [[UN/LOCODE]]).
*<code>XZ</code> for objects in/above international waters (similar to [[UN/LOCODE]])
*ZZ is used in samples
*<code>ZZ</code> for use in samples
 
{| class="wikitable"
|+ Samples
! Focus region
! R
! Markup
! Result
|-
| Switzerland
| CH
| <nowiki>{{coord|46.9524|N|7.4396|E|region:CH}}</nowiki>
| {{coord|46.9524|N|7.4396|E|region:CH}}
|-
| Berlin, Germany
| GE-BE
| <nowiki>{{coord|52.5164|N|13.3775|E|region:DE-BE}}</nowiki>
| {{coord|52.5164|N|13.3775|E|region:DE-BE}}
|}
 
[[Category:WikiProject Geographical coordinates]]
[[Category:WikiProject Geographical coordinates]]

Revision as of 10:37, 15 October 2009

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:

Special region codes not in ISO 3166-1:

  • 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 GE-BE {{coord|52.5164|N|13.3775|E|region:DE-BE}} Lua error: callParserFunction: function "#coordinates" was not found.