| This is thetalk page for discussing improvements to theCoord template. |
|
| Archives:1,2,3,4,5,6,7,8,9,10,11,12,13,14Auto-archiving period:12 months |
| Template:Coord ispermanentlyprotected from editing as it is aheavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported byconsensus, editors may use {{edit protected}} to notify an administrator to make the requested edit. Usually, any contributor may edit the template'sdocumentation to add usage notes orcategories. Any contributor may edit the template'ssandbox. Functionality of the template can be checked usingtest cases. |
| This template does not require a rating on Wikipedia'scontent assessment scale. It is of interest to multipleWikiProjects. | |||||||||||||||
| |||||||||||||||
| To helpcentralize discussions and keep related topics together, all sub-template talk pages redirect here. |
This template was nominated for merging. Please review the prior discussions if you are considering re-nomination:
|
Archives | ||||||||||||||
| ||||||||||||||
This page has archives. Sections older than365 days may be auto-archived byLowercase sigmabot III if there are more than 5. |
| Related pages |
|---|
Greetings and felicitations. The section title is awkward, but I can't think of a better way to phrase it. In particular with cities (and other larger areas), what coordinates should I use—the geographic center of the area in question, or the business district/center of activity? —DocWatson42 (talk)04:06, 29 October 2023 (UTC)[reply]
At what point does the size of the population stop mattering? I have been generally ignoring populations smaller than 10,000 and just entering the unmodified "city" parameter—is this correct? (Reposted from27 May 2023.) —DocWatson42 (talk)21:02, 10 September 2024 (UTC)[reply]
Greetings and felicitations. Are there any consequences to placing this template at the top of articles—will it foul anything up? (I have a vague recollection of seeing a mention that it does, but would like specific and concrete information.) —DocWatson42 (talk)01:34, 24 December 2024 (UTC)[reply]
|display=title (withoutinline) it could, in theory, be placed almost anywhere (like categories). It's conventional to put it at the bottom. --Redrose64 🌹 (talk)23:10, 24 December 2024 (UTC)[reply]Hi, all! Can anyone help us over atcy:Nodyn:Coord, please? We're getting the following when we use Coord template within the Infobox historic site template. Coord works outside of the Infobox historic site template, and we've gotten around it by putting the Coord template at the beginning and hidden the paramater |coordinates for now within the Infobox (seecy:Venta Silurum for an example of all of this in action). Cheers!Xxglennxx (talk)14:38, 1 January 2025 (UTC)[reply]
https://geohack.toolforge.org now gives 404.Jidanni (talk)11:21, 18 January 2025 (UTC)[reply]
Getting a 502 when clicking on a coord link.
Steps to reproduce
{{coord|48|30|N|144|39|E|region:RU_type:isle_source:GNS-enwiki}}
48°30′N144°39′E / 48.500°N 144.650°E /48.500; 144.650
Expected
Navigate to mapping page
Actual
502 error with text:
Webservice is unreachableThe tool responsible for the URL you have requested, https://geohack.toolforge.org/geohack.php?..., is not currently responding.
— Safety Cap (talk)18:55, 21 February 2025 (UTC)[reply]
Using|format=degrees by mistake results in blank template output: {{Coord|51|26|0|N|19|55|25|E|format=degrees|display=inline}} →51°26′0″N19°55′25″E / 51.43333°N 19.92361°E /51.43333; 19.92361. It would be helpful to test for valid parameter values and output an error message and category.
Note that this is not a hypothetical problem: you can see it atMount Baker Wilderness, where the coordinates are supposed to display in the text "Mount Baker (10,420 feet (3,180 m))," but|format=DMS is suppressing the template's output entirely. –Jonesey95 (talk)17:43, 5 May 2025 (UTC)[reply]
Atthis article, the coordinates are displaying inline (and in the title) despite display=title being set. –Jonesey95 (talk)13:44, 14 May 2025 (UTC)[reply]
<p><spanclass="geo-inline-hidden noexcerpt"><styledata-mw-deduplicate="TemplateStyles:r1156832818">.mw-parser-output.geo-default,.mw-parser-output.geo-dms,.mw-parser-output.geo-dec{display:inline}.mw-parser-output.geo-nondefault,.mw-parser-output.geo-multi-punct,.mw-parser-output.geo-inline-hidden{display:none}.mw-parser-output.longitude,.mw-parser-output.latitude{white-space:nowrap}</style><spanclass="plainlinks nourlexpansion"><aclass="external text"href="https://geohack.toolforge.org/geohack.php?pagename=Tata_Steel_Netherlands&params=52.47839_N_4.59212_E_type:landmark"><spanclass="geo-nondefault"><spanclass="geo-dms"title="Maps, aerial photos, and other data for this location"><spanclass="latitude">52°28′42″N</span><spanclass="longitude">4°35′32″E</span></span></span><spanclass="geo-multi-punct"> /</span><spanclass="geo-default"><spanclass="geo-dec"title="Maps, aerial photos, and other data for this location">52.47839°N 4.59212°E</span><spanstyle="display:none"> /<spanclass="geo">52.47839; 4.59212</span></span></span></a></span></span></p>
.mw-parser-output .geo-inline-hidden selector, possibly with a higher specificity, and applying the declarationdisplay:inline causing it to become unhidden. It doesn't have to be a CSS file, although that's the usual place to start - it could be a Javascript file, and the problem there is that many people (myself included) import scripts from other people's user space, over which we have no control. If somebody out there has written a neat script to aid their work, and you have seen the benefits and decided to import it yourself, that's nice until the original author amends the script, at which point you also get the amendments, desirable or otherwise.|display=title. You will have inadvertently inherited that new feature.display:none declaration. --Redrose64 🌹 (talk)10:32, 15 May 2025 (UTC)[reply]<div>...</div> pair before the coordinates link, so it appears that the actual text of the coords don't get all that styling applied to them. Here's mine:<p><spanclass="geo-inline-hidden noexcerpt"><styledata-mw-deduplicate="TemplateStyles:r1156832818">.mw-parser-output.geo-default,.mw-parser-output.geo-dms,.mw-parser-output.geo-dec{display:inline}.mw-parser-output.geo-nondefault,.mw-parser-output.geo-multi-punct,.mw-parser-output.geo-inline-hidden{display:none}.mw-parser-output.longitude,.mw-parser-output.latitude{white-space:nowrap}</style><spanclass="plainlinks nourlexpansion"><spanstyle="position: relative; white-space: nowrap;"></span></span></span></p><divstyle="background-color: rgb(255, 255, 255); padding: 0.2em; border: 1px solid black; position: absolute; top: 1em; left: 0em; display: none; z-index: 15;"><spanstyle="cursor: pointer;"><imgsrc="//upload.wikimedia.org/wikipedia/commons/thumb/5/55/WMA_button2b.png/17px-WMA_button2b.png"srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/55/WMA_button2b.png/17px-WMA_button2b.png 1x, //upload.wikimedia.org/wikipedia/commons/thumb/5/55/WMA_button2b.png/34px-WMA_button2b.png 2x"class="wmamapbutton noprint"title="Show location on an interactive map"alt=""style="padding: 0px 3px 0px 0px; cursor: pointer;"> WikiMiniAtlas</span></div><aclass="external text"href="https://geohack.toolforge.org/geohack.php?pagename=Tata_Steel_Netherlands&params=52.47839_N_4.59212_E_type:landmark"><spanclass="geo-nondefault"><spanclass="geo-dms"title="Maps, aerial photos, and other data for this location"><spanclass="latitude">52°28′42″N</span><spanclass="longitude">4°35′32″E</span></span></span><spanclass="geo-multi-punct"> / </span><spanclass="geo-default"><spanclass="geo-dec"title="Maps, aerial photos, and other data for this location">52.47839°N 4.59212°E</span><spanstyle="display:none"> /<spanclass="geo">52.47839; 4.59212</span></span></span></a>

