Template:Coord how-to: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Dispenser
XHTML again ; adding dim:D
meta>Stepheng3
clarify separator for optional parameters
Line 13: Line 13:
| Values (including degrees, minutes and seconds) are separated by [[Vertical bar|a pipe ("|")]]. <br/> Latitude (N/S) before longitude (E/W). [[Geodetic system|Map datum]] is WGS84.<br>To display the coordinates in the article as well, use "display=inline,title" instead of "display=title".<br/>Avoid [[Wikipedia:WikiProject Geographical coordinates#Precision|excessive precision]] (0.0001° is <11 m, 1′′ is <31 m).
| Values (including degrees, minutes and seconds) are separated by [[Vertical bar|a pipe ("|")]]. <br/> Latitude (N/S) before longitude (E/W). [[Geodetic system|Map datum]] is WGS84.<br>To display the coordinates in the article as well, use "display=inline,title" instead of "display=title".<br/>Avoid [[Wikipedia:WikiProject Geographical coordinates#Precision|excessive precision]] (0.0001° is <11 m, 1′′ is <31 m).
|-
|-
|Optional parameters:<br />
|Optional parameters are separated by [[Underscore|an underscore ("_")]]:<br />
*[[Template:Coord#dim:D|dim]]: <code>dim:N</code> (diameter in meters)
*[[Template:Coord#dim:D|dim]]: <code>dim:N</code> (diameter in meters)
*[[Template:Coord#region:R|region]]: <code>region:XX_</code> (uses [[ISO 3166-2]] code)
*[[Template:Coord#region:R|region]]: <code>region:XX</code> (uses [[ISO 3166-2]] code)
*[[Template:Coord#type:T|type]]: <code>type:XXX</code>
*[[Template:Coord#type:T|type]]: <code>type:XXX</code>
*[[Template:Coord#Display|display]]: <code>|display=inline,title</code> or variant
*[[Template:Coord#Display|display]]: <code>|display=inline,title</code> or variant

Revision as of 16:32, 12 October 2009

Quick "how to"
To add the coordinates 57°18′22"N 4°27′32"W to the top of an article, use
{{coord|57|18|22|N|4|27|32|W|display=title}}

These coordinates are in the format degrees/minutes/seconds

For decimal coordinates, such as 44.112°N 86.913°W, use one of
{{coord|44.112|N|87.913|W|display=title}}
{{coord|44.112|-87.913|display=title}}
Values (including degrees, minutes and seconds) are separated by a pipe ("|").
Latitude (N/S) before longitude (E/W). Map datum is WGS84.
To display the coordinates in the article as well, use "display=inline,title" instead of "display=title".
Avoid excessive precision (0.0001° is <11 m, 1′′ is <31 m).
Optional parameters are separated by an underscore ("_"):

Full example: {{coord|44.112|-87.913|dim:30_region:US-WI_type:landmark|display=inline,title}}

For full details on the use of {{coord}}, see Template:Coord

See also: Obtaining coordinates, coordinate conversion
For non-terrestrial coordinates, see Other globes