Last modified: 2013-12-24 14:19:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58301, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56301 - Accept numeric namespaces directly
Accept numeric namespaces directly
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-29 08:27 UTC by Liangent
Modified: 2013-12-24 14:19 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2013-10-29 08:27:59 UTC
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.
Comment 1 MZMcBride 2013-12-24 13:03:21 UTC
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).
Comment 2 Liangent 2013-12-24 14:19:22 UTC
(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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links