On pages with long hatnotes, the coordinates overlays the other text. The screenshot is fromSpecial:Permalink/1300395254. My CSS is really weak, but maybe this is related to theissue above?RoySmith(talk)13:04, 14 July 2025 (UTC)[reply]
#coordinates {position: absolute; top: 3.5em;Ponor (talk)14:21, 14 July 2025 (UTC)[reply]On top (right) of the pageAskja I see:
Coordinates:
65°01′59″N 16°46′59″W
Clicking
results in a map that has a very wide oval shape of the lake, while clicking65°01′59″N 16°46′59″W results in a more round shaped lake on the map.FredTC (talk)05:32, 18 November 2025 (UTC)[reply]
Can someone help me understand this? I have found that{{Coord|display=it}} seems to produce the same result as{{WikidataCoords|display=it}} on multiple different pages... Is this template now pulling from wikidata when no coords are supplied?Zackmann (Talk to me/What I been doing)16:44, 11 December 2025 (UTC)[reply]
{{coord}} doesn't support fetching coordinates from wikidata for an arbitrary qid. This works:{{WikidataCoord|Q90}} →48°51′24″N2°21′8″E / 48.85667°N 2.35222°E /48.85667; 2.35222{{Coord|Q90}} →Coordinates: Missing latitude{{Coord|qid=Q90}} →48°51′24″N2°21′08″E / 48.8567°N 2.3522°E /48.8567; 2.3522|qid= in{{coord}} was added 16 November 2018 atthis edit toModule:Coordinates. So the apparent purpose of{{WikidataCoord}} was support of arbitrary qids.Thisedit request has been answered. Set the|answered= parameter tono to reactivate your request. |
Template:Coord has been listed at Templates for discussion (nomination), but it was protected, so it could not be tagged. Please add:
<noinclude>{{subst:tfm|help=off|1=WikidataCoord}}</noinclude>
to the top of the page to complete the nomination. Thank you.Zackmann (Talk to me/What I been doing)04:49, 13 December 2025 (UTC)[reply]
<noinclude>...</noinclude> as I do NOT think this needs to show up on well over a million pages. If an admin disagrees, feel free to overrule me!Zackmann (Talk to me/What I been doing)04:51, 13 December 2025 (UTC)[reply]