Extension:Automatic Groups
From MediaWiki.org
|
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 |
| Version | 1.1 (July 21, 2007) |
| MediaWiki | 1.11.0+ |
| Download | from Subversion README |
| Hooks used | |
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 );

