Template talk:Coord/Archive 14

Latest comment: 11 months ago by Trappist the monk in topic Preview page broken

Having dedicated decimal degree and DMS templates

I work with new users through training and occasional users through programs like 1Lib1Ref and other GLAM outreach. They are all using Visual Editor. They find the coord template baffling beause of its use of positional parameters which don't play nicely with the Visual Editor. And people can't get their heads around the bundling of some parameters e.g. "type:city_region:AU-QLD" etc. So it occurred to me that the main reason for the use of positional parameters in the template is simply because some coords are in decimal degrees and others using DMS. Could we have some convenience templates with named parameters e.g.

{{coordDD|lat=-27.34167|long=153.04611|type=city|region=AU-QLD| etc }} {{coordDMS|latD=27|latM=20|latS=30|latDir=S|longD=153|longM=02|longS=46|longDir=E|type=city|region=AU-QLD| etc }}

which just map onto the coord template. While there might not be great benefit to the wikitext user who uses coord regularly, it would be huge benefit for the Visual Editor user as they will see a form for coordDD and coordDMS with a meaningfully named box for each value (with the usual help info, default values, whether something is mandatory or not etc). Easy-peasy for people to fill in. It would also benefit the occasional wikitext user, who finds the positional parameters hard to remember and how to construct type:city_region:AU-QLD etc. I note nothing in this proposal stops anyone continuing to use coord, these are additional for those who would benefit from them. What do you all think? Kerry (talk) 08:41, 12 January 2022 (UTC)

I'm not opposed to that. I also think we should seriously consider splitting out the geohack info into separate parameters. Or you know, just switch to the new Kartographer based version and get rid of geohack. —TheDJ (talkcontribs) 10:15, 12 January 2022 (UTC)
Hang on, it looks like such templates have existed since 2013 and with the same motivation I had (make it easier for Visual Editor users) Template:CoordDec and Template:CoordDMS and Template:coordDM. They got taken to TfD with the usual anti-VE vitriol, which ended with no consensus. No idea if they are actively maintained or how well they work, but I guess I need to explore that. Kerry (talk) 10:47, 12 January 2022 (UTC)

Coordinates bad positioning

  Moved from WP:VPT

Am I the only one bothered by seeing the top page coordinate location overlapping on the languages drop down menu?

I've noticed it since I started using the new Vector last year and it never changed. I thought I need patience for the newly tested skin to be set, but so far nothing has been touched.

Thanks all. --Mahmudmasri (talk) 01:49, 25 February 2022 (UTC)

@Mahmudmasri: I've moved this report to the template page that makes the coord's, this page is fairly well attended by people that know about it. — xaosflux Talk 02:03, 25 February 2022 (UTC)
Thanks. I just think it is related to the Vector skin, not the coordinates template itself:
.skin-vector-2022 #coordinates
{
  top: -3em;
}
I could fix this for me alone by changing the value of -3 to -1.6. --Mahmudmasri (talk) 02:47, 25 February 2022 (UTC)
This is bug T281974. This is also discussed above. It is not clear to me if anything was actually implemented. – Jonesey95 (talk) 14:06, 25 February 2022 (UTC)
@Izno think you were looking in to this, is this something that can be dealt with in Module:Coordinates/styles.css? — xaosflux Talk 14:11, 25 February 2022 (UTC)
As discussed above and at Module talk:Coordinates#coordinsert feature broken and at MediaWiki talk:Vector-2022.css#Interface-protected edit request on 5 February 2022, there are two ways forward: Either we move this to a page indicator +- attendant grief, or we use a default-on JS gadget to position coordinates, which is, well, suck. The former requires additional fixing per the module talk page. I dropped it after that self-reverting that attempt for other priorities (which ended up being procrastinating on reading for an ArbCom case). I do not know how best to move forward. A headsup in a public place that it's moving to an indicator if we go that way (I see the JavaScript solution as a non-starter, not least because it will make Google sad for reflow, never mind the bad performance for users). The last solution would be to remove title-placed page coordinates entirely. It's probably a last choice for most people. Izno (talk) 23:05, 25 February 2022 (UTC)

Nomination for merger of Template:Coord-doc-dim

 Template:Coord-doc-dim has been nominated for merging with Wikipedia:WikiProject Geographical coordinates/dim:. You are invited to comment on the discussion at the template's entry on the Templates for discussion page. Thank you. 65.92.246.142 (talk) 15:38, 3 March 2022 (UTC)

