On Wikidata watchlists, labels are currently shown alongside the Q/P numbers for items and properties.
In this ticket, we want to use similar logic to show these labels for Wikipedia watchlists as well.
Example Wikidata watchlist entry
`(Changed claim: instance of (P31): administrative building (Q2519340))`
Example Wikipedia watchlist entry
`(Changed claim: Property:P1056: Q161928)`
We have already investigated how this works and located the code in the ‘repo’ that will need to be used on the ‘client’ side.
Acceptance criteria
- Labels are shown in Wikipedia watchlists summaries for wikidata items and properties, the same as how they are currently shown in Wikidata watchlists
- Labels for Wikidata links coming from interwiki links in client page edit summaries (e.g. [[d:Q42]]) should not be resolved as part of this ticket
Tasks:
[] Architecture - if we use LinkerMakeExternalLinkHook hook, some other extensions override it and therefore will not have access to our improved summaries. An alternative decision would be to write a new separate hook
[] Make sure extra database lookups aren't a problem
[] Consider efficiency - e.g. with 'prefetch'
[] Consider any implications to e.g. removing the word 'Property' - does anything currently depend on that? E.g. bots
[x] Test with right-to-left text - our change does not break anything that is not already broken. However, there are existing issues with edit summaries coming up in the wrong direction - we will make a separate ticket for this bug
[] Check whether it works for multilingual (since it's based on wikidata which doesn't have multilingual)
[] Consider if a long label needs to be truncated, or if however it works on wikidata currently is sufficient
[] Implementation of the change
[] Roll out to pilot wikis first, to check for bugs and enable easier rollback via feature flag (see T393442 for more info)
[] NOTE: this ticket deployment is blocked by monitoring tracking beforehand first