Manual talk:$wgExtraNamespaces

From MediaWiki.org

Jump to: navigation, search

I have attempted this process on wiki 1.6.8 on my site and adding the variable to the localsettings.php file has not seemed to add the new namespaces to the site. Is this information out of date to the current version(s) of mediawiki? or is somethnig going on here? I've seen other issues reported on help pages but noone has solutions for the problem. TheHYPO 02:00, 8 August 2006 (UTC)

Contents

[edit] Numberrange for namespace

In MediaWiki 1.5.8 namespaces are of type INT(11) in the database. This allows numbers up to 2147483647.

[edit] Namespace, where?

Which file should i edit for adding a Namespace? The LocalSettings.php file? or another? --Hó-òh Diskussion 12:47, 19 November 2006 (UTC)

See Help:Custom namespaces. --Linus M. 19:58, 10 May 2007 (UTC)

[edit] If this is the code for extra namespaces:

$wgExtraNamespaces = array(100 => "Portal", 101 => "Portal_talk");

Then how do you figure out the code for the default, given namespaces? PatPeter 22:06, 20 November 2007 (UTC)

The standard namespaces are defined in the file includes/Defines.php in the MediaWiki code. -- Tbleher 10:28, 22 January 2008 (UTC)

[edit] Why I can create a custom namespace without configure it?

I'm using MediaWiki 1.12, and I can create a page in a namespace which never be defined in LocalSettings.php, like 'wiki/Novel:Crime_And_Punishment'. Is this new feature or I miss something? —The preceding unsigned comment was added by Halcyon8 (talkcontribs) . Please sign your posts with ~~~~!

That's not a namespace; you just happened to put a colon in the page title. —Emufarmers(T|C) 17:07, 22 August 2008 (UTC)