Utilisateur:Zyephyrus/help double wiki
About
modifierThe DoubleWiki extension displays an article and its translation on two columns of the same page. It was written specifically for Wikisource.
Syntax
modifierThe extension is enabled on all subdomains. To see it, add '?match=xx' to the url of a page, where 'xx' is the language code of an existing interlanguage link.
In wikis that have configured it, you may click on the "⇔" symbols near interlanguage links. In order to enable these symbols in your subdomain, copy the BilingualLink function from Mediawiki:Monobook.js to your wiki. (you must be a sysop to do that)
Examples
modifierVisit any of these pages, and click on the "⇔" symbols near interlanguage links:
How are paragraphs matched?
modifierText matching is performed automatically, assuming that both pages have the same structure (paragraphs and titles). Within a section, the extension aligns paragraphs. Structures such as arrays or div are considered as paragraphs.
Important note: If you want to match text that is is wrapped within a div (for example, <div class="prose">), then you must place the <div> tag at the very beginning of the page. That way, the extension will try to break up this div into paragraphs. If, on the other hand, some text or empty spaces are placed before this div, then the extension will handle the div as an atomic element.
If the structure of the page is not sufficient to produce correct matching, or if you do not want to use the same structure for both pages (for example, one version of the text might have an extra paragraph), it is possible to enforce alignment at some desired locations, by inserting special tags into the text. The syntax is an empty div with a title field:
- <div title="At the time the Wright" />
- A l'époque où les frères Wright...
- how to align one paragraph with many ?
place the many paragraphs inside a div.