Duplicator

From Wiki4Intranet
Jump to: navigation, search

Duplicator is a MediaWiki extension.

Status for Mediawiki4Intranet distribution:

  • Inclusion date: 2013-05-29
  • Included version: newest available
  • Improvement status: Minor improvements in MediaWiki4Intranet

Usage

After installation every user who's granted the 'duplicate' right will see "Duplicate this page" link in the toolbox. The extension can be used by clicking this link, or by directly going to Special:Duplicator.

On the special page, you need to specify source and destination articles and select whether you want to:

  • Copy talk page
  • Copy subpages
  • Copy history of pages

Our improvements

  • Allow to clone pages with or without history
  • Do not refuse to clone pages with revision count exceeding $wgDuplicatorRevisionLimit, just copy its recent $wgDuplicatorRevisionLimit revisions.
  • Report copied revision count and include last revision number in copied article summary
  • Allow to clone subpages along with the main page

Installation

Add the following into your LocalSettings.php:

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

You can configure the 'duplicate' grant and maximum cloned revision count via:

$wgGroupPermissions['user']['duplicate'] = true;
$wgDuplicatorRevisionLimit = 250;