Page MenuHomePhabricator

Migrate {{geo}} to use Wikidata coordinates
Open, LowPublic


The Wikivoyage geo template should automatically pull data from the associated Wikidata item, instead of requiring the community to maintain its own set of coordinates for each page. What is the best way to implement this? Something like:

  • {{geo}} -- if wikidata has coordinates, make it into a map icon link with default zoom (?), otherwise, do nothing
  • {{geo|zoom=10}} -- if wikidata has coordinates, make it into a map icon link with the given zoom, otherwise, do nothing
  • {{geo|10|20|zoom=10}} -- will override wikidata's values, but will add a hidden category indicating that wikidata has / doesn't have these coordinates, and that the geo template overrides it. Those categories can be used by bots to copy coordinates to wikidata, or to erase them in the template if needed.

Event Timeline

Yurik created this task.Jun 16 2016, 1:36 AM
Restricted Application added a project: Discovery. · View Herald TranscriptJun 16 2016, 1:36 AM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript
Yurik added a subscriber: aude.Jun 16 2016, 1:37 AM

@aude, thoughts? ^

T141345 should be related to it.

Yurik moved this task from Wiki-related to Kartographer on the Maps board.Dec 6 2016, 3:29 PM
Yurik edited projects, added Maps (Kartographer); removed Maps.

When I check for WikiVoyage articles missing the geo template coordinates - I use a function in one of my Modules to add formatted coordinates from Wikidata using the Qnnnn (wikidata id) - I think Ryan also has such a function in the Listings Editor. The basic Lua Code is already available. I am thinking a javascript widget would also be in order as well but that is not in my box of tricks. - Cheers!

Mholloway triaged this task as Low priority.Oct 9 2018, 3:57 PM
Mholloway moved this task from Unsorted to Wikivoyage on the Maps (Kartographer) board.