As an editor I want to only be notified about relevant Wikidata changes in my watchlist in order to monitor only changes that have an effect on my article.
Problem:
We have 2 ways to get the sitelinks for an Item via Lua. They are:
- entity:getSitelink( )
- mw.wikibase.getSitelink( qid )
They lead to different usage aspects being tracked. The first one adds the Sitelink aspect and the second one sets the Title aspect. This is not correct. They should both be adding the Title aspect instead.
This is a problem because it leads to useless Wikidata change notifications in the client watchlists. This means editors are less likely to keep the Wikidata changes showing up in their client watchlist and thereby miss important changes that are actually relevant to their article.
Example:
See original report below
BDD
GIVEN a Lua call using the entity:getSitelink( ) function in an article
WHEN checking the usage aspects for that article/Item
THEN the Item providing the sitelink should be tracked with the Title aspect
AND
Acceptance criteria:
- entity:getSitelink( ) no longer tracks the usage in the Sitelink aspect but instead in the Title aspect.
Original report:
Test LUA module:
local p = {} function p.award(frame) local qid = 'Q534981' local entity = mw.wikibase.getEntity ( qid ); if entity then -- return '[[' .. entity:getSitelink( ) .. ']]' return '[[' .. mw.wikibase.getSitelink( qid ) .. ']]' end end return p
When I'm using it via {{#invoke}} on some page, under Wikidata entities used in this page I'm getting Medal "Veteran of Labour": Title which is correct, since I'm requesting "home" sitelink only
When I'm commenting mw.wikibase.getSitelink line and uncommenting entity:getSitelink line, I'm getting exactly the same result on the page, but under Wikidata entities used in this page I can see Medal "Veteran of Labour": Sitelink which is incorrect. It leads to the pollution of Watchlist with interwiki addition/removal for connected entities.