Liang Chen wrote:
HI,
I tried to add an article behind another article following by a
"/", like "Abacus/TOEFL", and "User:BiGreat/Gaokao2".
However, in the second page "User:BiGreat/Gaokao2", there will be a
"< User:BiGreat" below the title, but in the first page
"Abacus/TOEFL", there isn't a "< Abacus".
I don't know why. Could somebody help me?
The two page at:
http://kaoshi.wobuxihuan.org/Abacus/TOEFL
http://kaoshi.wobuxihuan.org/User:BiGreat/Gaokao2
That is because some namespaces allow subpages, others don't. Check
includes/DefaultSettings.php on line 1398, you'll see that by default
Talk and User pages (among others) allow subpages, but NS_MAIN doesn't.
Just add NS_MAIN => true to the array in LocalSettings.php, or better,
put this in LocalSettings.php:
array_push($wgNamespacesWithSubpages, array(NS_MAIN => true));
(Might not correct code, I haven't tested it)
The array in DefaultSettings.php:
$wgNamespacesWithSubpages = array(
NS_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_PROJECT_TALK => true,
NS_IMAGE_TALK => true,
NS_MEDIAWIKI_TALK => true,
NS_TEMPLATE_TALK => true,
NS_HELP_TALK => true,
NS_CATEGORY_TALK => true
);
Boris