Last modified: 2013-03-13 11:29:05 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 T39825, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37825 - Add ability to link by URL to namespaces by their number
Add ability to link by URL to namespaces by their number
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-22 10:54 UTC by Danny B.
Modified: 2013-03-13 11:29 UTC (History)
1 user (show)

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


Attachments

Description Danny B. 2012-06-22 10:54:51 UTC
If there is tool which is supposed to link to various pages and it is supposed to be crossproject, then although it can link to basic namespaces (-2 - 14) via canonical names, further namespaces can't be linked otherwise than obtaining current namespacelist from API. This is not practical for example in cases when tools run offline etc.

Therefore it would be practical to have ability to link by URL to namespaces via their numbers.

On wiki you can of course do [[{{ns:10}}:Foo]] to get Template:Foo, but you can not construct URL on external tools this way.

There are two possible solutions coming to my mind:

1) mywiki.example/wiki/10:Foo
2) mywiki.example/wiki/Special:CanonicalLink/10:Foo

I would personaly prefer the first solution because it is shorter and more intuitive. However I assume there could be some issues with existing page titles starting with numbers. So actually allowing the parser function to expand in URL might work:

3) mywiki.example/wiki/{{ns:10}}:Foo

If none of those above are possible, I would welcome even any other solution which would allow linking to namespaces via their numbers.
Comment 1 Liangent 2012-06-22 11:12:20 UTC
Or [10]:Foo?

In this way it can be used in URL only and avoid any conflict with existing title.

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


Navigation
Links