User:Benwing2/inflection of/documentation

This template is used to create definition lines for inflected (non-lemma) forms. It use Module:form of as a back-end. 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).


 * 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 Enclitics.

Multiple lemmas
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, put the additional lemma(s) in term2, term3, etc. All lemma property parameters have corresponding numbered versions for these additional lemmas. For example, you can use t2, tr2, g2, etc. to specify respectively the gloss, transliteration and gender(s) of the second lemma. See Example 4 below for an example of multiple lemmas.

Enclitics
Enclitics specified using the enclitic parameter can have inline modifiers attached to them, 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. 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. 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

See col for examples of inline modifiers in use. Note that in the case of enclitics, multiple comma-separated enclitics can be given in the enclitic parameter, and each one can have attached inline modifiers following the respective enclitic, which applies only to that enclitic.

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

Example 2
On the page for the Russian non-lemma form : 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.
 * 1)  gives

Example 3
On the page for the Japanese non-lemma form : 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.
 * 1)  gives

Example 4
On the page for the Russian non-lemma form : Here, is an alternative infinitive form of the lemma. Using term2, we can list this alternative lemma rather than duplicating the inflection of call on two lines.
 * 1)  gives

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

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

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.
 * 1)  gives

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 tags and shortcuts
The following lang-specific inflection tags and non-alias shortcuts are available for use in describing inflections.

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.