Manual talk:$wgNamespacesWithSubpages

From MediaWiki.org

Jump to: navigation, search

[edit] 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)

[edit] 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.

Personal tools