Template:alter/documentation

This template generates a correctly formatted list of alternative forms with descriptions indicating the associated language variety or other property.

Parameters

 * 1
 * The language code (see List of languages) of the language whose sense this template appears under.


 * 2, 3, 4, ...
 * One or more alternative forms to be listed, along with any labels describing usage characteristics, e.g. (indicating a Louisiana-specific term) or  (indicating a term used only informally). The labels are separated from the alternative forms by a blank/empty parameter; the alternative forms appear before the blank parameter, and the labels appear after. The labels are exactly the same as the labels used for lb and tlb, and will be displayed and linked in the same fashion, but won't add the page to any categories. See the documentation for lb for the recognized labels. Any unrecognized labels will be displayed as-is. Multiple alternative forms are normally displayed comma-separated, unless one of the forms has an embedded comma in it, in which case all entries will be semicolon-separated. To separate individual entries with a semicolon, place a semicolon as a parameter by itself. (It is suggested to use semicolons to separate logical groups of alternative forms.) Individual terms can specify transliterations, glosses, genders, dialect tags and other modifications inline using a syntax like  ; see below.


 * t1, t2, t3, ...
 * A gloss for each alternative form, if the term has a different meaning from the term it is placed under. t1 corresponds to the first specified alternative form, t2 to the second specified alternative form, etc. Semicolons are ignored for parameter numbering purposes.


 * alt1, alt2, alt3, ...
 * Display text for each of the alternative forms, if different from the entry name.


 * tr1, tr2, tr3, ...
 * Transliteration for each of the alternative forms. Only necessary for terms written in a non-Latin script and only if the automatic transliteration is incorrect (or for languages without automatic transliteration).


 * ts1, ts2, ts3, ...
 * Transcription for each of the alternative forms. Only used for certain non-Latin-script languages whose transliteration is markedly different from the actual pronunciation. Should not be used for IPA pronunciations.


 * q1, q2, q3, ...
 * If necessary, qualifiers for each of the alternative forms, shown before the alternative form in question.


 * qq1, qq2, qq3, ...
 * If necessary, qualifiers for each of the alternative forms, shown after the alternative form in question.


 * lit1, lit2, lit3, ...
 * Literal translation of each alternative form, if needed to clarify the meaning.


 * pos1, pos2, pos3, ...
 * Part of speech of each alternative form (especially if the part of speech is different from that of the main entry).


 * g1, g2, g3, ...
 * Gender and number specification of each alternative form, if necessary for clarification. See Module:gender and number for details. Multiple comma-separated gender/number specifications can be given for each alternative form.


 * id1, id2, id3, ...
 * A sense ID for each alternative form, which links to anchors on the page set by the template.


 * sc1, sc2, sc3, ...
 * Script code (see List of scripts) for each alternative form. This is rarely needed.

Examples

 * Simple example without labels.
 * Simple example without labels.
 * Simple example without labels.


 * is the term., and  are labels indicating the usage characteristics of the term. Note how each is linked appropriately (the first two to Wikipedia articles describing the language varieties in question, and the last one to the Wiktionary glossary of linguistic terms).
 * is the term., and  are labels indicating the usage characteristics of the term. Note how each is linked appropriately (the first two to Wikipedia articles describing the language varieties in question, and the last one to the Wiktionary glossary of linguistic terms).
 * is the term., and  are labels indicating the usage characteristics of the term. Note how each is linked appropriately (the first two to Wikipedia articles describing the language varieties in question, and the last one to the Wiktionary glossary of linguistic terms).


 * is a recognized Ancient-Greek-specific label that displays as and links to the appropriate Wikipedia article on .  is not a recognized label, and is thus displayed as-is.
 * is a recognized Ancient-Greek-specific label that displays as and links to the appropriate Wikipedia article on .  is not a recognized label, and is thus displayed as-is.
 * is a recognized Ancient-Greek-specific label that displays as and links to the appropriate Wikipedia article on .  is not a recognized label, and is thus displayed as-is.


 * All labels usable by lb are also usable here, including formatting labels such as, and . Note also how the label  is canonicalized to.
 * All labels usable by lb are also usable here, including formatting labels such as, and . Note also how the label  is canonicalized to.
 * All labels usable by lb are also usable here, including formatting labels such as, and . Note also how the label  is canonicalized to.

Inline modifiers
All of the per-term parameters described above can alternatively be specified as inline modifiers, using a syntax like  to specify modifiers such as transliterations, glosses and qualifiers. In this example, for the Russian term, the manual transliteration dɛtɛktívnyj román and gloss "detective novel" are given. Specifically, the following modifiers are recognized; see the above documentation for more information on the exact meaning of each modifier.
 * : gloss
 * : alternative display text
 * : transliteration
 * : transcription, for languages where the transliteration and pronunciation are markedly different
 * : qualifier, e.g. rare; this appears before the term, parenthesized and italicized
 * : qualifier, e.g. rare; this appears after the term, parenthesized and italicized
 * : literal meaning
 * : part of speech
 * : comma-separated list of gender/number specifications
 * : sense ID; see
 * : script code

Examples
The following: can be equivalently written as follows using inline modifiers: Both produce the following:

Note how the use of inline modifiers frees you from having to make sure the numbers of indexed parameters like t2, tr3 correctly line up with the terms they are referring to. This is especially useful when a large number of alternative forms are given. For example, the following: produces: