Template:Coord/doc

Purpose
This template, coord, produces a link to a list of map sources, based on the geographical coordinates and other parameters, and provides a standardized 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. Clicking the blue globe activates the WikiMiniAtlas (needs Javascript).

The template outputs data in:
 * Degree/minutes/seconds ("DMS", precision is degrees, or degrees/minutes, or degrees/minutes/seconds, based on input). Some conversions from decimal degrees to dms need fixing (see talk)
 * Decimal (precision by number of decimal places, based on input)
 * Geo microformat.

coord is used by tools which parse the raw Wikipedia database dumps, such as Google Earth. To ensure that the coordinates are parsed correctly display=title must be used. See How do I get my Wikipedia article to show up in the Google Earth Geographic Web layer?. The template must not be modified without prior discussion.

For articles which have no coordinates, but need them, use coord missing.

See also WikiProject Geographical coordinates.

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

Examples:

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

There are two kinds of parameters, all optional:


 * Coordinate parameters : Recognized by the map server, given in the format parameter:value and separated from each other with the underscore character '_'. Common coordinate parameters include type, region, and scale. See coordinate parameters for a comprehensive list.


 * Template parameters : Used by the template itself, given in the format parameter=value and separated from each other with the pipe character '|'. The supported template parameters are display, name and format.
 * display can be one of the following:
 * - Display the coordinate inline (default)
 * - Display the coordinate by the article title (replaces coor title dms family), shortcut:
 * - Display the coordinate 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.   works also. Shortcut:
 * format can be used to force dec or dms coordinate display for all readers
 * name can be used to annotate inline coordinates for display in map services and other external use. It should not be used with coordinates in the article title or within an infobox, as in those cases the name is implicit from the article title.

Coordinate parameters
Following the geographical coordinate, further parameters can optionally be supplied, separated by underscores. This will help in finding suitable map resources, and will become more important when the Wikimaps become fully functional.

Incorrect uses and maintenance category
The template has a few input checks built in. Basic errors display the message on Coord/input/ERROR (see Special:WhatLinksHere/Template:Coord/input/ERROR for pages to fix)

A series of other input errors categorize the pages in the maintenance category Coord template needing repair. See the category description for more details. There are currently  pages in that category.

A general list of coordinates needing repair is at ~dispenser/view/File viewer.

See also: WT:GEO

Subtemplates
See Template:Coord/doc/internals and Category:Coord template

Coordinates in PDF
For the generation of the PDF version, printed books and Open Office export format, two templates are substituted for the regular templates:
 * Template:Coord/display/title/Print for Coord/display/title
 * Template:Coord/link/Print for Coord/link
 * Template:Coord/display/inline,title/Print for Coord/display/inline,title

Samples are available at:
 * Help:Books/Feedback/Tests/coord 1
 * Help:Books/Feedback/Tests/coord 2

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

af:Sjabloon:Coord ar:قالب:كوورد be-x-old:Шаблён:Каардынаты ca:Template:Coord es:Plantilla:Coord eo:Ŝablono:Koord fr:Modèle:Coord fur:Model:Coord hsb:Předłoha:Koord ia:Patrono:Coord it:Template:Coord ja:Template:Coord no:Mal:Koordinater pl:Szablon:Koordynaty pt:Predefinição:Coord ro:Format:Coord ru:Template:Coord simple:Template:Coord sl:Predloga:Koord sv:Mall:Coord uk:Шаблон:Координати vo:Samafomot:Coord zh:Template:Coord