Extension:DeleteBatch

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Allows to delete a batch of pages
Author(s)Template:Extension#username Bartek Łapiński
Latest versionTemplate:Extension#version 1.7.0 (2018-01-12)
MediaWikiTemplate:Extension#mediawiki 1.23+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
Added rightsTemplate:Extension#rights

deletebatch

Hooks usedTemplate:Extension#hook
AdminLinksManual:Hooks/AdminLinks

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

Check usage and version matrix.

The DeleteBatch extension adds a special page, Special:DeleteBatch, where users with the 'deletebatch' right can delete multiple pages easily. The user can delete pages either through the form or by uploading a text file containing the names (and optional delete reasons) of the deletable pages.

The syntax is:

  • page name|Reason for deletion

So if you wanted to delete the page called "Test" with the reason "no longer needed", you'd type:

Test|no longer needed

in the form on Special:DeleteBatch. This extension was based off on the maintenance script with the same name.

Installation[edit]

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

To users running MediaWiki 1.30 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.30 and earlier), instead of wfLoadExtension( 'DeleteBatch' );, you need to use:

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

Configuration[edit]

By default, this extension lets only bureaucrats delete batches. You can change it to, e.g., let sysops delete batches:

$wgGroupPermissions['bureaucrat']['deletebatch'] = false;
$wgGroupPermissions['sysop']['deletebatch'] = true;

See also[edit]