Extension:SpecialNamespaces

Special:Namespaces is a MediaWiki extension that allows administrators to create and modify custom namespaces without directly editing the configuration files. It is based on the Special:Interwiki special page to work with the interwiki table, which was released under GPL by Stephanie Amanda Stevens.

History
This code was intended to be a short-lived 'kludge', adapting or twisting an existing extension to fill a new task.

There was one branch ("wikidata") of MediaWiki 1.6 which included a partially-complete Special:Namespaces editor. Namespaces could simply be created, renamed or removed right from the web interface. While some of the proposed capabilities (such as automatic moves of existing pages into the new namespaces) hadn't been implemented, Special:Namespaces did appear to have the makings of a useful tool.

Special:Namespaces was to exist in some form in the core MediaWiki code from version 1.7 onward. This didn't happen.

Some wikis (including a few in the Uncyclopedia Babel series) were actively using Special:Namespaces (MW1.6-wikidata), creating a need to preserve at least minimal namespaces functionality despite site upgrades to MW1.7, 1.8, 1.9.

As the original Special:Interwiki is GPL'ed, a modified version to provide Special:Namespaces functions can be created subject to the same GPL. This code is provided as-is, do feel free to blame User:Carlb (Carl Austin Bennett) on Uncyclopædia if it horribly breaks but do keep in mind that this is unsupported code, patched together merely to avoid losing Special:Namespaces entirely.

This extension is therefore not guaranteed to exhibit the level of rigorous scientific validation which normally goes into Uncyclopædia content.

Installation
1. Copy the code from Extension:Simple namespaces/sourcecode to extensions/SpecialNamespaces.php

2. Create database table namespace_names with the following SQL query (if it doesn't exist already):

3. Add one line to languages/Language.php, insert it immediately before the call to fixUpSettings: 4. Add  to LocalSettings.php

5. Installation can be verified through Special:Version page of your wiki

If you're replacing MW1.6-wikidata with some subsequent MediaWiki version, the `namespace` and `namespace_names` tables will already exist. This extension ignores the `namespace` portion and uses `namespace_names` in a compatible manner so that any existing MW1.6-wikidata custom namespaces will continue to operate normally.