Template:interlinear/documentation

template, inspired by w:Template:Interlinear. Powered by Module:interlinear. Gloss abbreviations are specified in Module:interlinear/data.

The interlinear gloss consists of at least two display lines (source text and glosses) and a possible translation line. A display line is split into words by spaces. An empty word on a display line can be given as {}. To use spaces within a single 'word', enclose the wanted string in braces (e.g. {foo bar} ).

Formatting can be added to display lines, but should never span multiple words (cells in a display line).

Parameters
The template takes three required positional parameters and several optional parameters.


 * 1
 * The language code (see Languages) for the language that the term is in. All Wiktionary language codes are supported, including those for constructed and reconstructed languages.


 * 2
 * The text in the source language as a display line.


 * 3
 * The glosses as a display line. Gloss abbreviations can be given with uppercase letters, such as store-ILL . To exempt a string of letters from being treated as an abbreviation, prefix it with ^ . To apply "not" to an abbreviation, prefix it with ! : it will add an N to the beginning of the abbreviation and "non-" to the beginning of the tooltip.


 * 4
 * A translation of the entire given text.


 * sc
 * The script code (see Scripts) for the script that the term is written in. When no code is given, the template will try to detect the script based on the characters in the term and the scripts in the language's data table (see ). In most cases, it will succeed. If it fails, the code  will be used.


 * tr
 * Transliteration for non-Latin-script words as a display line. By default, automatic transliteration will be used. Pass - to suppress transliteration. - for a word suppresses transliteration for one word and + uses the automatic transliteration for one word.


 * top
 * Text to be displayed above the interlinear gloss.


 * header
 * A display line that will be displayed above the sentence, e.g. to represent roles in the sentence in English.


 * morph
 * A morphological breakdown of the morphemes in the source text as a display line. Links can be added here and they will automatically point to the correct language entry.


 * wt
 * A word-for-word translation as a display line.

Display line order
This order is applied to display lines:
 * headers
 * source text
 * transliteration
 * morphology
 * glosses
 * word-for-word translation

The full translation will be given last after all of the display lines.

Examples
fi

minä menen kauppaan

PN-1.SG go-IND.1.SG.PRES store-ILL.SG

I (will) go to the store


 * fi

minä menen kauppaan

PN-1.SG go-IND.1.SG.PRES store-ILL.SG

I (will) go to the store

ja

この ケーキ は 美味しい. 誰 が 焼いた の？

This cake TOP tasty-PRS Who SUBJ bake-PAST Q

This cake is tasty. Who baked (it)?


 * ja

この ケーキ は 美味しい. 誰 が 焼いた の？

This cake TOP tasty-PRS Who SUBJ bake-PAST Q

This cake is tasty. Who baked (it)?