Page MenuHomePhabricator

Show text from Wikidata usage instructions property (P2559) when auto-suggesting properties or items
Open, MediumPublic


Per T97566, we need a feature that displays the text in the Wikidata usage instructions property ( when a Wikidata editor gets auto-suggestions for properties or items.

Event Timeline

Lydia_Pintscher lowered the priority of this task from High to Medium.Dec 22 2016, 6:52 PM

I wonder if it makes sense to put those in the Elastic index. That would allow us to retrieve them along with labels and descriptions, and for the GUI to decide how to display them.

Probably needs to be done in a generic way, e.g.:

  • Config has the list of properties whose values we want to index (may also want P31/P279, for example)
    • Config may also have to define how to treat the values - i.e. just ID, labels, multilanguage value, etc.
  • Search would retrieve all configured extra properties, or only those configured in the query (a-la pageprops)
  • UI would decide what to do with those.

I was wondering if that could happen completely in frontend, we only need those when someone tries to edit and not when someone searches in wikidata.

What I would suggest doing is maybe putting this as a non-indexed field in the index and returning it together with the response. Of course, it could also be done purely client-side but at the cost of one extra round-trip.