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:
Examples of
ISO 3166-2
codes:
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.
The
globe:
parameter specifies the
planet
,
dwarf planet
, or
natural satellite
upon which the coordinates reside. Apart from
earth
(the default), recognized values are:
mercury
,
venus
,
moon
,
mars
,
phobos
,
deimos
,
ceres
,
ganymede
,
callisto
,
io
,
europa
,
mimas
,
enceladus
,
tethys
,
dione
,
rhea
,
titan
,
hyperion
,
iapetus
,
phoebe
,
miranda
,
ariel
,
umbriel
,
titania
,
oberon
,
triton
, and
pluto
.
For globes other than Earth, {{
coord
}} does not assume a specific reference system (in contrast with Earth's WGS84). Since the template defaults to east longitude, the
|W|
direction must be specified for globes that measure longitude westward. At the present time, only limited mapping is available for Mars and the Moon and none for other extraterrestrial bodies. For celestial coordinates, use {{
Sky
}} instead.
Specifies, where present, the data source and data source format/datum, and optionally the original data, presented in parentheses. This is initially primarily intended for use by geotagging robots, so that data is not blindly repeatedly copied from format to format and Wikipedia to Wikipedia, with progressive loss of precision and attributability.
Examples:
- A lat/long geotag derived from a
Ordnance Survey
National Grid Reference
NM 435 355 found in the English-language Wikipedia would be tagged as "source:enwiki-osgb36(NM435355)"
- A latitude-longitude location sourced from data taken from the German-language Wikipedia would be tagged as "source:dewiki" ? and so on, for other language codes;
- A location sourced from the public domain
GeoNet Names Server
database would be tagged as "source:GNS". No datum or format information is needed, since by default all Wikipedia coordinates are in latitude/longitude format based on the
WGS84
datum. Similarly, US locations sourced from the similar public domain
GNIS
database would be tagged as "source:GNIS".
Per-user display customization
[
???????? ???
]
To always display coordinates as DMS values, add this to
your monobook.css
:
.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: none }
.geo-dms { display: inline }
To always display coordinates as decimal values, add this to
your monobook.css
:
.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: inline }
.geo-dms { display: none }
To display coordinates in both formats, add this to
your monobook.css
:
.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: inline }
.geo-dms { display: inline }
.geo-multi-punct { display: inline }
If CSS is disabled, or you have an old copy of
MediaWiki:Common.css
cached, you will see both formats. (You can either clear your cache or manually refresh this URL:
[1]
.)
To disable display of the blue globe adjacent to coordinates, add this to
your monobook.js
var wma_settings = {enabled:false}
Note that this will disable
WikiMiniAtlas
See also
Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates
.
Incorrect uses and maintenance categories
[
???????? ???
]
The template has some input checks built in. Most errors display a
bold, red
message inline and categorize the article in the
hidden
maintenance category
Pages with malformed coordinate tags
. There are currently
3
pages in that category. See the category description for further instructions.
A more thorough daily report of coordinates needing repair is at
tools:~dispenser/view/File viewer#log:coord-enwiki.log
.
See also:
WT:GEO#To do
This template is completely powered by the
Lua module
????:Tlm
.
The class names
geo
,
latitude
and
longitude
are used to generate the microformat and
MUST NOT
be changed.
This template used to use a lot of
sub templates
but these have all been replaced by
????:Tlm
.
This template uses overloading
[
??????????? ????????
]
which does not work well with the
VisualEditor/TemplateData
. Consider using "Edit source" instead of the visual editor until this defect is corrected. To facilitate visual editing in the meantime, consider using {{
coordDec
}} for signed decimal degrees, {{
coordDMS
}} when degrees minutes and seconds are specified, and {{
coordDM
}} when just degrees and minutes are given.
Encodes the latitude and longitude coordinates of a location, provides a link to map of the location. This template does not work well with the Visual Editor, consider using {{coordDec}} for signed decimal degrees, {{coordDMS}} when degrees minutes and seconds are specified {{coordDM}} when only degrees and minutes are specified. To use this template you will need to use positional parameter following one of these schemes: {{coord | D | M | S | NS | D | M | S | EW | geo | opts}}, {{coord | D | M | NS | D | M | EW | geo | opts}}, {{coord | D| NS | D| EW | geo | opts}} {{coord | sD | sD | geo | opts}} where D is degrees, M is minutes, S seconds, sD signed decimal degrees, NS is N or S, EW is E or W, opts are named parameter and geo are the coordinate parameters described on the main doc page.
???? ?????????
[
????-???? ???????? ???
]
?????????
| ?????
| ??????
| ??????
|
---|
1
| 1
| Either degrees latitude or a signed decimal degrees latitude
| ??????
| ??????????
|
---|
2
| 2
| Either: minutes latitude, signed decimal degrees longitude or 'N' or 'S'.
| ???????
| ??????????
|
---|
3
| 3
| Either: second latitude, degrees longitude, 'N' or 'S' or GeoHack parameters
| ???????
| ??????
|
---|
4
| 4
| Either: degrees longitude, 'N', 'S', 'E' or 'W' or GeoHack parameters
| ???????
| ??????
|
---|
5
| 5
| Either: degrees longitude, minutes longitude or GeoHack parameters
| ???????
| ??????
|
---|
6
| 6
| Either: minutes longitude, 'E' or 'W' or GeoHack parameters
| ???????
| ??????
|
---|
7
| 7
| Either second longitude, or GeoHack parameters
| ???????
| ??????
|
---|
8
| 8
| 'E' or 'W'.
| ???????
| ??????
|
---|
9
| 9
| GeoHack parameters. Example: dim:30_region:US-WI_type:event
| ???????
| ??????
|
---|
Wikidata item
| qid
| Retrieve coordinates from a WikiData entry instead of from this template's parameters
- ??????
- Q513
| ????
| ??????
|
---|
Display
| display
| Where it is displayed. Can be one of: 'inline' in the body of the article, 'title' at the top of the article or 'inline,title' both
- ?????????? ???
inline
title
inline,title
- ??????????????
- inline
| ????
| ??????????
|
---|
Name
| name
| a label to place on maps (default is PAGENAME)
| ???????
| ??????
|
---|
Notes
| notes
| text displayed immediately following the coordinates
| ???????
| ??????
|
---|
Format
| format
| How the coordinates are displayed, either 'dec' or 'dms'
- ?????????? ???
dec
dms
| ????
| ??????
|
---|
Geosearch
| nosave
| Set to 'true' if you want to avoid this coordinate to be registered in the geosearch API.
| ???????
| ??????
|
---|