Page MenuHomePhabricator

Show label and description in native or fallback languages instead of ID on Wikidata
Open, LowPublic

Description


Now Wikidata's titles of pages and diffs are shown as Q and Property IDs, need to change that behaviour and show titles as label and description in native or fallback language of Huggle user.

Event Timeline

Evs created this task.Jul 13 2018, 5:39 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 13 2018, 5:39 AM
Evs renamed this task from Show label and description in native or fallback languages instead ID on Wikidata to Show label and description in native or fallback languages instead of ID on Wikidata.Jul 13 2018, 6:56 AM
Petrb added a subscriber: Petrb.Jul 13 2018, 10:20 AM

Hm, any ideas how to do that? Which APIs should be used for that and based on which conditions? I suppose it should be related to different content model?

Petrb triaged this task as Low priority.Jul 22 2018, 7:56 PM

Triaging as low since we know nothing about how this could be implemented, and because it's affecting only wikidata, which is not very frequently used project by Huggle users.

Evs added a comment.Aug 4 2018, 1:51 PM

Hm, any ideas how to do that? Which APIs should be used for that and based on which conditions? I suppose it should be related to different content model?

General Wikidata API call can be used, e.g.:
https://www.wikidata.org/w/api.php?action=wbgetentities&format=xml&props=labels|descriptions&ids=Q42
or
https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&props=labels|descriptions&ids=Q42