Bug #381
closedactivate "subside" feature for template namespace
0%
Description
From
https://wiki.documentfoundation.org/Wiki_Menu#Structure_of_the_template :
"Attention: In a localized menu template you should not use the {{Lang|}}, but {{ManualLang}} (see it's documentation page for how to use it).
The reason is that for the Template-namespace the subside feature isn't enabled so you won't get the right links.
For more information about that look at http://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages"
This turned off feature is causing seldom, but useless problems when creating / improving templates on our wiki. Turning the feature on for the template namespace, we could delete another template and simplify existing templates by using Template:Lang. Moreover adding new languages to the template would require only two (instead of three) edits then.
Moreover: for the case we will install the translation extension (even in a test wiki), the transformation process would be much easier I guess.
To change the configuration, see
https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages
Updated by Florian Effenberger over 10 years ago
If you can send the required configuration block for LocalSettings.php
, we can add this - copy & paste preferred :-)
When the new infra is working, we can give individual access to the config file
Updated by Dennis Roczek about 10 years ago
Florian Effenberger wrote:
LocalSettings.php should contain at the moment a false in the following line, this should be changed to true.If you can send the required configuration block for
LocalSettings.php
, we can add this - copy & paste preferred :-)
When the new infra is working, we can give individual access to the config file
- Enable subpages in the template namespace
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
It could also be look like
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
);
so please change ("example 1") or (very likely) add the following ("example 2") lines:
Example 1:
NS_TEMPLATE_TALK => true,
NS_TEMPLATE => true,
Example 2:
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
$wgNamespacesWithSubpages[NS_TEMPLATE_TALK] = true;
Updated by Dennis Roczek about 10 years ago
- Assignee deleted (
Dennis Roczek)
reset assignment. @Florian is this one for you or for Alex? :-d
Updated by Alexander Werner about 10 years ago
Changed$wgNamespacesWithSubpages[NS_MAIN] = true;
to$wgNamespacesWithSubpages[NS_MAIN] = true;
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
$wgNamespacesWithSubpages[NS_TEMPLATE_TALK] = true;
Updated by Alexander Werner about 10 years ago
- Status changed from New to Resolved
Updated by Dennis Roczek about 10 years ago
- Status changed from Resolved to In Progress
Hi Alex,
could you do this also for the category namespace? I missed that and we started to add / use more categories lately and moving pages to language categories (when there enough language pages)... ;-)
Updated by Florian Effenberger almost 10 years ago
- Due date set to 2014-11-21
Seems a bit overdue, thus setting due date until the end of next week - should be fairly easily doable
Updated by Alexander Werner almost 10 years ago
- Status changed from In Progress to Resolved
Done please check.
Updated by Dennis Roczek almost 10 years ago
Yeah, it does work. :-)
https://wiki.documentfoundation.org/Category:Website/de
So finally this ticket can be closed. ;-)
Updated by Florian Effenberger almost 10 years ago
- Status changed from Resolved to Closed