Page MenuHomePhabricator

[SDOC] There is no link to Wikidata item in depicts: when there is no label in the currently used language
Closed, ResolvedPublic

Description

I use Commons with my interface set to English.

I added a depict statement to File:Dampfwäscherei Südbahnhotel, Semmering - 2016.jpg, pointing to Q38622106. This item has no English label.

The Q-item is displayed on the left, unlinked.

image.png (238×812 px, 19 KB)

If I switch the interface to German, then the German label is displayed (on the left) with the linked Q-item on the right

image.png (238×819 px, 25 KB)

Acceptance criteria:

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Ramsey-WMF subscribed.

Assigning to Hana for now so she doesn't get left out of all the fun :)

JeanFred renamed this task from [SDOC] There is no link to Wikidata item in depicts: when there is no lable in the currently used language to [SDOC] There is no link to Wikidata item in depicts: when there is no label in the currently used language.Apr 23 2019, 9:42 PM

Change 506020 had a related patch set uploaded (by Ha78na; owner: Ha78na):
[mediawiki/extensions/WikibaseMediaInfo@master] [WIP] Use wikibase language fallback rather than specifying lang in the wbformatvalue request

https://gerrit.wikimedia.org/r/506020

Change 506123 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/Wikibase@master] Use isKnown instead of exists to determine formatting entity as non-existing

https://gerrit.wikimedia.org/r/506123

Ha78na added a subscriber: matthiasmullie.

Assigning to @matthiasmullie since he wrote the patch to wb we are waiting on.

Change 506020 abandoned by Ha78na:
[WIP] Use wikibase language fallback rather than specifying lang in the wbformatvalue request

https://gerrit.wikimedia.org/r/506020

Change 506123 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Use isKnown instead of exists to determine formatting entity as non-existing

https://gerrit.wikimedia.org/r/506123