Page MenuHomePhabricator

Several tweeks for se.wikimedia.org
Closed, ResolvedPublic

Description

Author: mickewiki

Description:
Hello, according to a decision from the board of Wikimedia Sverige, only members should be allowed to edit most pages at se.wikimedia. So we want the following tweeks:

  1. A usergroup called "Medlem" ("Medlem" is the singular, it's "Medlemmar" in plural if that is what should be used) with the same rights as the user group "autoconfirmed" usually have. Admins should be able to add users to this group (much in the same way as they can with rollbackers on other wikis)
  2. A new namespace called "Projekt:" and "Projektdiskussion:" (which means "Project" and "Project talk" respectively).
  3. Edit possibilitys and fileuploads should be closed for everyone, except users in the group "Medlem" and admins.
  4. However everyone except IPs shuould be able to edit in the new namespace "Projekt:" and "Projektdiskussion:"

/Micke


Version: unspecified
Severity: enhancement
URL: http://se.wikimedia.org

Details

Reference
bz14665

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:11 PM
bzimport set Reference to bz14665.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

Done (I hope).

I've enabled the following config. It should do what you've requsted. Please correct me if I misunderstood it.

'wgAddGroups' => array(

'sewikimedia' => array(
	'bureaucrat' => array( 'bot', 'sysop', 'bureaucrat', 'medlem' ),
),

),

'wgRemoveGroups' => array(

'sewikimedia' => array(
	'bureaucrat' => array( 'bot', 'sysop', 'bureaucrat', 'medlem' ),
),

),

'groupOverrides' => array(
'sewikimedia' => array(

		'*' => array(
			'edit' => false,
			'editallpages' => false,
			'editprojekt' => true,
		),
		'user' => array(
			'upload' => false,
			'editallpages' => false,
			'editprojekt' => true,
		),
		'sysop' => array(
			'upload' => false,
			'editallpages' => true,
			'editprojekt' => true,
		),
		'medlem' => array( 
			'move' => true, 
			'move-subpages' => true, 
			'read' => true, 
			'edit' => true, 
			'createpage' => true, 
			'createtalk' => true, 
			'upload' => true, 
			'reupload' => true, 
			'reupload-shared' => true, 
			'minoredit' => true, 
			'purge' => true,
			'editallpages' => true,
			'editprojekt' => true,
		),

),
),

'wgExtraNamespace' => array(

'sewikimedia' => array(
	100 => 'Projekt',
	101 => 'Projektdiskussion',
),

),

'wgNamespaceProtection => array(
'sewikimedia' => array(

		NS_MAIN => array( 'editallpages' ),
		NS_TALK => array( 'editallpages' ),
		NS_USER => array( 'editallpages' ),
		NS_USER_TALK => array( 'editallpages' ),
		NS_PROJECT => array( 'editallpages' ),
		NS_PROJECT_TALK => array( 'editallpages' ),
		NS_IMAGE => array( 'editallpages' ),
		NS_IMAGE_TALK => array( 'editallpages' ),
		NS_MEDIAWIKI => array( 'editallpages' ),
		NS_MEDIAWIKI_TALK => array( 'editallpages' ),
		NS_TEMPLATE => array( 'editallpages' ),
		NS_TEMPLATE_TALK => array( 'editallpages' ),
		NS_HELP => array( 'editallpages' ),
		NS_HELP_TALK => array( 'editallpages' ),
		NS_CATEGORY => array( 'editallpages' ),
		NS_CATEGORY_TALK => array( 'editallpages' ),
		100 => array( 'editprojekt' ),
		101 => array( 'editprojekt' ),

),
),

bugs wrote:

I think it should be...

'*' => array(
        'editprojekt' => false,
),

instead of true ("everyone *except* IPs"). But otherwise, it looks like it's working out fabulously and I'm impressed. :P

jeluf wrote:

Right you are.

		'*' => array(
			'edit' => false,
			'editallpages' => false,
			'editprojekt' => false,
		),

Fixed.

mickewiki wrote:

It looks good, but I have one or two things:

*It seems admins doesn't have access to Special:Userrights
(Special:Rättigheter in swedish) so that we can put people in the group
"Medlem".

*There were a couple of pages all ready kalled Projekt: eg.
[[Projekt:Wikipediabok 1]] what happened to these?

/Micke

jeluf wrote:

  1. changed add/remove groups to:

    'sewikimedia' => array( 'bureaucrat' => array( 'bot', 'sysop', 'bureaucrat', 'medlem' ), 'sysop' => array( 'medlem' ), ),
  1. moved the pages to their new namespace

PS: Please set the status to "REOPENED" if there are more things that need to be changed, otherwise I might miss your comments.

mickewiki wrote:

It looks fine now! Many thanks!

/Micke