Extension:DeletePagesForGood

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
DeletePagesForGood

Release status:Extension status beta

ImplementationTemplate:Extension#type Page action
DescriptionTemplate:Extension#description Allows users to delete pages permanently from database
Author(s)Template:Extension#username Paladoxtalk
Latest versionTemplate:Extension#version 2.0 (2016-01-07)
MediaWikiTemplate:Extension#mediawiki 1.25+
PHPTemplate:Extension#php 5.3.3+
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
Added rightsTemplate:Extension#rights

deleteperm

Hooks usedTemplate:Extension#hook
SkinTemplateNavigation::UniversalManual:Hooks/SkinTemplateNavigation::Universal
UnknownActionManual:Hooks/UnknownAction

Translate the DeletePagesForGood extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

The DeletePagesForGood extension allows users to delete pages permanently from database by adding a new delete tab to each page.

Installation[edit]

  • Download and place the file(s) in a directory called DeletePagesForGood in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'DeletePagesForGood' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'DeletePagesForGood' );, you need to use:

require_once "$IP/extensions/DeletePagesForGood/DeletePagesForGood.php";

User rights[edit]

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[edit]

To configure this, add some lines to your LocalSettings.php:

$wgDeletePagesForGoodNamespaces = array(
	NS_MAIN => true,
	NS_IMAGE => true,
	NS_IMAGE_TALK => true,
	NS_CATEGORY => true,
	NS_CATEGORY_TALK => true,
	NS_TEMPLATE => true,
	NS_TEMPLATE_TALK => true,
	NS_TALK => true,
	NS_USER => true,
	NS_USER_TALK => true,
	NS_FILE => true,
	NS_FILE_TALK => true,
);

Built-in namespaces are described on meta-wiki.