Manual talk:$wgNamespacesWithSubpages

Activation on eo:WP
Please activate subpages in Esperanto Wikipedia mainspace. Thx ArnoLagrange (sysop and bureaucrat @ eo:WP ) 09:05, 17 November 2007 (UTC)


 * Wrong place. Please ask at Bugzilla. --HappyDog 12:15, 19 November 2007 (UTC)

Example to get this working
ftp down your LocalSettings.php file

add the following 2 lines of code:

$wgExtraNamespaces = array(100 => "YOURNAMESPACE", 101 => "YOURNAMESPACE_talk"); $wgNamespacesWithSubpages[100] = true;

upload the LocalSettings.php file

create the following as the parent page name: YOURNAMESPACE:Home

then create the following as a childpage name: YOURNAMESPACE:Home/Child1

this will embed a simple < YOURNAMESPACE:Home link at the top of the child. Unfortunately, the page name is mucked up with the namespace, colon, parent, and slash.

Problems with subpages in the main namespace
site: wikademia.org -> subpages are not working in main namespace... some sort of error. If you take a look and can tell me how to fix it, then 1000 thanks. Thanks.


 * I don't see any errors. —Emufarmers(T 11:02, 4 April 2009 (UTC)


 * http://wikademia.org/Scratch_9/Test goes to missing.html ... subpages do work in user space and other namespaces, like at http://wikademia.org/Meta:Scratch/Scratch ...


 * I would guess you have a rewrite rule that doesn't always allow for slashes in titles. —Emufarmers(T 02:32, 5 April 2009 (UTC)


 * in .htaccess? I don't even see a .htaccess ... or somewhere else?

Disable subpages for all namespaces
Hello, will this directive disable subpages for all namespaces?

$wgNamespacesWithSubpages = array;

--89.185.250.132 16:04, 6 June 2010 (UTC)


 * It should. --Bachsau 10:44, 8 July 2010 (UTC)

?
$wgNamespacesWithSubpages[NS_MAIN] = true;
 * 1) Enable subpages in the main namespace

Nothing in mediawiki 1.6.

Why disable by default?
Why are most of the core (non-talk) namespaces disabled by default? Wikipedia has most of them enabled. And the only reason they disable it for the mainspace is for encyclopedia structure. For a general-purpose wiki I see even less of a reason to disable subpages. 65.87.26.122 01:23, 29 February 2012 (UTC)
 * The distinction dates back to pre r1284 which is the dark ages. Back in those days, mediawiki's default config much more reflected how things were wanted on wikipedia instead of wikipedia having custom config in cases where they wanted weird things. Thus I'd guess its mostly for historical reasons, and no one has ever changed it. Bawolff (talk) 04:02, 29 February 2012 (UTC)