Template:WikidataCoord and Category:Coordinates_on_Wikidata‎

Please check Wikipedia:Village_pump_(technical)#Template:WikidataCoord_and_Category:Coordinates_on_Wikidata. --Tim Wu (talk) 15:49, 14 May 2022 (UTC)

Decimal degree rounding

The United States Geological Survey provides coordinate position data in decimal degrees to seven places. This far exceeds the actual precision of the location, but the seven decimal places are very useful for reviewing data accuracy. It would be very useful if Template:Coord could provide a decimal degree rounding capability. This way coordinates could be entered to seven decimal places but the template would only display the coordinates to (for example) four decimal places. Yours aye,  Buaidh  talk e-mail 14:32, 14 June 2022 (UTC)

Can someone please make a sandbox version of Template:Coord to accommodate this extension? Thanks,  Buaidh  talk e-mail 23:51, 30 June 2022 (UTC)

city() is broken

The city(9,999) parameter seems to be broken now, currently rendering everything after the "(" inline; e.g., as "7,456)_dim:3875&title=Mount+Pleasant 32°01′42″S 115°50′56″E" instead of just "32°01′42″S 115°50′56″E". Betterkeks (talk) 03:16, 3 July 2022 (UTC)

@Betterkeks: This sounds like an issue for Module talk:Coordinates. When you report it, make sure that you include a link to the actual article where the problem occurs. --Redrose64 🌹 (talk) 07:46, 3 July 2022 (UTC)

"More than one primary tag"

Could anybody tell me what is the cause of the error at Whitehouse, Milton Keynes, please? The problem arises because I have added a second infobox (for the school). I have tried removing display=inline,title from the coord invocation in mapframe-custom but to no avail. 𝕁𝕄𝔽 (talk) 21:17, 9 October 2022 (UTC)

