Template:Annotation switch/doc

Used to create an annotated version of a work as a subpage of the original work. This template can be used to modify the text of a work in the Page namespace in such a way that the original proofread version appears correctly in the mainspace while the annotated version will appear in an appropriate subpage. For example, this can be used to add wikilinks to the body of a text.

Basic
The subpage name is optional.

Basic
This template only requires two parameters in its basic version. The first should be the original text (called the "clean" text) as it appears in the original work. The second should be the annotated text. The third is an optional subpage name, which defaults to "Annotated". This annotation will only appear if the subpage name matches the subpage in the mainspace.

The clean text gives a clean, accurate version of the text for Wikisource reader, unencumbered by annotation and removing the chance of confusion between original and added text. By default the clean text will appear.

Advanced

 * Original "clean" version of the text without annotation.
 * The annotated version of the text.
 * The name of the subpage in which the annotation should appear.

The numbers allow for up to five different variants of an annotation to appear in different subpages (if required).

Example 1
These two versions of the template produce the same result.


 * In the Page namespace and the clean version in the Main namespace, this will appear: Rattus rattus
 * In a special annotation subpage of the clean version, this will appear: Rattus rattus

Thus, the plain text  appears in the clean version but a wikilink to Wikispecies, , appears in the annotated version.

Example 2
This produces the same effect as Example 1, using the shortcut for this template.

Example 3
If the subpage containing the annotations is not the default "Annotated", this is set with the subpage parameter (or the third paramter of the basic version). In this case, the subpage is "Annotated Edition" appearing as Original/Annotated Edition.

Example 4
If there are more than one additional versions, then the template can be expanded to up to five variations. In this example, there are three version: the original, clean version; an annotated version with a wikilink to Wikispecies; and a Simple version, rendering the latin name into Simple English. These will appear as:


 * Clean: Rattus rattus
 * Annotated: Rattus rattus
 * Simple: Black Rat

The two different subpages will be Original/Annotated Edition and Original/Simple Edition.