Template:inflection of/documentation

This template is used to create definition lines for inflected (non-lemma) forms. For example,, , and  are non-lemma forms of the lemma , and inflection of can be used to show the relationship between the lemma and respective non-lemma forms.

This template takes the same general parameters as and, and it uses the same post-processing on the parameters. This includes script detection, removing diacritics, processing embedded links, and so on.

Parameters

 * 1
 * The language code of the lemma, of which this term is an inflection. See List of languages. The parameter lang is a deprecated synonym; please do not use. If this is used, all numbered parameters move down by one.


 * 2
 * The lemma of which this term is an inflection. A link is created to the lemma, similar to links created using l and m (but normally displayed in upright boldface). To specify more than one lemma, separate them by commas. Inline modifiers can also be attached to individual lemmas to specify transliteration, qualifiers, etc. See the section below on multiple lemmas and inline modifiers.


 * 3 or alt
 * The alternative display form of the lemma. This works like the third parameter of and.


 * 4, 5 ... etc.
 * One or more grammar tags to show. These give the definition by describing the relevant grammatical properties of this inflected form. A grammar tag can potentially be any text, but certain tags such as,  ,   or   that are recognized internally will automatically be linked to the appropriate entry in Appendix:Glossary (or in some cases, to the relevant Wiktionary or Wikipedia entry). As an example,   is displayed as ', with an appropriate link. Certain tags are recognised as shortcuts and are equivalent to spelling out the tag. For example,   is equivalent to  ; both will be displayed as '. Similarly,   is equivalent to  , and   is equivalent to  . The full, up-to-date list of recognized tags and their shortcuts and display forms is specified below.
 * Multiple tags are normally separated by spaces, so that e.g.  will be displayed as   . However, when punctuation characters are used as tags, they will be displayed appropriately for that punctuation character. For example,   will display as , with   object (i.e. without a space preceding the comma). Among the punctuation characters recognized and handled correctly are comma, colon, parens, brackets, slash, and hyphen. The full list can be found below.
 * It is also possible to put  separators between one or more tags or shortcuts to create a list separated by slashes. For example, writing   will expand to /, and writing   will expand to ///.
 * The inflection tag  is recognized specially and is used to separate two inflections of the same word. Sets of tags separated by a semicolon tag will be displayed on separate lines. See examples below.


 * t or gloss
 * A gloss or short translation of the lemma. Normally not needed, but can be used to disambiguate homonymous lemmas, i.e. multiple lemmas that happen to be spelled the same way, and where the inflected term may be a form of only one of the lemmas. For example, is the past tense of  but not of the homonymous verb, whose past tense is . In such cases, you can also use the id parameter to link the lemma to the appropriate section of the page.


 * tr
 * Transliteration of the lemma, if written in a non-Latin script and the automatically-generated transliteration is either missing or incorrect.


 * ts
 * Transcription of the lemma, for non-Latin-script terms whose transliteration is markedly different from the actual pronunciation. Should not be used for IPA pronunciations. See.


 * g
 * Gender and number of the lemma. See Module:gender and number for details. To specify multiple gender/number specs for a single lemma, separate them with a comma. Normally not needed, but could be used e.g. to disambiguate homonymous lemmas; see the discussion under the t parameter for more information.


 * p or POS
 * Categorization part-of-speech tag of the lemma, or an abbreviation thereof (see below). Not displayed; used *ONLY* for categorization purposes, depending on the particular inflection tags and the language in question. Note that there are related templates, and , which are exactly like  but automatically set (respectively) the n, v and a parameters.


 * pos
 * Displayed part-of-speech indication for lemma. See . *NOT* the same as the categorization part of speech tag in p. The value of this parameter is displayed in parens after the lemma link, similarly to how other links work. Rarely needed.


 * lit
 * A literal translation for the lemma. See . Rarely needed.


 * id
 * A sense ID for the lemma, which links to anchors on the page set by the template. Can be used e.g. to disambiguate homonymous lemmas; see the discussion under the t parameter for more information.


 * sc
 * The script code (see Scripts) for the script that the lemma is written in. See . Rarely needed as it is autodetected (usually correctly).


 * enclitic
 * One or more enclitics that are attached to the inflected form being described. This is useful in agglutinative languages such as Finnish that support enclitics being attached to inflected forms. See Example 5 below. To specify more than one enclitic, separate them by commas. Inline modifiers can also be attached to individual enclitics to specify transliteration, qualifiers, etc. See the section below on inline modifiers.

