Template:Coord/doc and Prince's Cairn: Difference between pages

From Wikipedia, the free encyclopedia
(Difference between pages)
Content deleted Content added
Docu (talk | contribs)
 
Dwwaddell (talk | contribs)
No edit summary
 
Line 1: Line 1:
== Cairn at Loch nan Uamh ==
{{shortcut|WP:COORD}}
{{TOCright}}


On 19th September 1746, Charles arrived from "Cluny's Cage," that wonderful refuge on Ben Alder, accompanied by Locheil, John Roy Stewart, and others. There they found L'Heureux, the French frigate that was to carry him to safety. All that day, the 19th, they embarked the refugees that were to accompany the Prince into exile., and on the 20th they sailed away from Scotland. The Prince never saw it again, except perhaps in the dreams which may have helped to mitigate the bitterness of his later life.
==Quick guide==


[[Image:Cairn_princes_cairn_sign.jpg‎]]
{{coord how-to}}
At this place Prince Charles departed for France (20 Sept 1746 O.S.)


(Erected by [http://www.1745association.org.uk 1745 Association]/)
==Purpose==

This template, {{tl|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 {{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:
* 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 [[Template_talk:Coord/doc#template:Coord/dec2dms/dms|talk]])
* Decimal (precision by number of decimal places, based on input)
* [[Geo (microformat)|Geo microformat]].

{{tl|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 [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?]. The template '''must not''' be modified without prior discussion.

For articles which have no coordinates, but need them, use {{tl|coord missing}}.

See also [[Wikipedia:WikiProject Geographical coordinates]].

== 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:

*<span id="1">'''Coordinate parameters'''</span>: Recognised 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|Coordinate Parameters]] for a comprehensive list.

*<span id="2">'''Template parameters'''</span>: 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:
*** <code>display=inline</code> - Display the coordinate inline (default)
*** <code>display=title</code> - Display the coordinate by 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) <br> Note: using the <code>title</code> 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. <code>display=title,inline</code> works also. Shortcut: <code>display=it</code>
** ''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.

== Examples ==
{| class="prettytable"
| <code><nowiki>{{coord|43.651234|-79.383333}}</nowiki></code>
| {{coord|43.651234|-79.383333}}
| Toronto - Fully decimal - N & W
|-
| <code><nowiki>{{coord|43.65|-79.38}}</nowiki></code>
| {{coord|43.65|-79.38}}
| Toronto - less precise
|-
| <code><nowiki>{{coord|43.6500|-79.3800}}</nowiki></code>
| {{coord|43.6500|-79.3800}}
| Toronto - medium precision with trailing zeroes
|-
| <code><nowiki>{{coord|43.651234|N|79.383333|W}}</nowiki></code>
| {{coord|43.651234|N|79.383333|W}}
| Toronto - decimal with Northing & Westing
|-
| <code><nowiki>{{coord|43|29|N|79|23|W}}</nowiki></code>
| {{coord|43|29|N|79|23|W}}
| Toronto - degrees & minutes
|-
| <code><nowiki>{{coord|43|29|4|N|79|23|0|W}}</nowiki></code>
| {{coord|43|29|4|N|79|23|0|W}}
| Toronto - degrees, minutes & seconds
|-
| <code><nowiki>{{coord|43|29|4.5|N|79|23|0.5|W}}</nowiki></code>
| {{coord|43|29|4.5|N|79|23|0.5|W}}
| Toronto - degrees, minutes, seconds & fractions of seconds
|-
| <code><nowiki>{{coord|55.752222|N|37.615556|E}}</nowiki></code>
| {{coord|55.752222|N|37.615556|E}}
| Moscow - N & E
|-
| <code><nowiki>{{coord|55.752222|N|37.615556|E|format=dms}}</nowiki></code>
| {{coord|55.752222|N|37.615556|E|format=dms}}
| Convert to dms format
|-
| <code><nowiki>{{coord|39.098095|-94.587307|format=dms}}</nowiki></code>
| {{coord|39.098095|-94.587307|format=dms}}
| Decimal conversion without N/S/E/W
|-
| <code><nowiki>{{coord|55.752222|N|37.615556|E|&#8203;format=dec|name=Moscow}}</nowiki></code>
| {{coord|55.752222|N|37.615556|E|format=dec|name=Moscow}}
| Convert to decimal and label on some maps
|-
| <code><nowiki>{{coord|33|55|S|18|25|E}}</nowiki></code>
| {{coord|33|55|S|18|25|E}}
| Cape Town - S & E
|-
| <code><nowiki>{{coord|35|00|N|105|00|E}}</nowiki></code>
| {{coord|35|00|N|105|00|E}}
| China, People's Republic of
|-
| <code><nowiki>{{coord|22|54|30|S|43|14|37|W}}</nowiki></code>
| {{coord|22|54|30|S|43|14|37|W}}
| Rio - S & W
|-
| <code><nowiki>{{coord|22|S|43|W}}</nowiki></code>
| {{coord|22|S|43|W}}
| A [[Degree Confluence Project|degree confluence]]
|-
| <code><nowiki>{{coord|52|28|59|N|1|53|37|W|&#8203;display=inline,title|region:GB_type:city}}</nowiki></code>
| {{coord|52|28|59|N|1|53|37|W|display=inline,title|region:GB_type:city}}
| Birmingham - with display and parameter settings; note display also in title of this page.
|}

== 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 [http://meta.wikimedia.org/wiki/Category:Wikimaps Wikimaps] become fully functional.

===== type:''T'' =====

{{coord-doc-type}}

===== scale:''N'' =====

{{Coord-doc-scale}}

===== region:''R'' =====

{{Coord-doc-region}}

===== globe:''G'' =====

{{Coord-doc-globe}}

===== source:''S'' =====

{{Coord-doc-source}}

==Display==

By default coordinates are displayed in the format in which they are specified.

To always display coordinates as DMS values, add this to [[Special:Mypage/monobook.css|your monobook.css]]:
:<code>.geo-default { display: inline } .geo-nondefault { display: inline } <br />.geo-dec { display: none } .geo-dms { display: inline }</code>

To always display coordinates as decimal values, add this to [[Special:Mypage/monobook.css|your monobook.css]]:
:<code>.geo-default { display: inline } .geo-nondefault { display: inline }<br />.geo-dec { display: inline } .geo-dms { display: none }</code>

To display coordinates in both formats, add this to [[Special:Mypage/monobook.css|your monobook.css]]:
:<code>.geo-default { display: inline } .geo-nondefault { display: inline }<br />.geo-dec { display: inline } .geo-dms { display: inline }<br />.geo-multi-punct { display: inline }</code>

If CSS is disabled, or you have an old copy of [[MediaWiki:Common.css]] cached, you will see both formats. (The cache for Common.css takes 31 days to expire, and the changes were made 2007-04-04. You can either clear your cache or manually refresh this URL: [http://en.wikipedia.org/w/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400].)

See also [[Wikipedia:Manual of Style (dates and numbers)#Geographical coordinates]].

==Incorrect uses and maintenance category==

The template has a few input checks built in. Basic errors display the message on [[Template:Coord/input/ERROR|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 [[Wikipedia:Categorization#Maintenance_categories|maintenance category]] '''[[:Category:Coord template needing repair|Coord template needing repair]]'''. See the category description for more details. There are currently '''{{PAGESINCATEGORY:Coord_template_needing_repair}}''' pages in that category.

==Subtemplates==
See [[:Category:Coord template]]

{|
! name
! function
|-
| [[Template:Coord/input/d|Coord/input/d]]
| converts coordinates from input in degrees format <nowiki>{{coord|12|N|12|W}}</nowiki>
|-
| [[Template:Coord/input/dm|Coord/input/dm]]
| converts coordinates from input in degrees/minutes format <nowiki>{{coord|12|12|N|12|12|W}}</nowiki>
|-
| [[Template:Coord/input/dms|Coord/input/dms]]
| converts coordinates from input in degrees/minutes/seconds format <nowiki>{{coord|12|12|12|N|12|12|12|W}}</nowiki>
|-
| [[Template:Coord/display/inline|Coord/display/inline]]
| creates output to display coordinates inline
|-
| [[Template:Coord/display/title|Coord/display/title]]
| creates output to display above the article (generally to the right of the article's title)
|-
| [[Template:Coord/display/inline,title|Coord/display/inline,title]]
| creates output to display coordinates inline and above the article
|}

==Superseded templates==

This single template supersedes {{tl|coor d}}, {{tl|coor dm}}, {{tl|coor dms}}, {{tl|coor at d}}, {{tl|coor at dm}}, {{tl|coor at dms}}, {{tl|coor title d}}, {{tl|coor title dm}}, {{tl|coor title dms}}, and the [http://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&from=Geolinks&namespace=10 Geolinks] and [http://en.wikipedia.org/w/index.php?title=Special:PrefixIndex&from=Mapit&namespace=10 Mapit] templates. All parameters can be used as before - see [[#Usage|Usage]].

Examples:
<table class="wikitable">
<tr><td>&#123;{coord|12|N|45|W|'''display=title'''}&#125;</td><td>Replaces &#123;{coor '''title''' d|12|N|45|W}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|12|34|N|45|33|W|'''display=title'''}&#125;</td><td>Replaces &#123;{coor '''title''' dm|12|34|N|45|33|W}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|12|34|56|N|45|33|22|W|'''display=title'''}&#125;</td><td>Replaces &#123;{coor '''title''' dms|12|34|56|N|45|33|8|W}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|12|34|12|N|45|33|45|W|'''display=inline,title'''}&#125;</td><td>Replaces &#123;{coor '''at''' dms|12|34|12|N|45|33|45|W}&#125;</td><td>{{done}}</td></tr>

<tr><td>&#123;{coord|10.2|-20.3|'''display=inline'''}&#125; or &#123;{coord|10.2|-20.3}&#125;</td><td>Replaces &#123;{coor d|10.2|N|-20.3|E}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|44.4|-111.1|'''type:city_region:US'''|display=inline,title}&#125;</td><td>Replaces &#123;{Geolinks-'''US-cityscale'''|44.4|-111.1}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|51.01234|-1.56789|'''type:landmark_region:GB'''|display=inline,title}&#125;</td><td>Replaces &#123;{Geolinks-'''UK-buildingscale'''|51.01234|-1.56789}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|-35.5|150.1|'''type:landmark_region:AU'''|display=inline,title}&#125;</td><td>Replaces &#123;{Mapit-'''AUS-suburbscale'''|lat=-35.5|long=150.1}&#125;</td><td></td></tr>

<tr><td>&#123;{coord|12|34|12|N|45|33|45|W|'''display=title'''}&#125;</td><td>Replaces &#123;{'''CoorHeader'''|12|34|12|N|45|33|45|W}&#125;</td><td>{{done}}</td></tr>

</table>

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

==External links==
* [http://earth.google.com/userguide/v4/geoweb_faq.html Google Earth Geographic Web Layer FAQ] &ndash; Information on how Google uses Wikipedia's coordinate information.

[[Category:Coord template]]
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Protected templates|{{PAGENAME}}]]
[[Category:Coord template|{{PAGENAME}}]]
[[Category:Coordinates templates|{{PAGENAME}}]]
[[Category:Templates generating Geo|{{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[af:Sjabloon:Coord]]
[[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]]
[[pl:Szablon:Koordynaty]]
[[ro:Format:Coord]]
[[ru:Template:Coord]]
[[simple:Template:Coord]]
[[sl:Predloga:Koord]]
[[sv:Mall:Coord]]
[[uk:Шаблон:Координати]]
[[vo:Samafomot:Coord]]
[[zh:Template:Coord]]
</includeonly>

Revision as of 16:59, 12 October 2008

Cairn at Loch nan Uamh

On 19th September 1746, Charles arrived from "Cluny's Cage," that wonderful refuge on Ben Alder, accompanied by Locheil, John Roy Stewart, and others. There they found L'Heureux, the French frigate that was to carry him to safety. All that day, the 19th, they embarked the refugees that were to accompany the Prince into exile., and on the 20th they sailed away from Scotland. The Prince never saw it again, except perhaps in the dreams which may have helped to mitigate the bitterness of his later life.

At this place Prince Charles departed for France (20 Sept 1746 O.S.)

(Erected by 1745 Association/)