Template:Coord/doc

This template, coord, produces a link to a list of map sources, based on the geographical coordinates and other parameters, and provides a standardised notation for the coordinates.

The template is for WGS84 geographical coordinates (latitude;longitude) on Earth, which can be entered in either decimal notation, or degrees/minutes/seconds parameters, with the appropriate precision.

It links to, then displays the coordinates.

The template outputs data in:
 * Degree/minutes/seconds ("DMS", precision is degrees, or degrees/minutes, or degrees/minutes/seconds, based on input)
 * Decimal (precision by number of decimal places, based on input)
 * [[Image:Geo-microformat-button.png|button to indicate the presence of a Geo microformat|This button indicates the presence of a Geo microformat on a page]] A computer-readable Geo microformat.

coord will imminently be used by tools which parse the raw Wikipedia database dumps, such as Google Earth. The original template must not be modified without reference to that project (link needed).

See also Wikipedia:Wikipedia:WikiProject Geographical coordinates.

Superseded templates
This single template supersedes coor d, coor dm, coor dms, coor at d, coor at dm, coor at dms, coor title d, coor title dm, and coor title dms. All parameters can be used as before - see Usage.

Examples:

Display
By default coordinates are displayed in the format in which they are specified.

To always display coordinates as DMS values, add this to your monobook.css:

To always display coordinates as decimal values, add this to your monobook.css:

To display coordinates in both formats, add this to your monobook.css:

If CSS is disabled, or you have an old copy of MediaWiki:Common.css cached, you will see both formats. (The cache for Common.css takes 31 days to expire, and the changes were made 2007-04-04. You can either clear your cache or manually refresh this URL: .)

See also Wikipedia:Wikipedia:Manual of Style (dates and numbers).

Usage
&#123;{coord|latitude|longitude|parameters|display=display}&#125; &#123;{coord|dd|N/S|dd|E/W|parameters|display=display}&#125; &#123;{coord|dd|mm|N/S|dd|mm|E/W|parameters|display=display}&#125; &#123;{coord|dd|mm|ss|N/S|dd|mm|ss|E/W|parameters|display=display}&#125;


 * parameters, which are optional, can be any type:, region:, or scale: setting which is recognised by the map server, such as the popular  and  . See Wikipedia:Wikipedia:WikiProject Geographical coordinates for a comprehensive list.


 * display, which is optional, can be one of the following:
 * (default): display the coordinate inline
 * : display the coordinate by the article title, right-justified (replaces coor title dms family)
 * : display both inline and at title (replaces coor at dms family)

Note: using the  attribute indicates that the coordinates apply to the article, and not just one of (perhaps many) places mentioned in it &mdash; so it should only be omitted in the latter case. It will be used to add the article to services such as Google Earth layers.

Examples
(These are live geo-microformats and should be detected on this page by parsers) 55.75222°N, 37.61556°W 39.0981°N, -94.58731°W Decimal conversion without N/S/E/W 55.75222°N, 37.61556°W

52.48306°N, -1.89361°W Birmingham - with display and parameter settings; note display also in title of this page.

Class names
The class names geo, latitude and longitude are used to generate the microformat and MUST NOT be changed.