Manual:RevisionDelete

From MediaWiki.org
Jump to: navigation, search
"Suppress" and "suppression" redirects here
Maybe you were looking for Extension:Oversight, a somewhat similar extension that has in some respects been superseded by this feature, but is still used on some major wikis.

As of MediaWiki 1.16.0 Core MediaWiki has a feature (disabled by default) that adds a special page called Special:RevisionDelete.

[edit] What it does

Screenshot of RevisionDelete functionality
Screenshot of RevisionDelete functionality

With that page you can change the visibility of a revision:

  • Hide revision text
  • Hide edit comment
  • Hide editor's username/IP

Or change the visibility of a log entry:

  • Hide action and target
  • Hide action comment
  • Hide editor's username/IP

Deleted revisions and events will still appear in the page history and logs, but parts of their content will be inaccessible to the public. A group of oversight users can also be created that has power to make these parts inaccessible to sysops as well.

For the technical part of this feature, see Bitfields for rev deleted.

[edit] Enabling

To enable it, you have to set some user rights in LocalSettings.php. The following example is a commented out part in DefaultSettings.php:

To hide revisions/log items from users:
$wgGroupPermissions['sysop']['deleterevision']  = true;
To hide usernames from users and Sysops:
$wgGroupPermissions['suppress']['hideuser'] = true;
To hide revisions/log items from users and Sysops (also needs deleterevision right):
$wgGroupPermissions['suppress']['suppressrevision'] = true;
For private suppression log access:
$wgGroupPermissions['suppress']['suppressionlog'] = true;

To assign this right to admin (user #1) or other users, log in as the site bureaucrat (Only bureaucrats can assign this role to other user, usually user with id #1 has it by default) and go to Special:UserRights. Enter the name of the user that you wish to assign as "oversight", and check then the "oversight" box.

Note: On Wikimedia wikis (like this one), the group name oversight is used instead of suppress.

[edit] See also

Language: English  • Español • Français • 日本語 • 한국어 • Polski • Português • Русский
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox