Page MenuHomePhabricator

TitlesMultiselectWidget does not use entity labels on Wikibase entities
Open, Needs TriagePublic

Description

Problem
The TitlesMultiselectWidget does not use entity labels on Wikibase entities

Screen Shot 2018-10-24 at 4.22.50 PM.png (1,090×249 px, 24 KB)

Solution
Wikibase should hook into the widget to use the label (like it does everywhere else a Title is used). This may require some modifiecations to the widget to allow Wikibase to override the title.

Event Timeline

Restricted Application added subscribers: MGChecker, Aklapper. · View Herald Transcript
dbarratt renamed this task from TitlesMultiselectWidget does not use entity labels Wikibase entities to TitlesMultiselectWidget does not use entity labels on Wikibase entities.Oct 24 2018, 10:02 PM

I'm going to write a comment here but this also relates to T207967.

Within Wikibase we have an entity selector that could be used here. This allows lookup of entities by label and alias etc as well as displaying the labels and aliases instead of the raw title / Qid.
Some way to hook in and provide this instead of a standard title lookup thingy could work?

On the other hand, if a user is being blocked from editing an entity then explicitly using the entity id might make sense to avoid mistakes.
Although I guess in this case it might still make sense to solve this one, being T207902, so that even after entering the ID the label is still shown?

Anyway, let's discuss..

I think it would be best if it displayed the same way it does everywhere else which is in the format:

Label (Q123)