Manual:RevisionDelete/zh


 * “Suppress”和“suppression”重定向至此
 * 您可能想查找Extension:Oversight，被此功能取代的扩展. 

截止MediaWiki 1.16.0版本，MediaWiki有一个核心功能（默认禁用），它允许特定用户删除个别页面修订版本. 它也存在一个特殊页面叫做Special:RevisionDelete.

它是干什么的


当一位拥有“deleterevision”权限（参见启用章节）的用户查看历史页面时，他们将会在页面上看见一个写着“显示/隐藏选择的版本”的按钮. 他们还将在所有修订版本旁看到复选框. 如果他们选中了其中的一项或者是多项并点击了这个按钮，将会有一个界面允许他们进行如下操作：


 * 从用户隐藏修订版本文字
 * 从用户隐藏编辑摘要
 * 从用户隐藏编辑者的用户名/IP地址

如果他们拥有“suppressrevision”权限，他们也能够对于管理员隐藏相关信息.

在日志项中也提供了类似的功能. 同等的权限为“deletelogentry”和“suppressionlog”.

Deleted revisions and events will still appear in the page history and logs, but parts of their content will be inaccessible to regular users.

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

启用
To enable it, you have to set some user rights in LocalSettings.php.

例如：


 * To enable Sysops to hide revisions and log items from users :


 * To enable Oversighters to hide usernames from users and Sysops :


 * To enable Oversighters to hide revisions and log items from users and Sysops :


 * To enable Observers to view revisions and log items hidden from users and Sysops :



To assign the 'oversight' rights to users, log in as the site bureaucrat (Only bureaucrats can assign this role to other users, usually user with id #1 has it by default) and go to Special:UserRights. Enter the name of the user that you wish to make an Oversighter, and then check the "oversight" box. 参见手册:用户权限以获取更多信息.

参见

 * Help:修订版本删除
 * API parameters used for listing deleted revisions