Page MenuHomePhabricator

Enable USERLANGUAGE magic word for Wikidata
Closed, ResolvedPublic

Description

We should enable $wgParserEnableUserLanguage on Wikidata (wikidatawiki) so that template authors can use the {{USERLANGUAGE}} magic word. Currently, Wikidata uses the {{int:lang}} hack instead (i.e., enabling $wgParserEnableUserLanguage wouldn’t significantly reduce the efficiency of the parser cache, because it’s already split by user language, just by different means); see Module:MediaWikiLang for the current implementation of this hack (someone has to regularly look at that page and create all the missing subpages whenever new languages are added to MediaWiki).

Event Timeline

Change #1191804 had a related patch set uploaded (by Lucas Werkmeister; author: Lucas Werkmeister):

[operations/mediawiki-config@master] Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata

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

Change #1191804 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata

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

Mentioned in SAL (#wikimedia-operations) [2025-09-29T20:09:37Z] <sgimeno@deploy2002> Started scap sync-world: Backport for [[gerrit:1191804|Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata (T405830)]]

Mentioned in SAL (#wikimedia-operations) [2025-09-29T20:16:29Z] <sgimeno@deploy2002> lucaswerkmeister, sgimeno: Backport for [[gerrit:1191804|Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata (T405830)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-09-29T20:23:00Z] <sgimeno@deploy2002> Finished scap sync-world: Backport for [[gerrit:1191804|Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata (T405830)]] (duration: 13m 23s)