Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create my own custom group in mediawiki?

Tags:

mediawiki

I have been reading carefully through the mediawiki documentation but I have not been able to find out how to create new groups.

When I look at Special:Userrights, I see only 3 groups : Bots, Sysops, Bureaycrats

I would like to create my own custom groups, so I can use some extensions like the http://www.mediawiki.org/wiki/Extension:Group_Based_Access_Control.

Can someone tell me how it's done, or point me to some documentation?

like image 502
jeph perro Avatar asked Oct 20 '08 16:10

jeph perro


People also ask

How do I create a group in MediaWiki?

Creating a new group and assigning permissions to itMediaWiki:Group-<group-name> (content: Name of the group ) MediaWiki:Group-<group-name>-member (content: Name of a member of the group ) MediaWiki:Grouppage-<group-name> (content: Name of the group page )

How do you add a user on Wikipedia?

Go to Special Pages > User rights management and enter the username of the person to be added (Note: if you're not sure you can also go to Special Pages > User List to see a listing of everyone's that has logged into the site.) From the Available Groups column select the group the user should be added to.

What is MediaWiki namespace?

The “MediaWiki” namespace is used to hold system messages and other important content. For instance, the page MediaWiki:Edit (or MediaWiki:Vector-view-edit in the default “Vector” skin) contains the text that fills the “Edit” tab at the top of every page.

How do I delete my MediaWiki account?

Deleting a user Account When MediaWiki users are created by spam bots, they cannot be deleted through the MediaWiki administration section. In order to delete these users, you will need to manually remove them from the database through PhpMyAdmin.


2 Answers

You can add permissions for new groups to your LocalSettings.php file and they will automatically appear in the Special:UserRights page.

For example, I wanted to disallow editing by regular users but create a "Trusted" group that was allowed to edit. The following code creates a "Trusted" group that is equal to the "user" group, except that "Trusted" users can edit but "user" users cannot.

$wgGroupPermissions['Trusted'] = $wgGroupPermissions['user']; $wgGroupPermissions['user'   ]['edit']          = false; $wgGroupPermissions['Trusted']['edit']          = true; $wgGroupPermissions['sysop'  ]['edit']          = true; 

On the Special:UserRights page, I can now check the "Trusted" box to make users trusted.

like image 172
richardkmiller Avatar answered Sep 18 '22 23:09

richardkmiller


You can alter the appearance of the group name by creating the following messages: (For a group named ninja:)

  • MediaWiki:Group-ninja (content: Ninjas)
  • MediaWiki:Group-ninja-member (content: ninja)
  • MediaWiki:Grouppage-ninja (content: Project:Ninjas)

This will insure that the group will be referred to as "Ninjas" throughout the interface, and a member will be referred to as a "ninja", and overviews will link the groupname to Project:Ninjas.

(source: http://www.mediawiki.org/wiki/Manual:User_rights#Examples)

like image 23
sir KitKat Avatar answered Sep 21 '22 23:09

sir KitKat