Page MenuHomePhabricator

mw.Title should let you format a title relative to an arbitrary namespace, not assume NS0
Closed, ResolvedPublic

Description

Right now mw.Title formats namespaces assuming that you want their representation from NS0, which is wrong in several cases.


Version: 1.23.0
Severity: enhancement

Details

Reference
bz67448

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 3:29 AM
bzimport set Reference to bz67448.

So for example, where this came up in VE, we wanted a title relative to the Template namespace. The idea is that main namespace titles are prefixed with ':' and templates are just their main text (no namespace).

Change 144171 had a related patch set uploaded by Alex Monk:
mw.Title: Add function to get title relative to an arbitrary namespace

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

Change 144171 merged by jenkins-bot:
mw.Title: Add method to get title relative to an arbitrary namespace

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

Just need to start using it now. Guess we'll have to wait for 1.24wmf23 for that.

(In reply to Alex Monk from comment #4)

Just need to start using it now. Guess we'll have to wait for 1.24wmf23 for
that.

Or 1.25wmf1. ;-)

Change 162016 had a related patch set uploaded by Jforrester:
mw.Title: Add method to get title relative to an arbitrary namespace

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

Change 162016 merged by jenkins-bot:
mw.Title: Add method to get title relative to an arbitrary namespace

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