daniel added a comment.

...as to registering the description as used: this should be governed by a separate setting. It really has nothing to do with the magic word.

I think the setting should be generic, not limited to descriptions. E.g.:

$wgWBClientSettings['impliciteUsageAspects'] = [ 'D', 'L' ];

...that would track implicite description and label usage for the "connected" item. Actually, this should be restricted to the content language (unless the wiki is multi-lingual):

$wgWBClientSettings['impliciteUsageAspects'] = [ 'D.en', 'L.en' ];

Actually, there already is one implicit usage being tracked: 'S' for the sitelink itself. This is done in lientParserOutputDataUpdater::updateItemIdProperty(). Other implicite usages should also be tracked there. That method is indeed triggered by the ContentAlterParserOutput hook, via ParserOutputUpdateHookHandlers::doContentAlterParserOutput.

The more I think about this, the I believe we should have a separate ticket for that feature. It's conceptually related, but technically completely unrelated to the magic word. I originally thought it would touch the same code, but looking at it now, I don't think it does.


TASK DETAIL
https://phabricator.wikimedia.org/T184000

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr, daniel
Cc: Mholloway, Tbayer, MZMcBride, Alsee, bearND, Mike_Peel, Tgr, JKatzWMF, daniel, Bmueller, Addshore, Lydia_Pintscher, Samwilson, Aklapper, DannyH, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, JJMC89, B20180, Nakon, MusikAnimal, Niharika, Fhocutt, Wikidata-bugs, aude, Ricordisamoa, -jem-, Mbch331, Krenair
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to