A few days back we have discussed about bulk deleting pages on a MediaWiki website and yesterday a user told us that he accidentally ended-up deleting some very important pages off from his website.
Now no worries, UndeleteBatch is another MediaWiki extension that enables you to revert this action. It does the opposite of what ‘Delete Batch’ does on your wiki.
Start by downloading UnDeleteBatch extension’s ZIP from GitHub. Next upload and extract it in your MediaWiki’s root -> /extensions directory.
Make sure all extension files are located in UndeleteBatch directory in your extensions/ folder.
Now add the following code at the bottom of your LocalSettings.php file located in your site’s root:
This will add a new special page, Special:UndeleteBatch, where users with the ‘undeletebatch’ right would be able to undelete multiple wiki pages at once .
By default, this extension allows only bureaucrats to undelete batches. But you can change it to, e.g., let sysops undelete batches:
$wgGroupPermissions['bureaucrat']['undeletebatch'] = false; $wgGroupPermissions['sysop']['undeletebatch'] = true;
User can undelete pages either through the form or by uploading a text file containing the names (and optional undelete reasons) of the pages, just as we did for mass deleting pages.