Duplicator

Revision as of 15:23, 28 November 2017 by Lsireta (talk | contribs)

Simple duplication of articles


The Duplicator extension provides a special page which allows the creation of independent copies (with separate edit histories) of pages.

Installation[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Duplicator&action=edit&section=1" title="Edit section: Installation">edit]

  • Download and place the file(s) in a directory called Duplicator in your extensions/ folder.
<span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/Duplicator/Duplicator.php"</span><span class="p">;</span>
  •  Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Duplicator&action=edit&section=2" title="Edit section: Configuration">edit]

Pages with a number of revisions over a set limit cannot be copied via this extension, to avoid excessive write load.

The default limit is 250. To change it, set $wgDuplicatorRevisionLimit in LocalSettings.phpafter the call to include the extension, e.g.

<span class="k">require_once</span> <span class="s2">"</span><span class="si">$IP</span><span class="s2">/extensions/Duplicator/Duplicator.php"</span><span class="p">;</span>
<span class="nv">$wgDuplicatorRevisionLimit</span> <span class="o">=</span> <span class="mi">500</span><span class="p">;</span>

Usage[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Duplicator&action=edit&section=3" title="Edit section: Usage">edit]

To duplicate an article, go to the "Special:Duplicator" page. On article pages, a convenient link is provided in the toolbox which will pre-populate the source page title when used.

Enter the title of the article to be copied and the destination title in the appropriate fields, and select whether or not to duplicate the associated discussion page. The latter option will not be presented if the discussion page does not exist.

Click the Duplicate button to perform the operation. You will be advised when this is complete, or in the case of errors. The copy will be logged in the destination page history, and an entry will be created in the recent changes list.

18x22px Note: It is not possible to duplicate a page which has more revisions than the configured limit (see above). It is also not possible to overwrite an existing page.

See also[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Duplicator&action=edit&section=4" title="Edit section: See also">edit]

  • Extension:Multiplicator which extends Duplicator by allowing several creations of copies on subpages of destination.


Source: mediawiki

Attachments

Discussions