Extension:DeletePagesForGood
Appearance
DeletePagesForGood 发行状态: 稳定版 |
|
---|---|
实现 | 页面操作 |
描述 | 讓用户从数据库中永久删除页面 |
作者 | Paladox留言 |
最新版本 | 2.0 |
MediaWiki | >= 1.38.0 |
数据库更改 | 否 |
Composer | mediawiki/deletepagesforgood |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
|
|
季度下載量 | 14 (Ranked 122nd) |
前往translatewiki.net翻譯DeletePagesForGood扩展 | |
問題 | 开启的任务 · 报告错误 |
此扩展通过添加一个新的“删除”分页来讓用户永久删除页面。
Even if you permanently delete a page, the page title, how many edits does the page have and the time of edits can still be seen through CheckUser if you enter the user or IP address who created or edited the page.
When a page is permanently deleted, it removes the title from all users' watchlist.
Limitations
A page being permanently deleted is like deleting a file on a hard drive. It does not necessarily ensure all references to the page have been purged from the files storing the database, or the hard drive that those files are stored on.
安装
- 下载文件,并将解压后的
DeletePagesForGood
文件夹移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DeletePagesForGood - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'DeletePagesForGood' );
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
用户权限
您可以通过LocalSettings.php 设置权限:
默认为DeletePagePermanently.php:
$wgGroupPermissions['*']['deleteperm'] = false;
$wgGroupPermissions['user']['deleteperm'] = false;
$wgGroupPermissions['bureaucrat']['deleteperm'] = false;
$wgGroupPermissions['sysop']['deleteperm'] = true;
此扩展提供一个新的deleteperm
权限。
命名空间
为设置该权限,向LocalSettings.php 添加如下信息:
$wgDeletePagesForGoodNamespaces = [
NS_MAIN => true,
NS_TALK => true,
NS_CATEGORY => true,
NS_CATEGORY_TALK => true,
NS_TEMPLATE => true,
NS_TEMPLATE_TALK => true,
NS_USER => true,
NS_USER_TALK => true,
NS_FILE => true,
NS_FILE_TALK => true,
];
自带命名空间在命名空间帮助页面 中有所描述。