|
|
(13 intermediate revisions by 4 users not shown) |
Line 13: |
Line 13: |
| *If the subject's location is truly unknown or disputed, note this with {{tl|coord unknown}}. | | *If the subject's location is truly unknown or disputed, note this with {{tl|coord unknown}}. |
|
| |
|
| See also [[wikipedia:WikiProject Geographical coordinates|RTENOTITLE]]. | | See also [[wikipedia:WikiProject Geographical coordinates]]. |
|
| |
|
| == Features == | | == Features == |
Line 19: |
Line 19: |
| 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 {{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}}). | | 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.png|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 44: |
Line 44: |
| {| 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 88: |
Line 88: |
| :*'''name=''' can be used to annotate inline coordinates for display in map services such as the [[:meta:WikiMiniAtlas|WikiMiniAtlas]]. If omitted, the article title (PAGENAME) is assumed. | | :*'''name=''' can be used to annotate inline coordinates for display in map services such as the [[:meta:WikiMiniAtlas|WikiMiniAtlas]]. If omitted, the article title (PAGENAME) is assumed. |
| ::Note: a ''name='' parameter causes {{tl|Coord}} to emit an [[HCard]] [[Microformat]] using that name, ''even if used within an existing hCard''. Do not use when the name is that of a person (e.g for a gravesite), as the generated hCard would be invalid. Also, do not use square brackets in names. | | ::Note: a ''name='' parameter causes {{tl|Coord}} to emit an [[HCard]] [[Microformat]] using that name, ''even if used within an existing hCard''. Do not use when the name is that of a person (e.g for a gravesite), as the generated hCard would be invalid. Also, do not use square brackets in names. |
| :*'''notes=''' specifies text to be displayed immediately following the coordinates. This is primarily intended for adding footnotes to title coordinates. | | :*'''notes=''' specifies text to be displayed immediately following the coordinates. This is primarily intended for adding footnotes to title coordinates. |
| :*'''pre-link-text=''' specifies text to be displayed in place of the coordinates. This is only used when display is set to text and for overriding the default. The default is no text. | | :The following are only used when <code>format=text</code> and for overriding the defaults. They allow specifying the text to be displayed in place of just the coordinates. Spaces at the beginning or end of the string requires a '&nbsp;' instead of a plain space.: |
| :*'''link-text=''' specifies text to be displayed in place of the coordinates. This is only used when display is set to text and for overriding the default. The default is 'Click here' | | :*'''pre-link-text=''' The default is no text. |
| :*'''post-link-text=''' specifies text to be displayed in place of the coordinates. This is only used when display is set to text and for overriding the default. The default is ' to view information about this location'. | | :*'''link-text=''' The default is 'Click here' |
| | :*'''post-link-text=''' The default is '&nbsp;to view information about this location'. |
|
| |
|
| == Examples == | | == Examples == |
Line 159: |
Line 160: |
| | <code><nowiki>{{coord|22|54|30|S|43|14|37|W|format=text}}</nowiki></code> | | | <code><nowiki>{{coord|22|54|30|S|43|14|37|W|format=text}}</nowiki></code> |
| | {{coord|22|54|30|S|43|14|37|W|format=text}} | | | {{coord|22|54|30|S|43|14|37|W|format=text}} |
| | Rio – S & W in a text format instead of coordinate display. Other input formats are still allowed. | | | Rio – S & W in a text format instead of a coordinate format. |
| |} | | |} |
|
| |
|
Line 175: |
Line 176: |
| == Coordinate parameters == | | == Coordinate parameters == |
|
| |
|
| The first unnamed parameter following the longitude is an optional string of coordinate parameters, separated by underscores. These parameters help [[Tswiki:GeoHack|GeoHack]] select suitable map resources, and they will become more important when [[Meta:Wikimaps|Wikimaps]] becomes fully functional. | | The first unnamed parameter following the longitude is an optional string of coordinate parameters, separated by underscores. These parameters help [https://wiki.toolserver.org/view/GeoHack GeoHack] select suitable map resources, and they will become more important when [[Meta:Wikimaps|Wikimaps]] becomes fully functional. |
|
| |
|
| ===== type:''T'' ===== | | ===== type:''T'' ===== |
Line 187: |
Line 188: |
| ===== dim:''D'' ===== | | ===== dim:''D'' ===== |
|
| |
|
| {{Coord-doc-dim}}
| | Coord-doc-dim |
|
| |
|
| ===== region:''R'' ===== | | ===== region:''R'' ===== |
Line 199: |
Line 200: |
| ===== source:''S'' ===== | | ===== source:''S'' ===== |
|
| |
|
| {{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 == |