Udvidelse:UndeleteBatch

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:UndeleteBatch and the translation is 44% complete.

Other languages:
English • ‎dansk • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
UndeleteBatch
Release status: stabil
Implementation Special page
Beskrivelse Allows to undelete a batch of pages
Forfatter(e) Nathan Larson (Leucostictetalk)
Latest version 1.0.0 (2013-12-23)
MediaWiki 1.23+
PHP 5.3+
Database changes Nej
Licens GNU General Public License 2.0 or later
Download
undeletebatch
Translate the UndeleteBatch extension if it is available at translatewiki.net

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

Usage

Syntaksen er:

  • sidenavn|Reason for undeletion

So if you wanted to undelete the page called "Test" with the reason "needed again", you'd type:

Test|needed again

in the form on Special:UndeleteBatch.

Installation

  • Download and place the file(s) in a directory called UndeleteBatch in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/UndeleteBatch/UndeleteBatch.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Konfiguration

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

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

Se også

  • Udvidelse:DeleteBatch - the extension (1) that does the opposite of what this one does, and (2) from which most of the code for this extension was borrowed