Last modified: 2014-09-24 00:49:28 UTC
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 ($wgNamespaceAliases). 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
Created attachment 2633 [details] Namespace manager patch
Created attachment 2634 [details] Namespace manager patch including new files
I don't know whether we'd want this in core functionality. Couldn't this be implemented as an extension somehow?
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. ***
I found this bug in the old tracker and thought that it could be implemented a spart of this. See: https://sourceforge.net/tracker/index.php?func=detail&aid=1622309&group_id=34373&atid=411195
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
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: https://www.mediawiki.org/wiki/Requests_for_comment/Associated_namespaces … 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]].