Extension:MultiPages

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
MultiPages
Release status: unmaintained
Implementation Page action
Description Moves or deletes a page and all its subpages. The functions work simultaneously in all Namespaces.
Author(s) Peter Gostelow (PeterMGtalk)
Latest version 0.0.2
MediaWiki 1.14+
PHP 5.2+
License GNU Lesser General Public License 2.1
Download external source
The result table can be thousands of rows, which may be fixed in a later release. i18n not fully supported.
  • $mpForm
  • $mpLogin
Translate the MultiPages extension if it is available at translatewiki.net
Check usage and version matrix.

The MultiPages extension allows to moves or delete a page and all its subpages. The functions work simultaneously in all namespaces.

The special page functions (MultiMove, MultiDelete) will prune and graft page trees in one or all namespaces. These are normally administration functions used to reorganize subpage structured websites. If you do not use subpages on your website, you do not need this extension.

When you have several namespaces that have the exact same tree structure (i.e. subpages), the functions will simultaneous move/delete subpages in all namespaces. If not, you may select one namespace and move/delete subpages within that namespace.

You may not move subpages from one namespace to another, move/delete protected pages, move/delete without edit permissions, nor move subpages over existing pages.

The functions use the typical page editing cycle: view, preview, and save. The view allows you to enter initial page criteria and preview. The Preview presents a table of all affected pages, page criteria input fields, and both Preview and Save buttons. You may change the criteria and preview until you're satisfied and then hit save.

The Save will process the pages and append the status to the result table. The table now shows the same pages with the result for each and display the view button for another move/delete.

For a MultiMove, redirects will be automatically generated, which may or may not be what you want. You may delete all the redirects by selecting MultiDelete and ticking the redirect checkbox. This will cause MultiDelete to only select and delete matching redirect pages.

Usage[edit]

The usage for moving and deleting are similar, select Special pages from the wiki's side bar and under the Other special pages (for version 14) select either Multiple page delete or multiple page move.

The usage details are in the README file found in the extension package. The special pages allow you to enter database regular expressions, which are both complex and server specific. If your website does not use subpages, this extension is worthless to you.

Download instructions[edit]

Source details are available on LibrePlanet, and the tarball Multipages-0.0.2.tar.bz2.

Untar the file to your MediaWiki extensions directory and follow the Installation section.

Installation[edit]

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

Configuration parameters[edit]

$mpForm
Toggles a form special page. Experimental.
$mpLogin
Toggles a login page. Experimental.

The multi move and multi delete pages are unaffected by these parameters, but they must be present and both set to false.

User rights[edit]

The user must be logged in or have the proper execute rights.

See also[edit]