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).
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata | operations/mediawiki-config | master | +1 -0 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T378060 Enable USERLANGUAGE magic word on wikis using int:lang hack | |||
| Open | None | T377410 Enable $wgParserEnableUserLanguage on all wikis with Translate enabled | |||
| Resolved | LucasWerkmeister | T405830 Enable USERLANGUAGE magic word for Wikidata |
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
Change #1191804 merged by jenkins-bot:
[operations/mediawiki-config@master] Enable $wgParserEnableUserLanguage ({{USERLANGUAGE}}) on Wikidata
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)