Page MenuHomePhabricator

System Administrator disables Wikidata fallback for article descriptions
Closed, ResolvedPublic

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.

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)

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

Thanks for this. Would it be possible to apply different a configuration for each Wikipedia language?

Hi @Fgnievinski, Yes the configuration can be customized for each Wikipedia language

Hi @Fgnievinski, Yes the configuration can be customized for each Wikipedia language

Thank you for the clarification @apaskulin .

I assume this configuration would prevent the mobile app from sourcing short descriptions in Wikidata, right?

To implement this is non-English languages, would it be appropriate to create a task similar to T248457?

Thanks.

Yes: how could we petition for implementing this feature in a non-English Wikipedia, please?

Thank you! That's all I need for the moment.

No response, closing.