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
Thanks!
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
Thanks!
-- ---BiGreat--- www.Liang-Chen.com
On Thu, Feb 08, 2007 at 11:48:52PM +0800, 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
The feature you're using is called "subpage". By default, subpages are only available in some namespaces, e.g. User.
In your LocalSettings.php, set
$wgNamespacesWithSubpages = array( NS_MAIN => true, 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 => true, NS_HELP_TALK => true, NS_CATEGORY_TALK => true );
to enable subpages in these namespaces.
Regards,
jens
If you only care about adding subpages to articles in the Main namespace, you can use this:
$wgNamespacesWithSubpages[NS_MAIN] = true;
On 2/8/07, Jens Frank jf@mormo.org wrote:
On Thu, Feb 08, 2007 at 11:48:52PM +0800, 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
The feature you're using is called "subpage". By default, subpages are only available in some namespaces, e.g. User.
In your LocalSettings.php, set
$wgNamespacesWithSubpages = array( NS_MAIN => true, 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 => true, NS_HELP_TALK => true, NS_CATEGORY_TALK => true );
to enable subpages in these namespaces.
Regards,
jens
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
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
Thanks
On 2/9/07, Boris Eetgerink boriseetgerink@planet.nl wrote:
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
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org