Duplicator

From Wiki4Intranet
Revision as of 17:47, 29 May 2013 by VitaliyFilippov (Talk | contribs) (Created page with "{{Extension4info |name=Duplicator |description en=Create independent copies of pages, possibly with full edit histories and subpage support. |description ru=Клонирова...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;