Page MenuHomePhabricator

AuthorityControl gadget always uses globe:earth
Closed, ResolvedPublic

Description

The GeoHack links generated by https://www.wikidata.org/wiki/MediaWiki:Gadget-AuthorityControl.js always use Earth as the globe. It seems from the comment /* BUG: .getGlobe() returns Q2 always */ in the code that this is known, but I couldn't find a ticket for it.

For example, https://www.wikidata.org/wiki/Q3055620 mentioned on https://www.wikidata.org/wiki/Wikidata:Project_chat#Error_with_extraterrestrial_coordinate_locations_.28P625.29 links to https://tools.wmflabs.org/geohack/geohack.php?language=en&params=47.5_N_210_E_globe:earth even though the globe is set to Q111 (Mars).

Event Timeline

Nikki raised the priority of this task from to Needs Triage.
Nikki updated the task description. (Show Details)
Nikki added a project: Wikidata-Gadgets.
Nikki subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Feldo renamed this task from AuthorityControl gadget always uses globe=earth to AuthorityControl gadget always uses globe:earth.Jul 9 2015, 1:25 PM
Feldo set Security to None.
Sjoerddebruin subscribed.

...and deployed.
The link shown at https://www.wikidata.org/w/index.php?title=Q3055620&oldid=263487179#P625 now leads to the correct GeoHack page.
MediaWiki:Gadget-AuthorityControl.js has been updated to reflect the change: https://www.wikidata.org/wiki/?diff=321509805