Extension:CloneDiff

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
CloneDiff
Release status: betaCategory:Beta status extensions
Implementation Special page Category:Special page extensions
Description Allows to compare page contents with other wikis
Author(s)
Latest version 0.1
MediaWiki 1.30+Category:Extensions with manual MediaWiki version
PHP 5.5+
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
README
  • $wgCloneDiffWikis
  • clonediff
Quarterly downloads 0
Translate the CloneDiff extension if it is available at translatewiki.net
Category:All extensions

The CloneDiff extension lets you compare pages on the local wiki to pages in one or more "clone wikis" - wikis that have some of the same page structure, though with possibly different contents in the pages. For pages that are different (or when the page only exists in the remote wiki), the extension lets you also import the current text on the remote wiki into the local wiki.

Installation

  • Download and move the extracted CloneDiff folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CloneDiff
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CloneDiff' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

You then need to add one or more values for $wgCloneDiffWikis in order to use the extension. Each such value has to be an array of three elements: 'name', 'API URL' and 'URL'. Here is one example:

$wgCloneDiffWikis[] = [
	'name' => 'My Example Wiki',
	'API URL' => 'https://example.org/w/api.php',
	'URL' => 'https://example.com'
];

The 'clonediff' permission lets you dictate who can access the page Special:CloneDiff. By default, only administrators can. To enable, for instance, all users to access that page, you could add the following to "LocalSettings.php":

$wgGroupPermissions['user']['clonediff'] = true;

Usage

If you are an administrator, you can make use of the CloneDiff functionality by simply going to the page "Special:CloneDiff" and following the instructions.

Credits

The CloneDiff extension was created by Yaron Koren for WikiWorks. Further modifications were made by Nischay Nahata for WikiWorks.

Development and Help

Please contact wikiworks.com for consulting on further developments, feature requests or bug fixes on this extension.

See Also

WikiImporter - A script that lets you update one wiki with pages from another wiki selectively.

Category:Import extensions
Category:AdminLinks extensions Category:All extensions Category:Beta status extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Import extensions Category:SkinBuildSidebar extensions Category:Special page extensions