Deor has fixed it. (Thank you). Too difficult to see on mobile what the magic formula was, will look later in big screen. --𝕁𝕄𝔽 (talk) 22:24, 9 October 2022 (UTC)
The {{coord}} templates in both infoboxes (and the one in the mapframe template as well) had display=inline,title parameters. An article can contain only one title display of coordinates without throwing up an error message and being listed in Category:Pages with malformed coordinate tags, which is where I saw it. Deor (talk) 22:43, 9 October 2022 (UTC)
No doubt you are correct but I had assumed that to be the most likely reason and, as I said, tried removing it without effect. (There were only two real instances, the one in the civil parish infobox and the other in the mapframe. The "standard" one in the school infobox was commented out. Or at least so I believed but evidently I missed something. We live and learn. --𝕁𝕄𝔽 (talk) 23:33, 9 October 2022 (UTC)

multiple display=title items

some pages cover a small number of locations and would benefit from this. instead of 1 coordinate in the title, there would be a small list of named coordinates. it would also help as a quick indicator that a page is about separate locations, if it were to be used regularly.

but it might interfere with other stuff like (what comes to my mind just now): GeoGroup. Nowakki (talk) 13:13, 28 October 2022 (UTC)

Template:Coord pulling from Wikidata on its own?

So I'm helping with the backlog of articles with coordinates in wikidata but not here. Normally, I will open the wikidata listing and copy-paste the coordinates into the Template, but I noticed recently that several articles just do {{coord|display=title}} and it will pull the coordinates from wikidata already. Is this a new feature? Bkissin (talk) 17:32, 8 December 2022 (UTC)

See the documentation: "You can get coordinates from Wikidata by transcluding this template without any numbered arguments." – Jonesey95 (talk) 18:03, 8 December 2022 (UTC)
OK thanks. Wanted to make sure I wasn't missing something or messing anything up. Bkissin (talk) 19:04, 8 December 2022 (UTC)

Reg. region:

The doc says If no region: parameter is provided, GeoHack attempts to determine the region from the coordinates. Take for eg:Anand Vihar metro station, The template didn't do so. {{Infobox station}} adds a Region: from the value in |country= but shouldn't it work without that? REEDriler (talk) 18:03, 16 April 2023 (UTC)

messed up display when using display=title

I have noticed that on many articles that use this template (template:coord) w/ the parameter 'display=title' the resulting coordinates text appears in the upper right corner of the article (OK, as expected so far) but the text is all messed up by the fact that the coordinates-text is overwriting the title-text for an info-box placed under the coordinates. Some articles that show this problem are: Claremont Institute, Acton Institute, Leadership Institute. The problem seems to only happen when an info-box is present. Also, this appears to happen on at least three different web browsers I have tested with; namely: Firefox, Safari, and Chrome. Is there some solution to this? Why has this bug lasted so long? Thanks for any information. L.Smithfield (talk) 12:15, 29 April 2023 (UTC)

  • I see a number of pages with other issues of coords showing up over infoboxes and other templates at the top of the page. Ex: Adelaide, Bundestag, Suez Canal, any page that doesn't have one of the other page indicators in the space b/t coords and title [which would push the whole page down]. – SJ + 13:43, 29 April 2023 (UTC)
    Thanks that someone besides myself has noticed this. I noticed this problem quite some time ago (maybe more than one or two years ago?) but for some reason I ignored it, thinking that it might not be something that is systematic (like a rare bug of some sort rather than a bug that is exhibited very often). But for some reason, I now realize that this bug is quite widespread (as you also have noticed). For a moment I was sort of hoping that it was a bug just exhibited by a single browser, but as I mentioned above, I have confirmed this bug on at least three different browsers already (Chrome, Safari, and Firefox). It is strange that this bug has gone unaddressed for so long. What would be the next step towards bringing this to the attention of someone who can fix this? Thanks. L.Smithfield (talk) 14:02, 29 April 2023 (UTC)
The practical discussion seems to be here - with a checklist for resolving this. Stalled, and not an obvious candidate for {{sofixit}}, but commenting there would be useful. – SJ + 14:25, 29 April 2023 (UTC)
Thanks for the pointer. I am glad to know that this was under investigation. Thanks again. L.Smithfield (talk) 18:12, 29 April 2023 (UTC)

Switching to Kartographer

Looks like the last discussion Template_talk:Coord/Archive_13#Migrate_from_WikiMiniAtlas_to_Kartographer stalled despite the technical issues seemingly being resolved. The last Kartographer version of the module would have to be synced (I can probably do that) but after that I wonder if the RfC/discussion Kaldari suggested can be run. The current WikiMiniAtlas is embarrassingly out of date and it would be good to replace it. Pinging everyone from the last discussion: @Xaosflux, TheDJ, Jc86035, Hike395, Martin of Sheffield, Evad37, and Jackmcbarn. Galobtter (talk) 07:45, 30 April 2023 (UTC)

I made Module:Coordinates/sandbox the Kartographer version including the updates done to Module:Coordinates in the meantime. Galobtter (talk) 07:58, 30 April 2023 (UTC)
I'm not opposed to getting rid of WikiMiniAtlas in favor of Kartographer: it's clearly better. However, the proposal is to get rid of both WikiMiniAtlas and the link to GeoHack. I just tested it --- Kartographer doesn't fulfill my mapping needs, because it doesn't appear to have regional mapping services. Two years ago, TheDJ said there would be a link to GeoHack -- that's now true, but the regional parameters from Template:Coord are not being passed to GeoHack, so my mapping experience is now badly degraded -- what was one click is now "go to Kartographer, click on GeoHack, scroll down to correct region". Would it be possible to pass the parameters from Template:Coord through Kartographer over to GeoHack? Or (better yet) to have Kartographer offer regional mapping services itself, depending on region code?
Another question --- there's some process/CSS somewhere in WP that detects links to GeoHack and prepends a WMA globe link. Is that going to go away?
Thanks in advance! — hike395 (talk) 10:36, 30 April 2023 (UTC)
That globe icon, c:File:WMA button2b.png, is displayed for title coords, but seems to be suppressed for some inline coords, I've not worked out the circumstances. I think that it and the associated link are added by JavaScript, it's certainly not possible in CSS alone. --Redrose64 🌹 (talk) 11:55, 30 April 2023 (UTC)
If there was a user script that restored a geohack link for those who wanted it, would that address your needs?
(re your question, yes, see the section on WikiMiniAtlas at MediaWiki:Common.js) Galobtter (talk) 17:34, 30 April 2023 (UTC)
fwiw, I wouldn't mind if the WMA globe links went away for all geohack links.
Re: user script --- do you mean some JS I could put in my own common.js file and coord links would act as they would today? That would be suboptimal, but acceptable. I would be sad to miss out on the new Kartographer features (e.g., outlines), but if no one is going to fix Kartographer to allow reasonable access to regional mapping services, I would probably use such a thing.
I experimented with the sandbox version of {{coord}}, and I notice that the dim parameter would now be non-functional under Kartographer? @Galobtter: would it be ok with you if I modify Module:Coordinates/sandbox to attempt a fix? I'm only a templateeditor, so this is my chance to help make the outcome better. — hike395 (talk) 20:54, 30 April 2023 (UTC)
Sure you can try. The user script would probably add an additional link to geohack adjacent to the Kartographer link. Galobtter (talk) 21:43, 30 April 2023 (UTC)
Actually, all you need to do is add this piece of css in your common.css:
.coord-geohack { display: inline !important;}
and that restores the geohack link next to the Kartographer link that is already emitted by the sandbox version for compatibility reasons (add the css and go to Module talk:Coordinates/testcases). So we can just probably the emitted version slightly prettier and that should be good. Galobtter (talk) 21:53, 30 April 2023 (UTC)
Thanks for the CSS tip -- it worked like a charm. I was WP:BOLD and made the emitted HTML slightly prettier. I also got dim and city population to work at Module:Coordinates/sandbox. Everything seems to work nicely. — hike395 (talk) 01:42, 1 May 2023 (UTC)
It’s gonna be an endless train of minor/niche grievances blocking the obvious way forward. I don’t want any part of it. Please stop pinging me on this topic. —TheDJ (talkcontribs) 12:01, 30 April 2023 (UTC)
Kartographer has some really nice features and would be an substantial improvement. But if you're going to deprecate an old system, you should not seriously degrade the old experience. I'm not even asking for parity --- I'm willing to spend more user actions to get my tasks done. I will follow your wishes and not ping you again on this matter. — hike395 (talk) 15:59, 30 April 2023 (UTC)
As far as I can see, the only issue remaining is slight output differences with coord2text as can be seen at Module talk:Coordinates/testcases. I'll try to fix that soon. Galobtter (talk) 02:19, 1 May 2023 (UTC)
I used the same method of extracting coordinates as Module:Location map, and everything seems to work well now. I honestly don't see any blockers, so I'll put a proposal out soon. Galobtter (talk) 02:53, 2 May 2023 (UTC)

Proposal

Please see Wikipedia:Village pump (proposals)#RfC: Updating Template:Coord to use Kartographer. Galobtter (talk) 06:24, 10 May 2023 (UTC)

Preview page broken

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello people,

I just wanted to add that previews of pages with this template show the coordinates as the preview as opposed to the introduction of the article. I've had to remove the template from a few articles in order to resolve this issue, however a more permanent fix would be more ideal. Could the developers of this template look into this issue further?

Thanks. Aydenholtonvlogs (talk) 02:37, 6 June 2023 (UTC)

Always provide links to example pages when reporting a problem. It looks like you removed the coordinates from Regional Representative Council, where they are working fine for me. Please let us know what skin you are using (you can see it in your Preferences) and, ideally, provide a screen shot of the problem. – Jonesey95 (talk) 02:48, 6 June 2023 (UTC)
@Aydenholtonvlogs: Please stop removing the template which is used in 1.3 million pages without any problems reported apart from the above. You have removed coord from Australia (continent) and United Arab Emirates—they need to be restored. Also, this edit removed coord and pp-move-indef. Please do not remove stuff unless you understand its purpose and have good reason to believe that removal is necessary (pp-move-indef is needed in that article). A screenshot of the problem would be desirable but as a first step, please describe what you see with the exact text of whatever the problem is. Johnuniq (talk) 03:13, 6 June 2023 (UTC)
There is an explanation at Module talk:Coordinates#Protected edit request on 29 May 2023. Further discussion should occur there. The problem is that (with scripting enabled and "Enable page previews" selected in Preferences > Appearance), hovering the mouse over a blue link should show a preview of the start of the article, but the text is now showing just the coordinates. Documentation is at mw:Page previews. The problem will be fixed but not by removing the template from 1.3 million articles. Johnuniq (talk) 03:43, 6 June 2023 (UTC)
Sorry. Aydenholtonvlogs (talk) 10:09, 6 June 2023 (UTC)

Previews are broken for me for ITER. I can't find any vandalism. Sungodtemple (talkcontribs) 12:02, 6 June 2023 (UTC)

Discussion at Wikipedia:Village pump (technical) § Page previews (popups) broken

Trappist the monk (talk) 12:17, 6 June 2023 (UTC)

The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.