Page MenuHomePhabricator

Accept numeric namespaces directly
Closed, DuplicatePublic

Description

When doing namespace database queries, some numeric namespace info is returned. However, when it's fed back to any endpoint of MediaWiki (eg. index.php, api.php), namespaces must be written in text form. It could be nice if we can just write "100:Foo" as well in addition to "Portal:Foo", and I guess it could solve must of needs of bug 48625.

If "100:Foo" is considered to clash a lot with existing titles, maybe we can use "[100]:Foo" or something, though that means we need to change title validation code in many places.


Version: 1.22.0
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=48625

Details

Reference
bz56301

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:16 AM
bzimport set Reference to bz56301.
bzimport added a subscriber: Unknown Object (MLST).

You can use {{ns:100}} (or even {{subst:ns:100}}) on-wiki.

I have no idea how to properly address this bug for the MediaWiki Web API (api.php) or the MediaWiki GUI (index.php).

(In reply to comment #1)

You can use {{ns:100}} (or even {{subst:ns:100}}) on-wiki.

I have no idea how to properly address this bug for the MediaWiki Web API
(api.php) or the MediaWiki GUI (index.php).

I mean index.php?title=[100]:Foobar for example.