Module talk:Location map/Archive 8: Difference between revisions

Content deleted Content added
Archiving 8 discussion(s) from Module talk:Location map) (bot
 
m Archiving 1 discussion(s) from Module talk:Location map) (bot
Line 97:
::::It [[List of dams and reservoirs in Sri Lanka#Dams in Sri Lanka|doesn't work]] for some reason. Adding the alt text doesn't change the tooltip text when hovering over the pogs... [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 00:06, 19 November 2015 (UTC)
::::Managed to find a solution. Thanks! [[User:Rehman|<span style="font-variant:small-caps; font-weight:bold; color:darkblue">Reh</span>]][[User talk:Rehman|<span style="color:green">man</span>]] 05:28, 21 November 2015 (UTC)
 
== Mis-plotted coordinates? ==
 
Dear map experts:
 
I just updated a pair of geo coordinates in 3 separate places in the markup for the article [[T. A. Gillespie Company Shell Loading Plant explosion]], and also in its Wikidata link [[d:Q7668106]]. I wasn't sure from the documentation: Are all 4 copies of the coordinates necessary to keep everything working consistently? Or is there a way to avoid having to maintain multiple copies?
 
According to Google/OpenStreet/Bing/etc, now the ___location is plotted correctly when I view the article and click on the numerical coordinates that display above or inside the infobox – but the template map below the infobox is plotting the ___location incorrectly (west of highway US 9, rather than east, and a bit too far north, leaving it about 2 miles off). Is it possible that the template map is mis-calibrated, or is something else going wrong? How can this be fixed? (In the article's wiki markup, I added a comment specifying a different template that shows the ___location correctly.) —[[User:Patrug|Patrug]] ([[User talk:Patrug|talk]]) 08:04, 3 January 2016 (UTC)
 
:{{ping|Patrug}} The problem was that you specified the map name as [[Template:Location map New Jersey|New Jersey]], but specified [[:File:Location map of Middlesex County, New Jersey.svg|Location map of Middlesex County, New Jersey.svg]] as the AlternativeMap. You can only use AlternativeMap for different colorings of the exact same area, but in this case, the area was totally different. The fix was to use [[Template:Location map USA New Jersey Middlesex County|USA New Jersey Middlesex County]] as the map name, which uses the map you want as the default. Also, all of the templates can pull the coordinates from Wikidata, so I removed the parameters here. [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 19:49, 3 January 2016 (UTC)
 
::{{ping|Jackmcbarn}} Ah, thanks for the explanation and the quick fix. (I'll alert the editor who added the mismatched maps a year ago, and I'll watch for other articles that might have similar problems.) Can the "coord" template itself pull coordinates from Wikidata? We should probably add some basic documentation about Wikidata coordinates to all the relevant template pages? —[[User:Patrug|Patrug]] ([[User talk:Patrug|talk]]) 07:02, 4 January 2016 (UTC)
:::[[Module:Coordinates]] looks at Wikidata, but I can't get it to use it. When I have more time, I'll dig more into it. Yes, it would be a good idea to document how things interact with Wikidata. [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 04:02, 5 January 2016 (UTC)