[Mediawiki-l] Custom namespace

Jamie Bliss astronouth7303 at gmail.com
Thu Dec 30 20:28:14 UTC 2004


1.4 probably doesn't $wgExtraNamespaces in DefaultSettings.php because
it isn't actually required.

yes, but no HTML. And for the last 2 variables, I would rewrite as 

 $wgNamespacesWithSubpages[100] = 1;
 $wgNamespacesWithSubpages[101] = 1;
 
 $wgNamespacesToBeSearchedDefault[100] = 1;
 $wgNamespacesToBeSearchedDefault[101] = 1;

so that you don't accedently remove anything in the default arrays.
(But if it's copied correctly, it makes no difference.)

On Thu, 30 Dec 2004 12:01:56 -0800, Amgine <amgine at saewyc.net> wrote:
> 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
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> 


-- 
-------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!



More information about the MediaWiki-l mailing list