Extension:Sync

MediaWiki extensions manual
Sync
Release status: unmaintained
Implementation Parser function
Description Allows to sync's your wiki with multiple other wikis
Author(s) Nischay Nahata, wikiworks.com (Nischayn22talk)
Latest version 1.0 (March 2018)
MediaWiki 1.25+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
  • $wgSyncWikis

The Sync extension allows the selective sync (or copying over of content pages) of your wiki with multiple other wikis. It is based on the wikiImporter script. You can also use this extension with Extension:TranslateWiki to create multilingual wikis.

Installation and Configuration edit

  • Add the following to your wiki's composer.local.json's "require" section:
"nischayn22/mediawiki-api": "dev-master"
  • Now run:
composer update
  • Download and place the file(s) in a directory called Sync in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Sync' );
    // Add any such lines for multiple wikis
    $wgSyncWikis[] = array(
    'api_path' => "http://yourwiki/wiki2",
    'username' => "Nischayn22",
    'password' => "Password",
    'copy_ns' => array( 0 ),
    'live_edit' => true,
    'live_create' => true,
    'live_move' => true,
    'live_delete' => true,
    'translate' => false,
    'translate_to' => 'hi' 
    );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Features edit

  • Maintenance Script to import entire pages in specified namespaces to other wikis.
  • Create and maintain multilingual wikis using Extension:TranslateWiki.
  • Live syncing of wikis on page edits/creation/move/delete.
  • Sync tab to live sync a page
  • Syncing of CommentStreams

Development and Help edit

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

See also edit