Page MenuHomePhabricator

System Administrator disables Wikidata fallback for article descriptions
Open, Needs TriagePublic

Description

"As a System Administrator, I want to disable the fallback to Wikidata for article descriptions, so that only the local descriptions are used."

We will add a per-wiki configuration option, $wgLocalDescription, which defaults to false.

$wgLocalDescriptionTemplate defaults to Short description. It is the preferred template to use to invoke the short description magic word.

When this is true, requests for the page description in the Action API should return the value of the shortdesc page property, which is set by the {{SHORTDESC:...}} magic word.

Writes to the description should add a {{short description|...} template invocation to the content of the page, or update an existing template invocation.

Descriptions for non-wikitext pages should return an error.

Event Timeline

WikiBase client, that implements Action API for descriptions uses allowLocalShortDesc config variable. Whatever config we introduce mustn't duplicate that one.

eprodromou updated the task description. (Show Details)Sep 2 2020, 4:06 PM
Tgr added a subscriber: Tgr.Sep 14 2020, 5:33 PM

Change 627545 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/extensions/Wikibase@master] Add option to force only local short descriptions

https://gerrit.wikimedia.org/r/627545

Change 627545 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add option to force only local short descriptions

https://gerrit.wikimedia.org/r/627545

Change 631775 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[operations/mediawiki-config@master] Force local short descriptions for enwiki

https://gerrit.wikimedia.org/r/631775

Change 631775 merged by jenkins-bot:
[operations/mediawiki-config@master] Force local short descriptions for enwiki

https://gerrit.wikimedia.org/r/631775

Mentioned in SAL (#wikimedia-operations) [2020-10-06T18:23:38Z] <ppchelko@deploy1001> Synchronized wmf-config/InitialiseSettings.php: IS.php gerrit:631775 T263493 T259622 (duration: 00m 59s)

Mentioned in SAL (#wikimedia-operations) [2020-10-06T18:24:59Z] <ppchelko@deploy1001> Synchronized wmf-config/Wikibase.php: Wikibase.php gerrit:631775 T263493 T259622 (duration: 00m 58s)

Pchelolo reassigned this task from Pchelolo to eprodromou.Tue, Oct 6, 6:25 PM

This is deployed and ready.

Cool. I don't think I can test this remotely, so I'm just going to pass it through.