|
|
| Line 1,079: |
Line 1,079: |
| | <code>{{var|x}} &ge; {{var|y}}</code> | | | <code>{{var|x}} &ge; {{var|y}}</code> |
| |} | | |} |
|
| |
| ==Geographical coordinates==
| |
| <div style="float:right; width:100px;">{{Shortcut|MOS:COORDS|WP:COORDINATES}}</div>
| |
|
| |
| :{{crossref|For draft guidance on, and examples of, coordinates for linear features, see [[Wikipedia:WikiProject Geographical coordinates/Linear]].}}
| |
|
| |
| :'''Quick guide''':
| |
|
| |
| {{coord how-to}}
| |
|
| |
| [[Geographical coordinates]] on Earth should be entered using a template to standardise the format and to provide a link to maps of the coordinates. As long as the templates are adhered to, a robot performs the functions automatically.
| |
|
| |
| First, [[Wikipedia:Obtaining geographic coordinates|obtain the coordinates]]. Avoid [[Wikipedia:WikiProject Geographical coordinates#Precision|excessive precision]].
| |
|
| |
| Two types of template are available:
| |
| * {{tlx|coord}} offers users a choice of display format through [[Help:User style|user style]]s, emits a [[Geo microformat]], and is recognised (in the {{em|title}} position) by the "nearby" feature of Wikipedia's mobile apps and by external service providers such as Google Maps and Google Earth, and Yahoo.
| |
| * Infoboxes such as {{tlx|Infobox settlement}}, which automatically emit {{tlx|Coord}}.
| |
|
| |
| The following formats are available.
| |
| * For degrees only (including decimal values): {{tlc|coord|2={{var|dd}}|3={{var|N/S}}|4={{var|dd}}|5={{var|E/W}}}}
| |
| * For degrees/minutes: {{tlc|coord|2={{var|dd}}|3={{var|mm}}|4={{var|N/S}}|5={{var|dd}}|6={{var|mm}}|7={{var|E/W}}}}
| |
| * For degrees/minutes/seconds: {{tlc|coord|2={{var|dd}}|3={{var|mm}}|4={{var|ss}}|5={{var|N/S}}|6={{var|dd}}|7={{var|mm}}|8={{var|ss}}|9={{var|E/W}}}}
| |
|
| |
| where:
| |
| * {{var|dd}}, {{var|mm}}, {{var|ss}} are the degrees, minutes and seconds, respectively;
| |
| * {{var|N/S}} is either <kbd>N</kbd> for northern or <kbd>S</kbd> for southern [[latitude]]s;
| |
| * {{var|E/W}} is either <kbd>E</kbd> for eastern or <kbd>W</kbd> for western [[longitude]]s;
| |
| * negative values may be used in lieu of <kbd>S</kbd> and <kbd>W</kbd> to denote Southern and Western [[Hemisphere of the Earth|Hemispheres]]
| |
|
| |
| For example:
| |
|
| |
| For the city of [[Oslo]], located at 59° 55′ N, 10° 44′ E:
| |
| : <code><nowiki>{{coord|59|55|N|10|44|E}}</nowiki></code>{{snd}}which becomes {{coord|59|55|N|10|44|E}}
| |
|
| |
| For a country, like [[Botswana]], less precision is appropriate:
| |
| : <code><nowiki>{{coord|22|S|24|E}}</nowiki></code>{{snd}}which becomes {{coord|22|S|24|E}}
| |
|
| |
| Higher levels of precision are obtained by using seconds:
| |
| : <code><nowiki>{{coord|33|56|24|N|118|24|00|W}}</nowiki></code>{{snd}}which becomes {{coord|33|56|24|N|118|24|00|W}}
| |
|
| |
| Coordinates can be entered as decimal values
| |
| : <code><nowiki>{{coord|33.94|S|118.40|W}}</nowiki></code>{{snd}}which becomes {{coord|33.94|S|118.40|W}}
| |
|
| |
| Increasing or decreasing the number of decimal places controls the precision. Trailing zeros should be used as needed to ensure that both values have the same level of precision.
| |
|
| |
| [[London Heathrow Airport]], [[Amsterdam]], [[Jan Mayen]] and [[Mount Baker]] are examples of articles that contain geographical coordinates.
| |
|
| |
| Generally, the larger the object being mapped, the {{em|less precise}} the coordinates should be. For example, if just giving the location of a city, precision greater than 100{{nbsp}}meters is not needed unless specifying a particular point in the city, for example the central administrative building. Specific buildings or other objects of similar size would justify precisions down to 10{{nbsp}}meters or even one meter in some cases (1′′ ~15{{nbsp}}m to 30{{nbsp}}m, 0.0001° ~5.6{{nbsp}}m to 10{{nbsp}}m).
| |
|
| |
| The final field, following the E/W, is available for attributes such as <code>type:</code>, <code>region:<code>, or <code>scale:<code> {{crossref|(the codes are documented at [[Template:Coord/doc#Coordinate parameters]])}}.
| |
|
| |
| When adding coordinates, please remove the {{tlx|coord missing}} tag from the article, if present.
| |
|
| |
| {{Crossref|For more information, see [[Wikipedia:WikiProject Geographical coordinates|the geographical coordinates WikiProject]].}}
| |
|
| |
| Templates other than {{tlx|coord}} should use the following variable names for coordinates: {{var|lat_d}}, {{var|lat_m}}, {{var|lat_s}}, {{var|lat_NS}}, {{var|long_d}}, {{var|long_m}}, {{var|long_s}}, {{var|long_EW}}.
| |
|
| |
|
| ==See also== | | ==See also== |