Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Incubator escapee wiki:WikiProject Geographical coordinates
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Coordinate templates=== There are two ways of specifying coordinates: # {{tlx|coord}} β Accepts multiple data formats and supports a style sheet preference for display format, plus a [[Geo (microformat)|Geo microformat]]. <code>Coord</code> may be placed anywhere in the article source text, inline, with prose text. For example "<code>Mount Everest is at <nowiki>{{coord|27|59|16|N|86|56|40|E}}</nowiki></code>", which displays as "Mount Everest is at {{coord|27|59|16|N|86|56|40|E}}". To display coordinates at the page's top, near the article's title, in a skin-dependent way, use <code>display=title</code> (see example at [[Krasnoyarsk hydroelectric dam]]). To display both inline and top, use <code>display=inline,title</code>. # Infoboxes β Many [[:Category:Infobox templates|infobox templates]] for places have a parameter, typically {{para|coordinates}}, for specifying a place's coordinates. The template internally uses {{tl|coord}} and may therefore also display in the title area. See [[Template:Infobox Settlement]] and [[Template:Infobox Mountain]] for documentation, or, usage examples at [[Los Angeles, California|Los Angeles]] and [[Mount Everest]]. (Before September 2008, there was a widely-used family of templates of the form ''coor ...''. These are deprecated and have been replaced by {{tl|coord}}. For an overview of choices: [[/comparison|WikiProject Geographical coordinates/comparison]].) ====Parameters==== Following the geographical coordinate, further parameters can optionally be supplied, separated by underscores. This helps display suitable map resources (see [[Template:GeoTemplate]]), and will help [[m:Category:Wikimaps|Wikimaps]] become fully functional. [[User:EncMstr/Coord|For example:]] :{{tlx|coord|61.1631|-149.9721|type:landmark_globe:earth_region:US-AK_scale:150000_source:gnis|5=name=Kulis Air National Guard Base}} displays {{coord|61.1631|-149.9721|type:landmark_region:US-AK_scale:150000_source:gnis|name=Kulis Air National Guard Base}} It has * type:landmark * globe:earth * region:US-AK * scale:150000 * source:gnis ===== type:''T'' ===== {{shortcut|WP:COORD TYPE}} {{/type:}} ===== dim:''D'' ===== {{/dim:}} ===== scale:''N'' ===== {{shortcut|WP:COORD SCALE}} {{/scale:}} ===== region:''R'' ===== {{shortcut|WP:COORD REGION}} {{/region:}} ===== globe:''G'' ===== {{/globe:}} ===== source:''S'' ===== {{shortcut|WP:COORD SOURCE}} {{/source:}} ==== Name ==== {{tl|coord}} takes <code>|name=''name''</code> If an article contains several ''display=inline'' coordinates, each of these may be supplied with a unique ''name''. This name will be used to display the coordinate on the [[:meta:WikiMiniAtlas|WikiMiniAtlas]], and will cause the template 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. ==== <span id="Display">Display preferences</span> ==== {{UF-coord-classes}} ==== Format ==== * <code>format=dec</code> will reformat the coordinates to <span style="text-decoration:underline;">decimal degrees</span> for all readers. * <code>format=dms</code> will reformat the coordinates to <span style="text-decoration:underline;">degrees | minutes | seconds (dms)</span> format for all readers. ====Creating new templates==== When creating new templates or infoboxes, use {{tl|coord}}. Unless a template uses the coordinate data in another way, the {{tl|coord}} template should be the field value. For example, {{tl|infobox lake}} accepts <code><nowiki>coords = {{coord|45|N|6|E|type:waterbody}}</nowiki></code>. If coordinate data are used directly by a template, use the following parameter names for coordinates: {| |- | * lat_d * lat_m * lat_s * lat_NS || * long_d * long_m * long_s * long_EW |} A provision for accepting decimal coordinates is recommended. For example, allow <code>lat_d = 45.678 | long_d = -123.456</code> and omission of the remaining parameters. Where the [[United Kingdom]]'s [[Ordnance Survey]] grid references are used as the coordinates, use {{tlx|oscoor}}. For articles which have no coordinates, but need them, use {{tlx|coord missing}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)