Extension:DoubleWiki

From Linux Web Expert

Revision as of 08:07, 30 October 2023 by imported>Yaron Koren (Removed now-unnecessary MW 1.24 instructions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
DoubleWiki
Release status: stable
Implementation User interface
Description The DoubleWiki extension displays an article and its translation on two columns of the same page.
Author(s) ThomasVtalk
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki >= 1.41
License GNU General Public License 2.0 or later
Download
Example http://fr.wikisource.org/wiki/Criton_(trad._Cousin)?match=en
  • $wgDoubleWikiCacheTime
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the DoubleWiki extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

DoubleWiki allows you to compare wikis in two separate languages side by side.

For an example, see http://fr.wikisource.org/wiki/Criton_(trad._Cousin)?match=en. See Wikisource:DoubleWiki Extension for more information.

Usage

Appending ?match=<lang code> (or &match=<lang code>) to a url allows you to see a side by side comparison of a page with the same page in another language.

You can use an empty div with a title attribute (for example <div title="some title"/>) to force certain sections to line up.

This extension was made especially for Wikisource (see also bugzilla:4104). For full information on this extension, it is recommended you read the page at wikisource - oldwikisource:Wikisource:DoubleWiki Extension Comments/questions/etc should go on the Wikisource page.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/DoubleWiki</tvar>|Download]] and move the extracted <tvar name=name>DoubleWiki</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DoubleWiki
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'DoubleWiki' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration parameters

This extension has no configuration parameters, but expects interlanguage links to be configured appropriately. See Interlanguage links and Manual:Interwiki#Interwiki links to other languages. You should ensure all your interlanguage (not interwiki) links are to websites you control, as this extension will load pages from these other language links.