Page MenuHomePhabricator

Namespace manager
Open, LowestPublic


Author: webboy

This patch includes the namespace manager, written by Erik Möller for Wikidata
and adapted by me for MediaWiki 1.9alpha.

This code is fully tested and documented (for Doxygen) and includes an
installer/updater to add the namespace and namespace_names tables to new and
existing installations and fill them with canonical names, default (translated)
names, default aliases and local namespaces ($wgExtraNamespaces) and aliases

Known bugs:

  • Main namespace prefixes don't work.
  • 4 parser tests need to be rewritten (Subpage link, Subpage noslash link,

{{/Subpage}} and Disabled subpages) since the subpages option is now handled by
the namespace manager

  • Default link prefixes don't work and are therefore hidden in Special:Namespaces
  • Grammatical errors

Version: unspecified
Severity: enhancement
See Also: T33063



Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:28 PM
bzimport set Reference to bz7803.
bzimport added a subscriber: Unknown Object (MLST).

webboy wrote:

Namespace manager patch

attachment nsm.patch ignored as obsolete

webboy wrote:

Namespace manager patch including new files

attachment nsm-new.patch ignored as obsolete

I don't know whether we'd want this in core functionality. Couldn't this be
implemented as an extension somehow?

webboy wrote:

As extension it would not be possible to:

  • Make sure the namespaces are loaded before $wgContLang
  • Be easy installable (two tables must be created and filled)
  • Create namespaces without talk namespaces
  • Change the default name of NS_PROJECT with Special:Namespaces
  • Delete default namespace aliases
  • Hide namespaces in lists
  • Change the movable setting of namespaces (by extensions)

and default link targets will maybe never work

Also [[meta:Help:Namespace manager]] says "This feature [...] is intended to
ship with a future version of MediaWiki."

Right. I discussed this with others on IRC.

  • Bug 5135 has been marked as a duplicate of this bug. ***

lcarsdata wrote:

I found this bug in the old tracker and thought that it could be implemented a
spart of this. See:

*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*

sumanah wrote:

Adding the need-review keyword here to indicate that the patch has not been reviewed yet.

Marking obsolete, it's 6 years old, so is going to be of very little news

As noted, patch is obsolete & the whole approach would have to be investigated from scratch. Closing as WONTFIX for now.

Reopening. This is something that is now the subject of an RfC:

… and even if that RfC is closed as uninterested (which I think is unlikely), I think we conceivably would want to implement this at some point for MediaWiki's growth.

Skizzerz has written up some nice notes at [[mw:User:Skizzerz/Namespaces]].

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 13 2016, 10:16 AM
Restricted Application added a subscriber: PokestarFan. · View Herald TranscriptAug 10 2017, 1:48 AM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptApr 12 2020, 9:55 AM