Last modified: 2013-02-02 18:53:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38112, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36112 - Update $wgNamespacesWithSubpages with new defaults from core
Update $wgNamespacesWithSubpages with new defaults from core
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-19 22:57 UTC by Krinkle
Modified: 2013-02-02 18:53 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2012-04-19 22:57:29 UTC
WMF [1]:
'wgNamespacesWithSubpages' => array(
    'default' => 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       => true,
     NS_TEMPLATE_TALK  => true,
     NS_HELP       => true,
     NS_HELP_TALK      => true,
     NS_CATEGORY_TALK  => true,

MediaWiki core [2]:
$wgNamespacesWithSubpages = array(
	NS_TALK           => true,
	NS_USER           => true,
	NS_USER_TALK      => true,
	NS_PROJECT_TALK   => true,
	NS_FILE_TALK      => true,
	NS_MEDIAWIKI      => true,
	NS_MEDIAWIKI_TALK => true,
	NS_TEMPLATE_TALK  => true,
	NS_HELP_TALK      => true,
	NS_CATEGORY_TALK  => true
);


Which means adding:
- NS_MEDIAWIKI
- NS_TEMPLATE
- NS_HELP

Adding stuff to the latter two could be problematic since they could be used in several ways by wikis, but NS_MEDIAWIKI is the one I'm mainly requesting be added.

Adding that one means it is possible to move a message in the MediaWiki: namespace including the translation subpages. Both on MW.org and on commons I found myself in the tedious task having to move them one by one.

Afaik uncontroversial change since the usage of the MediaWiki namespace is pretty much fixed. The other two, I'm not sure whether they should be carelessly added.


[1] http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php
[2] https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/DefaultSettings.php;h=67889844b68331eb2055f5257cbc0b2fda13b210;hb=HEAD#l2885
Comment 1 Sam Reed (reedy) 2012-04-20 10:24:12 UTC
That whole section needs/wants cleaning up
Comment 2 Krinkle 2012-04-22 15:25:48 UTC
Yeah, for most wikis it is currently overriding it instead of extending it. And would also be nice of most of those could use the NS_ constants for readability.
Comment 3 Krinkle 2012-05-09 19:39:15 UTC
removing target milestone of 1.20wmf1, 1.20wmf2 has been deployed already
Comment 4 Nemo 2012-09-16 17:57:14 UTC
(In reply to comment #2)
> Yeah, for most wikis it is currently overriding it instead of extending it.

Let's see if the patch for bug 29692 works.
Comment 5 Sam Reed (reedy) 2013-02-02 18:53:56 UTC
Mostly already done

Finished off in https://gerrit.wikimedia.org/r/47227

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links