[Mediawiki-l] Custom namespace

Amgine amgine at saewyc.net
Thu Dec 30 20:01:56 UTC 2004


I'm trying to create a custom name space, or three, on my wiki.

http://meta.wikimedia.org/wiki/Help:Custom_namespaces gives great 
instructions, but only once you've copied $wgExtraNamespaces from 
/wiki/includes/DefaultSettings.php. 1.4beta3 DefaultSettings.php does 
not contain $wgExtraNamespaces.

Can I simply add to LocalSettings.php:
<pre>$wgExtraNamespaces =
    array( 100 => 'Foo',
        101 => 'Foo_talk');

$wgNamespacesWithSubpages =
    array( -1 => 0, 0 => 0, 1 => 1, 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 
0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1,
        100 => 1, 101 => 1);

$wgNamespacesToBeSearchedDefault =
    array( -1 => 0, 0 => 0, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 
0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1,
        100 => 1, 101 => 1);</pre>

And get a Foo: and Foo talk: namespaces?

Amgine



More information about the MediaWiki-l mailing list