Template:Coord/doc: Difference between revisions

Fix up some links
(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 ==
 
{{Tld|Coord}} provides a standard notation for encoding locations by their [[Latitude]] and [[Longitude]] coordinates. It is primarily for specifying the [[World Geodetic System|WGS84]] geographic coordinates of locations on [[Earth]]. However, it can also encode locations on natural satellites, dwarf planets, and planets other than Earth.


{{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 [[Hyperlink]] to [[Tswiki:GeoHack|GeoHack]]. GeoHack displays information customized to the location, including links to external mapping services.
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.  
 
For [[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 [[JavaScript]]).  


<!-- 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)  
*[[Geo (microformat)|Geo microformat]].
*{{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&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]].  
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;amp;namespace=10}} Geolinks] and [{{fullurl:Special:PrefixIndex|from=Mapit&amp;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&#124;10.2&#124;N&#124;-20.3&#124;E&#124;'''type:'''city}}
| {{coord&#124;10.2&#124;N&#124;-20.3&#124;E&#124;'''type:'''city}}  
| Replaces {{coor d&#124;10.2&#124;N&#124;-20.3&#124;E&#124;city}}
| Replaces {{coor d&#124;10.2&#124;N&#124;-20.3&#124;E&#124;city}}
|-
|-
| {{coord&#124;44.4&#124;-111.1&#124;'''type:city_region:US'''&#124;display=inline,title}}
| {{coord&#124;44.4&#124;-111.1&#124;'''type:city_region:US'''&#124;display=inline,title}}  
| Replaces {{Geolinks-'''US-cityscale'''&#124;44.4&#124;-111.1}}
| Replaces {{Geolinks-'''US-cityscale'''&#124;44.4&#124;-111.1}}
|-
|-
| {{coord&#124;51.01234&#124;-1.56789&#124;'''type:landmark_region:GB'''&#124;display=inline,title}}
| {{coord&#124;51.01234&#124;-1.56789&#124;'''type:landmark_region:GB'''&#124;display=inline,title}}  
| Replaces {{Geolinks-'''UK-buildingscale'''&#124;51.01234&#124;-1.56789}}
| Replaces {{Geolinks-'''UK-buildingscale'''&#124;51.01234&#124;-1.56789}}
|-
|-
| {{coord&#124;-35.5&#124;150.1&#124;'''type:landmark_region:AU'''&#124;display=inline,title}}
| {{coord&#124;-35.5&#124;150.1&#124;'''type:landmark_region:AU'''&#124;display=inline,title}}  
| Replaces {{Mapit-'''AUS-suburbscale'''&#124;lat=-35.5&#124;long=150.1}}
| Replaces {{Mapit-'''AUS-suburbscale'''&#124;lat=-35.5&#124;long=150.1}}
|-
|-
| {{coord&#124;12&#124;34&#124;12&#124;N&#124;45&#124;33&#124;45&#124;W&#124;'''display=title'''}}
| {{coord&#124;12&#124;34&#124;12&#124;N&#124;45&#124;33&#124;45&#124;W&#124;'''display=title'''}}  
| Replaces {{'''CoorHeader'''&#124;12&#124;34&#124;12&#124;N&#124;45&#124;33&#124;45&#124;W}}
| Replaces {{'''CoorHeader'''&#124;12&#124;34&#124;12&#124;N&#124;45&#124;33&#124;45&#124;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>
2,175

edits