18,519
edits
m (1 revision: import from en.wikipedia) |
m (Robot: Automated text replacement (-\[\[Degree Confluence Project\|([\w|\s]*)\]\] +\1); cosmetic changes) |
||
Line 1: | Line 1: | ||
{{shortcut|WP:COORD}} | {{shortcut|WP:COORD}} | ||
==Quick guide== | == Quick guide == | ||
{{coord how-to}} | {{coord how-to}} | ||
Line 7: | Line 7: | ||
__TOC__ | __TOC__ | ||
==Purpose== | == Purpose == | ||
This template, {{tld|coord}}, produces a link to a list of map sources, based on the geographical coordinates and other parameters, and provides a standardized notation for, and user-customisable display of, the coordinates. | This template, {{tld|coord}}, produces a link to a list of map sources, based on the geographical coordinates and other parameters, and provides a standardized notation for, and user-customisable display of, the coordinates. | ||
The template is for [[World Geodetic System|WGS84]] geographical coordinates ([[latitude]];[[longitude]]) on [[Earth]], which can be entered in either decimal notation, or degrees/minutes/seconds parameters, with the appropriate precision. (For non-terrestrial coordinates, see [[Wikipedia:WikiProject Geographical coordinates#globe:G|Other globes]]; for celestial coordinates, use {{Tl|Sky}}.) | The template is for [[World Geodetic System|WGS84]] geographical coordinates ([[latitude]];[[longitude]]) on [[Earth]], which can be entered in either decimal notation, or degrees/minutes/seconds parameters, with the appropriate precision. (For non-terrestrial coordinates, see [[Wikipedia:WikiProject Geographical coordinates#globe:G|Other globes]]; for celestial coordinates, use {{Tl|Sky}}.) | ||
It links to {{Coor URL}}, then displays the coordinates. Clicking the blue globe [[Image: | It links to {{Coor URL}}, then displays the coordinates. Clicking the blue globe [[Image:Erioll world.svg|18px]] activates the [[:meta:WikiMiniAtlas|WikiMiniAtlas]] (needs Javascript). | ||
The template outputs data in: | The template outputs data in: | ||
Line 25: | Line 25: | ||
See also [[Wikipedia:WikiProject Geographical coordinates]]. | See also [[Wikipedia:WikiProject Geographical coordinates]]. | ||
==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&namespace=10}} Geolinks] and [{{fullurl:Special:PrefixIndex|from=Mapit&namespace=10}} Mapit] templates. Most parameters can be used as before - see [[#Usage|Usage]]. | ||
Line 31: | Line 31: | ||
Examples: | Examples: | ||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr><td> | <tr><td>{{coord|10.2|N|-20.3|E|'''type:'''city}}</td><td>Replaces {{coor d|10.2|N|-20.3|E|city}}</td></tr> | ||
<tr><td> | <tr><td>{{coord|44.4|-111.1|'''type:city_region:US'''|display=inline,title}}</td><td>Replaces {{Geolinks-'''US-cityscale'''|44.4|-111.1}}</td></tr> | ||
<tr><td> | <tr><td>{{coord|51.01234|-1.56789|'''type:landmark_region:GB'''|display=inline,title}}</td><td>Replaces {{Geolinks-'''UK-buildingscale'''|51.01234|-1.56789}}</td></tr> | ||
<tr><td> | <tr><td>{{coord|-35.5|150.1|'''type:landmark_region:AU'''|display=inline,title}}</td><td>Replaces {{Mapit-'''AUS-suburbscale'''|lat=-35.5|long=150.1}}</td></tr> | ||
<tr><td> | <tr><td>{{coord|12|34|12|N|45|33|45|W|'''display=title'''}}</td><td>Replaces {{'''CoorHeader'''|12|34|12|N|45|33|45|W}}</td></tr> | ||
</table> | </table> | ||
== Usage == | == Usage == | ||
''' | '''{{coord|'''''latitude'''''|'''''longitude'''''|'''''[[#1|coordinate parameters]]'''''|'''''[[#2|template parameters]]'''''}}''' | ||
''' | '''{{coord|'''''dd'''''|'''''N/S'''''|'''''dd'''''|'''''E/W'''''|'''''[[#1|coordinate parameters]]'''''|'''''[[#2|template parameters]]'''''}}''' | ||
''' | '''{{coord|'''''dd'''''|'''''mm'''''|'''''N/S'''''|'''''dd'''''|'''''mm'''''|'''''E/W'''''|'''''[[#1|coordinate parameters]]'''''|'''''[[#2|template parameters]]'''''}}''' | ||
''' | '''{{coord|'''''dd'''''|'''''mm'''''|'''''ss'''''|'''''N/S'''''|'''''dd'''''|'''''mm'''''|'''''ss'''''|'''''E/W'''''|'''''[[#1|coordinate parameters]]'''''|'''''[[#2|template parameters]]'''''}}''' | ||
There are two kinds of parameters, all optional: | There are two kinds of parameters, all optional: | ||
Line 58: | Line 58: | ||
::* <code>display=title</code> - Display the coordinate near the article title (replaces {{tl|coor title dms}} family), shortcut: <code>display=t</code> | ::* <code>display=title</code> - Display the coordinate near the article title (replaces {{tl|coor title dms}} family), shortcut: <code>display=t</code> | ||
::* <code>display=inline,title</code> - Display the coordinate both inline and at title (replaces {{tl|coor at dms}} family) | ::* <code>display=inline,title</code> - Display the coordinate both inline and at title (replaces {{tl|coor at dms}} family) | ||
::Note: the <code>title</code> attribute indicates that the coordinates apply to the entire article, and not just one of (perhaps many) places mentioned in it | ::Note: the <code>title</code> attribute indicates that the coordinates apply to the entire article, and not just one of (perhaps many) places mentioned in it — so it should only be omitted in the latter case. <code>display=title,inline</code> works also. Shortcut: <code>display=it</code> | ||
:* '''format=''' can be used to force ''dec'' or ''dms'' coordinate display. | :* '''format=''' can be used to force ''dec'' or ''dms'' coordinate display. | ||
::* <code>format=dec</code> reformats the coordinates to <span style="text-decoration:underline;">decimal degrees</span> format. | ::* <code>format=dec</code> reformats the coordinates to <span style="text-decoration:underline;">decimal degrees</span> format. | ||
Line 108: | Line 108: | ||
| Decimal conversion without N/S/E/W | | Decimal conversion without N/S/E/W | ||
|- | |- | ||
| <code><nowiki>{{coord|55.752222|N|37.615556|E| | | <code><nowiki>{{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}}</nowiki></code> | ||
| {{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} | | {{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} | ||
| Convert to decimal and label on some maps | | Convert to decimal and label on some maps | ||
Line 126: | Line 126: | ||
| <code><nowiki>{{coord|22|S|43|W}}</nowiki></code> | | <code><nowiki>{{coord|22|S|43|W}}</nowiki></code> | ||
| {{coord|22|S|43|W}} | | {{coord|22|S|43|W}} | ||
| A | | A degree confluence. | ||
|- | |- | ||
| <code><nowiki>{{coord|52|28|N|1|55|W|notes=<ref>{{cite web|url=http://www.fallingrain.com/world/UK/0/Birmingham.html|title=Birmingham}}</ref>|display=inline,title|region:GB_type:city}}</nowiki></code> | | <code><nowiki>{{coord|52|28|N|1|55|W|notes=<ref>{{cite web|url=http://www.fallingrain.com/world/UK/0/Birmingham.html|title=Birmingham}}</ref>|display=inline,title|region:GB_type:city}}</nowiki></code> | ||
Line 133: | Line 133: | ||
|} | |} | ||
===References=== | === References === | ||
{{reflist}} | {{reflist}} | ||
Line 163: | Line 163: | ||
{{Coord-doc-source}} | {{Coord-doc-source}} | ||
==Display== | == Display == | ||
{{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=red><b>bold, red</b></font> message inline and categorize the article in the [[Wikipedia:Hidden category|hidden]] [[Wikipedia:Categorization#Maintenance_categories|maintenance category]] '''[[:Category:Coord template needing repair|Coord template needing repair]]'''. There are currently '''{{PAGESINCATEGORY:Coord_template_needing_repair}}''' pages in that category. See the category description for more information. | The template has some input checks built in. Most errors display a <font color=red><b>bold, red</b></font> message inline and categorize the article in the [[Wikipedia:Hidden category|hidden]] [[Wikipedia:Categorization#Maintenance_categories|maintenance category]] '''[[:Category:Coord template needing repair|Coord template needing repair]]'''. There are currently '''{{PAGESINCATEGORY:Coord_template_needing_repair}}''' pages in that category. See the category description for more information. | ||
Line 174: | Line 174: | ||
''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]]: | ||
*[[Template:Coord/display/title/Print]] for {{tl|Coord/display/title}} | *[[Template:Coord/display/title/Print]] for {{tl|Coord/display/title}} | ||
Line 190: | Line 190: | ||
*[[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. | The class names '''geo''', '''latitude''' and '''longitude''' are used to generate the microformat and '''MUST NOT''' be changed. | ||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
[[af:Sjabloon:Coord]] | [[af:Sjabloon:Coord]] | ||
Line 207: | Line 202: | ||
[[bs:Template:coord]] | [[bs:Template:coord]] | ||
[[ca:Template:Coord]] | [[ca:Template:Coord]] | ||
[[es:Plantilla:Coord]] | [[es:Plantilla:Coord]] | ||
[[fur:Model:Coord]] | [[fur:Model:Coord]] | ||
[[hsb:Předłoha:Koord]] | [[hsb:Předłoha:Koord]] | ||
[[ia:Patrono:Coord]] | [[ia:Patrono:Coord]] | ||
[[ja:Template:Coord]] | [[ja:Template:Coord]] | ||
[[ko:틀:coord]] | [[ko:틀:coord]] | ||
[[no:Mal:Koordinater]] | [[no:Mal:Koordinater]] | ||
[[pl:Szablon:Koordynaty]] | [[pl:Szablon:Koordynaty]] | ||
[[ro:Format:Coord]] | [[ro:Format:Coord]] | ||
[[ru:Template:Coord]] | [[ru:Template:Coord]] | ||
[[simple:Template:Coord]] | [[simple:Template:Coord]] | ||
[[sl:Predloga:Koord]] | [[sl:Predloga:Koord]] | ||
[[vo:Samafomot:Coord]] | [[vo:Samafomot:Coord]] | ||
[[zh:Template:Coord]] | [[zh:Template:Coord]] | ||
</includeonly> | </includeonly> | ||
[[Category:Coord template]] |