Project

General

Profile

Actions

Bug #381

closed

activate "subside" feature for template namespace

Added by Dennis Roczek almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Low
Category:
Wiki
Target version:
-
Start date:
Due date:
2014-11-21
% Done:

0%

Tags:

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

Actions #1

Updated by Florian Effenberger almost 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

Actions #2

Updated by Florian Effenberger almost 10 years ago

  • Assignee set to Dennis Roczek
Actions #3

Updated by Dennis Roczek almost 10 years ago

Florian Effenberger wrote:

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

LocalSettings.php should contain at the moment a false in the following line, this should be changed to true.
  1. 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;

Actions #4

Updated by Dennis Roczek over 9 years ago

  • Assignee deleted (Dennis Roczek)

reset assignment. @Florian is this one for you or for Alex? :-d

Actions #5

Updated by Florian Effenberger over 9 years ago

  • Assignee set to Alexander Werner

For Alex

Actions #6

Updated by Alexander Werner over 9 years ago

Changed
$wgNamespacesWithSubpages[NS_MAIN] = true;
to
$wgNamespacesWithSubpages[NS_MAIN] = true;
$wgNamespacesWithSubpages[NS_TEMPLATE] = true;
$wgNamespacesWithSubpages[NS_TEMPLATE_TALK] = true;

Actions #7

Updated by Alexander Werner over 9 years ago

  • Status changed from New to Resolved
Actions #8

Updated by Dennis Roczek over 9 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)... ;-)

Actions #9

Updated by Florian Effenberger over 9 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

Actions #10

Updated by Alexander Werner over 9 years ago

  • Status changed from In Progress to Resolved

Done please check.

Actions #11

Updated by Dennis Roczek over 9 years ago

Yeah, it does work. :-)

https://wiki.documentfoundation.org/Category:Website/de

So finally this ticket can be closed. ;-)

Actions #12

Updated by Florian Effenberger over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF