Namespace manager


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:

bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz7803.
bzimport created this task.Via LegacyNov 3 2006, 8:46 PM
bzimport added a comment.Via ConduitNov 3 2006, 8:47 PM

webboy wrote:

Namespace manager patch

attachment nsm.patch ignored as obsolete

bzimport added a comment.Via ConduitNov 3 2006, 8:49 PM

webboy wrote:

Namespace manager patch including new files

attachment nsm-new.patch ignored as obsolete

werdna added a comment.Via ConduitNov 3 2006, 10:44 PM

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

bzimport added a comment.Via ConduitNov 4 2006, 9:20 AM

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."

werdna added a comment.Via ConduitNov 4 2006, 9:22 AM

Right. I discussed this with others on IRC.

daniel added a comment.Via ConduitNov 5 2006, 11:16 AM
  • Bug 5135 has been marked as a duplicate of this bug. ***
bzimport added a comment.Via ConduitMar 17 2007, 4:36 PM

lcarsdata wrote:

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

Peachey88 added a comment.Via ConduitApr 30 2011, 12:10 AM

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

bzimport added a comment.Via ConduitNov 10 2011, 5:53 AM

sumanah wrote:

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

Reedy added a comment.Via ConduitNov 10 2011, 10:30 PM

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

Eloquence added a comment.Via ConduitJun 14 2012, 2:06 AM

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

Jdforrester-WMF added a comment.Via ConduitMar 18 2014, 2:07 AM

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.

Legoktm added a comment.Via ConduitMar 20 2014, 4:53 AM

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

Add Comment