Tacsipacsi added a comment.

  In T335363#8805053 <https://phabricator.wikimedia.org/T335363#8805053>, 
@thiemowmde wrote:
  
  > [ ] Is this really the best possible API? https://query.wikidata.org/? 
https://www.wikidata.org/wiki/Wikidata:REST_API?
  > [ ] How to make the two APIs reliably work together? Note that one works 
with titles but the other with item ids. This is not the same.
  
  MediaWiki core has an API endpoint that returns the actually displayed title, 
in case it’s overridden with `{{DISPLAYTITLE:}}`: 
action=query&prop=info&inprop=displaytitle 
<https://en.wikipedia.org/w/api.php?action=query&prop=info&inprop=displaytitle&titles=iPhone>.
 On Wikidata, this returns the Qid. 
<https://www.wikidata.org/w/api.php?action=query&prop=info&inprop=displaytitle&titles=Q42>
 Maybe Wikibase could hook into this API endpoint (consuming a standard 
`uselang` parameter), and Kartographer could use it? This way, Kartographer 
would not depend directly on Wikibase, and also the entity ID/page title 
discrepancy would naturally be solved. Even if the Wikibase part is not 
implemented, switching to the display title on all wikis (if it’s not already 
used) would be an improvement, because if a place intentionally uses a 
lower-case name, we should respect that.
  
  > [ ] We should probably show label **and** description as this is how 
Wikibase is designed (labels are not unique, but label + description is) and 
what users expect.
  
  Maybe this should also be done at all wikis – more and more things (mobile 
search autocomplete, Vector-2022 search autocomplete, VisualEditor link 
inspector etc.) use the description on Wikipedia, so why not also here? Of 
course, some descriptions make little sense if one looks at the map (e.g. Wall 
Street <https://en.wikipedia.org/wiki/Wall_Street>: //Street in Manhattan, New 
York//), but others are useful (e.g. Tiergarten (Berlin) 
<https://en.wikipedia.org/wiki/Tiergarten_(Berlin)>: //Quarter of Berlin in 
Germany// – and not a zoo).

TASK DETAIL
  https://phabricator.wikimedia.org/T335363

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tacsipacsi
Cc: Ayack, Tacsipacsi, thiemowmde, JStrodt_WMDE, Aklapper, mrephabricator, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, 
Alilje, Nabetaro, Nandana, MSantos, Lahi, Gq86, Looniverse, GoranSMilovanovic, 
Sturm, QZanden, Orienteerix, LawExplorer, Ddproxy, _jensen, rosalieper, 
JGirault, Scott_WUaS, phabyogi, GAllegre, Susannaanas, ferdbold, lxbarth, 
Planemad, Wikidata-bugs, aude, awight, Yurik, TheDJ, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to