2,175
edits
(Remove languages) |
(Fix up some links) |
||
Line 1: | Line 1: | ||
{{shortcut|WP:COORD}} | <!-- {{shortcut|WP:COORD}} | ||
== Quick guide == | == Quick guide == | ||
{{coord how-to}} | {{coord how-to}} | ||
--> | |||
__TOC__ | __TOC__ | ||
== Purpose == | == Purpose == | ||
{{Tl|Coord}} provides a standard notation for encoding locations by their {{Wpd|Latitude}} and {{Wpd|Longitude}} coordinates. It is primarily for specifying the {{Wpd|World Geodetic System|WGS84}} geographic coordinates of locations on {{Wpd|Earth}}. However, it can also encode locations on natural satellites, dwarf planets, and planets other than Earth. | |||
<!-- | |||
*To specify celestial coordinates, use {{tl|sky}} instead. | *To specify celestial coordinates, use {{tl|sky}} instead. | ||
*Tag articles which lack coordinates (but need them) with {{tl|coord missing}}. | *Tag articles which lack coordinates (but need them) with {{tl|coord missing}}. | ||
Line 16: | Line 16: | ||
See also [[wikipedia:WikiProject Geographical coordinates|RTENOTITLE]]. | See also [[wikipedia:WikiProject Geographical coordinates|RTENOTITLE]]. | ||
--> | |||
== Features == | == Features == | ||
Latitude and longitude may be specified (with appropriate precision) either in decimal notation or as degrees/minutes/seconds. By default, coordinates appear in the format used to specify them. However, the <code>format=</code> parameter can be used to force display in a particular format. | Latitude and longitude may be specified (with appropriate precision) either in decimal notation or as degrees/minutes/seconds. By default, coordinates appear in the format used to specify them. However, the <code>format=</code> parameter can be used to force display in a particular format. | ||
The template displays the formatted coordinates with a | The template displays the formatted coordinates with a {{Wpd|Hyperlink}} to <!--[[Tswiki:GeoHack|GeoHack]] -->[http://wiki.toolserver.org/view/GeoHack GeoHack]. GeoHack displays information customized to the location, including links to external mapping services. | ||
<!-- NOT IMPLEMENTED -- For {{Wpd|Terrestrial}} locations, a blue globe ([[Image:Erioll world.svg|18px]]) appears to the left of the hyperlink. Clicking on the globe activates the [[:meta:WikiMiniAtlas|WikiMiniAtlas]] (requires {{Wpd|JavaScript}}). | |||
--> | |||
By default, coordinates appear "in line" with the adjacent text. However, the <code>display=</code> parameter can be used to move the coordinates up near the page title—or display them in both places at once. | By default, coordinates appear "in line" with the adjacent text. However, the <code>display=</code> parameter can be used to move the coordinates up near the page title—or display them in both places at once. | ||
Line 31: | Line 31: | ||
*Degree/minutes/seconds ("DMS", precision is degrees, or degrees/minutes, or degrees/minutes/seconds, based on input precision). | *Degree/minutes/seconds ("DMS", precision is degrees, or degrees/minutes, or degrees/minutes/seconds, based on input precision). | ||
*Decimal degrees (varying the number of decimal places based on input precision) | *Decimal degrees (varying the number of decimal places based on input precision) | ||
* | *{{Wpd|Geo (microformat)|Geo microformat}}. | ||
Logged-in users can customize how coordinates appear in their browsers. | Logged-in users can customize how coordinates appear in their browsers. | ||
== Caveats == | == Caveats == | ||
The template '''must not''' be modified without prior discussion. | The template '''must not''' be modified without prior discussion. | ||
Line 41: | Line 41: | ||
Tools which read Wikipedia database dumps (such as [[Google Earth]]) often ignore inline coordinates. To ensure that coordinates are seen by these tools, one set should be displayed in the title. See [http://earth.google.com/userguide/v4/geoweb_faq.html How do I get my Wikipedia article to show up in the Google Earth Geographic Web layer?]. However, if multiple title coordinates appear on a single page, they will overlap, making them illegible. | Tools which read Wikipedia database dumps (such as [[Google Earth]]) often ignore inline coordinates. To ensure that coordinates are seen by these tools, one set should be displayed in the title. See [http://earth.google.com/userguide/v4/geoweb_faq.html How do I get my Wikipedia article to show up in the Google Earth Geographic Web layer?]. However, if multiple title coordinates appear on a single page, they will overlap, making them illegible. | ||
== Superseded templates == | == Superseded templates == | ||
This single template supersedes {{tl|coor d}}, (and others in that family which have since been redirected to it), plus the [{{fullurl:Special:PrefixIndex|from=Geolinks&namespace=10}} Geolinks] and [{{fullurl:Special:PrefixIndex|from=Mapit&namespace=10}} Mapit] templates. Most parameters can be used as before – see [[#Usage|Usage]]. | This single template supersedes {{tl|coor d}}, (and others in that family which have since been redirected to it), plus the [{{fullurl:Special:PrefixIndex|from=Geolinks&amp;namespace=10}} Geolinks] and [{{fullurl:Special:PrefixIndex|from=Mapit&amp;namespace=10}} Mapit] templates. Most parameters can be used as before – see [[#Usage|Usage]]. | ||
Examples: | Examples: | ||
Line 49: | Line 49: | ||
{| class="wikitable FCK__ShowTableBorders" | {| class="wikitable FCK__ShowTableBorders" | ||
|- | |- | ||
| {{coord|10.2|N|-20.3|E|'''type:'''city}} | | {{coord|10.2|N|-20.3|E|'''type:'''city}} | ||
| Replaces {{coor d|10.2|N|-20.3|E|city}} | | Replaces {{coor d|10.2|N|-20.3|E|city}} | ||
|- | |- | ||
| {{coord|44.4|-111.1|'''type:city_region:US'''|display=inline,title}} | | {{coord|44.4|-111.1|'''type:city_region:US'''|display=inline,title}} | ||
| Replaces {{Geolinks-'''US-cityscale'''|44.4|-111.1}} | | Replaces {{Geolinks-'''US-cityscale'''|44.4|-111.1}} | ||
|- | |- | ||
| {{coord|51.01234|-1.56789|'''type:landmark_region:GB'''|display=inline,title}} | | {{coord|51.01234|-1.56789|'''type:landmark_region:GB'''|display=inline,title}} | ||
| Replaces {{Geolinks-'''UK-buildingscale'''|51.01234|-1.56789}} | | Replaces {{Geolinks-'''UK-buildingscale'''|51.01234|-1.56789}} | ||
|- | |- | ||
| {{coord|-35.5|150.1|'''type:landmark_region:AU'''|display=inline,title}} | | {{coord|-35.5|150.1|'''type:landmark_region:AU'''|display=inline,title}} | ||
| Replaces {{Mapit-'''AUS-suburbscale'''|lat=-35.5|long=150.1}} | | Replaces {{Mapit-'''AUS-suburbscale'''|lat=-35.5|long=150.1}} | ||
|- | |- | ||
| {{coord|12|34|12|N|45|33|45|W|'''display=title'''}} | | {{coord|12|34|12|N|45|33|45|W|'''display=title'''}} | ||
| Replaces {{'''CoorHeader'''|12|34|12|N|45|33|45|W}} | | Replaces {{'''CoorHeader'''|12|34|12|N|45|33|45|W}} | ||
|} | |} | ||
Line 163: | Line 163: | ||
|} | |} | ||
=== References === | === References === | ||
{{reflist}} | {{reflist}} | ||
Line 195: | Line 195: | ||
{{Coord-doc-source}} | {{Coord-doc-source}} | ||
== Per-user display customization == | == Per-user display customization == | ||
{{UF-coord-classes}} | {{UF-coord-classes}} | ||
== Incorrect uses and maintenance category == | == Incorrect uses and maintenance category == | ||
The template has some input checks built in. Most errors display a <font color="#ff0000">'''bold, red'''</font> message inline and categorize the article in the [[wikipedia:Hidden category|hidden]] [[wikipedia:Categorization|maintenance category]] '''[[:Category:Coord template needing repair|Coord template needing repair]]'''. There is/are currently '''{{PAGESINCATEGORY:Coord_template_needing_repair}}''' page(s) in that category. See the category description for further instructions. | The template has some input checks built in. Most errors display a <font color="#ff0000">'''bold, red'''</font> message inline and categorize the article in the [[wikipedia:Hidden category|hidden]] [[wikipedia:Categorization|maintenance category]] '''[[:Category:Coord template needing repair|Coord template needing repair]]'''. There is/are currently '''{{PAGESINCATEGORY:Coord_template_needing_repair}}''' page(s) in that category. See the category description for further instructions. | ||
Line 207: | Line 207: | ||
''See also:'' [[WT:GEO#To_do]] | ''See also:'' [[WT:GEO#To_do]] | ||
== Internals == | == Internals == | ||
See [[Template:Coord/doc/internals]] and [[:Category:Coord template]]. | See [[Template:Coord/doc/internals]] and [[:Category:Coord template]]. | ||
=== Subtemplates === | === Subtemplates === | ||
{{Coord/sub doc}} | {{Coord/sub doc}} | ||
=== Coordinates in PDF === | === Coordinates in PDF === | ||
For generating PDF, printed books, and Open Office export format, two templates are [[Help:Books/for experts#Improving_the_book_layout|substituted for the regular templates]]: | For generating PDF, printed books, and Open Office export format, two templates are [[Help:Books/for experts#Improving_the_book_layout|substituted for the regular templates]]: | ||
Line 228: | Line 228: | ||
*[[Help:Books/Feedback/Tests/coord 2]] | *[[Help:Books/Feedback/Tests/coord 2]] | ||
=== Class names === | === Class names === | ||
The class names '''geo''', '''latitude''' and '''longitude''' are used to generate the microformat and '''MUST NOT''' be changed. <includeonly> | The class names '''geo''', '''latitude''' and '''longitude''' are used to generate the microformat and '''MUST NOT''' be changed. <includeonly> |
edits