Page MenuHomePhabricator

OutputPage::getUnprefixedDisplayTitle() is unreliable
Open, Needs TriagePublic

Description

The code in OutputPage::getUnprefixedDisplayTitle() seems broken. It likely doesn't work on multilingual wikis or Translate pages where page language is different from the content language, it probably doesn’t properly reflect the user’s chosen variant, it might not handle gendered namespaces, etc. The solution is probably to tweak the way the Parser and the DISPLAYTITLE parser function work in order to keep the namespace and the unprefixed title separate.

Event Timeline

Change 810114 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] WIP: Don't allow {{DISPLAYTITLE}} and -{T|..}- to override namespace l10n

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

Change 946988 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Store DISPLAYTITLE components in split form

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

Change 946989 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] WIP: use split display title in OutputPage/EditPage/Article

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