Template:synonyms/documentation

This template shows a line with synonyms. It is intended to be used below each definition, before any usage examples or quotes.

Parameters

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


 * 2, 3, 4, ...
 * One or more synonyms to be listed. Multiple entries are normally comma-separated, unless one of the synonyms 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 synonyms.) Individual terms can specify transliterations, glosses, genders, labels and other modifications inline using a syntax like ; see below. To link to an thesaurus entry, use   followed by the name of the entry, e.g.  . You can also link to a specific language within a thesaurus entry, e.g. using.


 * t1, t2, t3, ...
 * A gloss for each synonym, if the term is not a perfect synonym of the sense it is placed under. t1 corresponds to the first specified synonym, t2 to the second specified synonym, etc. Semicolons are ignored for parameter numbering purposes.


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


 * tr1, tr2, tr3, ...
 * Transliteration for each of the synonyms. 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 synonyms. Only used for certain non-Latin-script words 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 synonyms, shown before the synonym in question.


 * qq1, qq2, qq3, ...
 * If necessary, qualifiers for each of the synonyms, shown after the synonym in question.


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


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


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


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


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


 * lb
 * Label for the collection of synonyms as a whole. See below for further discussion.


 * lb1, lb2, lb3, ...
 * Label for each synonym. See below for further discussion.

Examples
1. In the entry strong, the code:
 * produces:


 * 1) Capable of producing great physical force.

2. In the Russian entry, the code:
 * produces:


 * 1)  ability, special ability

3. In the Russian entry, the code:
 * produces:


 * : auntie
 * 1)  granny, auntie ; an adult woman
 * 1)  granny, auntie ; an adult woman

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
 * : label; see below

Examples
The following: can be equivalently written as follows using inline modifiers: Both produce the following:
 * 1)  modern, contemporary, fashionable

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 synonyms are given. For example, the following: produces:
 * 1)  boyfriend

Labels
You can tag synonyms with labels, which are intended to identify terms particular to specific lects or varieties of the language. The same labels can be used with lb/tlb, alter/alt, descendant/desc and the quote templates (such as quote-book and quote-journal). The recognized labels are language-specific, but there are also generic labels such as archaic and proscribed that are linked to the Wiktionary linguistic glossary in Appendix:Glossary. Any unrecognized label will be displayed as-is. The recognized labels can be found by looking at the documentation for lb.

Example: produces:
 * 1) mouse

Here, is a recognized label for Armenian and is linked to the Wikipedia article on this particular dialect.

Multiple labels can be included in a single parameter, comma-separated. But note that the comma must not be followed by a whitespace in order to be recognized; commas followed by whitespace are treated as embedded commas in a single label. Example: produces:
 * 1) to come to, to arrive

Here,  is the Ancient Greek label abbreviation for Ionic, and is thus expanded, whereas   is not recognized, and is thus displayed as-is.

Labels can be attached to individual synonyms, either using a parameter lb N or using an inline modifier. An example using inline modifiers: produces:
 * 1) mouse