Extension:DeletePagesForGood
From Linux Web Expert
DeletePagesForGood Release status: stable |
|
---|---|
Implementation | Page action |
Description | Allows users to delete pages permanently from database |
Author(s) | Paladoxtalk |
Latest version | 2.0 |
MediaWiki | >= 1.34.0 |
Database changes | No |
Composer | mediawiki/deletepagesforgood |
License | GNU General Public License 2.0 or later |
Download | |
|
|
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the DeletePagesForGood extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The DeletePagesForGood extension allows users to delete pages permanently from the database by adding a new delete tab to each page.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/DeletePagesForGood</tvar>|Download]] and move the extracted <tvar name=name>
DeletePagesForGood
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DeletePagesForGood - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'DeletePagesForGood' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
User rights
You can configure the user rights in LocalSettings.php :
Defaults from DeletePagePermanently.php:
$wgGroupPermissions['*']['deleteperm'] = false;
$wgGroupPermissions['user']['deleteperm'] = false;
$wgGroupPermissions['bureaucrat']['deleteperm'] = false;
$wgGroupPermissions['sysop']['deleteperm'] = true;
The extension introduces a new user rights deleteperm.
Namespaces
To configure this, add some lines to your 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,
];
Built-in namespaces are described on the help page on namespaces .