Extension:Automatic Groups

From MediaWiki.org

Jump to: navigation, search
Crystal Clear app error.png

This extension is obsolete!
It has been replaced by core functionality in the MediaWiki software (which was added in version 1.12.0).

           

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
Automatic Groups

Release status: stable

Implementation  User rights
Description Provides a convenient means to configure automatic user rights and group membership based on various criteria
Author(s)  Rob Church
Last Version  1.1 (July 21, 2007)
MediaWiki  1.11.0+
License No license specified
Download Download snapshot

Subversion [Help]
Browse source code

README

check usage (experimental)

The Automatic Groups extension provides a convenient means to configure additional automatic user rights and group membership for users matching specific criteria.

Valid criteria are:

  • account age
  • edit count

The extension requires MediaWiki 1.11.0 or above.

[edit] Configuration

Group criteria are set using the $wgAutomaticGroups global, which is an array mapping group names to an array of criteria. Rights criteria are set using $wgAutomaticRights, which has the same format.

The criteria are indexed by attribute, mapping to the minimum value required for that criterion.

Valid criteria are:

edits 
Minimum edit count
age 
Account age (in seconds)

[edit] Examples

To assign the group uploaders to all accounts at least 4 days old, one might use

$wgAutomaticGroups['uploaders'] = array( 'age' => 86400 * 4 );

To assign the delete right to all accounts at least 4 days old with at least 250 edits, one might use

$wgAutomaticRights['delete'] = array( 'age' => 86400 * 4, 'edits' => 250 );