Udvidelse:DeletePagesForGood

This page is a translated version of the page Extension:DeletePagesForGood and the translation is 27% complete.
MediaWiki extensions manual
DeletePagesForGood
Release status: stabil
Implementation Page action
Beskrivelse Allows users to delete pages permanently from database
Forfatter(e) Paladoxdiskussion
Latest version 2.0
MediaWiki >= 1.38.0
Database changes Nej
Composer mediawiki/deletepagesforgood
Licens GNU General Public License 2.0 or later
Download
  • $wgDeletePagesForGoodNamespaces
  • $wgDeletePagesForGoodDeleteContent
  • deleteperm
Quarterly downloads 14 (Ranked 122nd)
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. 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.

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.

Installation

  • Download and move the extracted DeletePagesForGood folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DeletePagesForGood
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'DeletePagesForGood' );
    
  •   DoneNavigate to Special:Version on your wiki to verify that the extension is successfully installed.

Brugerrettigheder

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.

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 .