Multiple lemmas and inline modifiers
In some cases, a term is the inflection of multiple lemmas, which work alike and are alternative forms of each other. In this case, rather than duplicating the inflection tags on separate lines with separate calls to inflection of (one per lemma), you can list multiple lemmas in a single call to inflection of. To do this, separate the lemmas with a comma (without a following space). You can attach inline modifiers to each individual lemma in place of separate params such as tr and t, similarly to col (and variants such as col3, der4, etc.); syn (and variants such as ant); etc. The general syntax looks like  to specify modifiers such as transliterations, glosses and qualifiers. With multiple lemmas, the syntax looks like. See Example 3 below for an example that uses inline modifiers.

The following modifiers are recognized; see for the exact meaning of these modifiers.
 * : gloss
 * : 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
 * : comma-separated list of gender/number specifications
 * : alternative display text
 * : part of speech
 * : literal meaning
 * : sense ID; see
 * : script code

Enclitics specified using the enclitic parameter can similarly have inline modifiers attached to them. Do not go overboard in the use of these modifiers; it is better in most cases to just specify the bare enclitic and put all the relevant information for the clitic in the linked page. But in some cases it may be necessary to specify e.g. manual transliterations, for languages such as Persian and Hebrew that don't provide automatic transliteration; glosses and/or sense ID's for homonymous enclitics; etc.

Example 1
On the page for the Spanish non-lemma form : gives

Example 2
On the page for the Russian non-lemma form : gives Note here how the  separator separates tags when multiple tags apply, and   separates inflections. When  is used, the display format changes to a multi-line format, as shown. Furthermore, since the lemma is in a non-Latin script in a language with automatic transliteration, that transliteration is automatically shown.

Example 3
On the page for the Japanese non-lemma form : gives Note here how an unrecognized tag  is used. Such tags need to be spelled out in full, and won't be linked to anything. Furthermore, in this case, although Japanese uses a non-Latin script, no automatic transliteration is available, so the transliteration needs to be manually supplied if desired.

Example 4
On the page for the Russian non-lemma form : gives Here, is an alternative infinitive form of the lemma, so we specify both lemmas, comma-separated, rather than duplicating the inflection of call on two lines.

Example 5
On the page for the Finnish non-lemma form : gives This particular term is a first-singular present conditional form of the verb, with two enclitics attached to the end.

Example 6
On the page for the Gothic non-lemma form :

gives The lemma page contains two different verbs with the same spelling, and  (with a long vowel). As a result, the page for the above non-lemma form has entries for the same two verbs, and it is necessary to supply the transliteration of the long-vowel variant along with a gloss to disambiguate the two.

Example 7
On the page for the Ukrainian noun :

This example shows the use of inline modifiers with multiple lemmas.

Inflection tags
The following non-language-specific inflection tags are available for use in describing inflections as per Module:form of/data (more common tags) and Module:form of/data2 (less common tags):

Other items (such as "atelic") may be used as needed, but should be spelled out in full (see examples).

Non-alias shortcuts
The following additional non-language-specific shortcuts are available for use in describing inflections as per Module:form of/data (more common shortcuts) and Module:form of/data2 (less common shortcuts):

Lang-specific information
The following tables contain all the language-specific information embedded into inflection of. The following types of information are provided:
 * 1) Language-specific inflection tags.
 * 2) Language-specific non-alias shortcuts (where "non-alias" means any shortcut that is not a simple alias for an inflection tag).
 * 3) Additional parameters that are available for the language in question to display the base lemma where an inflected form (e.g. the comparative, superlative, present participle, past participle, etc.) can in turn be inflected.
 * 4) Language-specific categories that are added in certain circumstances, depending on the particular inflection tags present (and in some cases, the value of the POS/p parameter, which supplies the part of speech for categorization purposes). The exact circumstances are not currently listed because they may be somewhat complex, but are described exactly in Module:form of/cats.
 * 5) Language-specific labels that are added in circumstances similar to those where categories are added, and which are described in Module:form of/cats. Note that some labels may in turn cause categories to be added, just as with other labels. These categories are listed below along with the labels themselves.

Language-independent categorization
Depending on the particular tags and on the presence/absence of the p/POS parameter, language-specific or language-independent categories may be added. The exact conditions under which this happens are described in Module:form of/cats, but the following is a list of all language-independent categories that may be added:

Language-independent labels
Depending on the particular tags and on the presence/absence of the p/POS parameter, language-specific or language-independent labels may be added, as with categories. The exact conditions under which this happens are described in Module:form of/cats, but the following is a list of all language-independent labels that may be added:

Part-of-speech tags
The following part-of-speech tags are available for use as the p or POS parameter. Note that either the full (canonical) form or any of the short forms can be used and are equivalent.