Template:pi-nr-inflection of/documentation

This template is used to create definition lines for inflected (non-lemma) forms of other non-Roman Pali terms. It use Module:form of as a back-end, and channels the parameters via. It links to the other form in both the non-Roman script and its Roman script equivalent, and will display the transliteration to Roman script if different to the equivalent. It is not intended for and will not work for Roman script Pali; use for the Roman script.

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.

This template exists because of problems with the use of the original template, which have been raised at WT:Grease pit/2021/June. Because of the existence of multiple spelling systems, one spelling may mean different things in different writing systems. Some Lao writing systems for Pali drop distinctions that are not reflected in the Lao pronunciation. Consequently, the automatic Romanisation, the correct Romanisation and the Roman script equivalent may all be different. As a knock-on effect, replacing the transliteration field by a link causes the page to be placed in the slightly misnamed Category:Terms with manual transliterations different from the automated ones/pi.

Parameters

 * 1
 * The non-Roman script lemma form of the term of which this is an inflection. This is used to create a link.


 * 2
 * The alternative display form of the lemma. This works like the third parameter of and.


 * 3, 4 ... 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
 * A gloss or short translation of the word. The parameter gloss is a deprecated synonym; please do not use.


 * tr
 * Transliteration, if different from the automatically-generated one. Do not use this template if you wish to hide the transliteration; use  instead.


 * eqv
 * Roman script equivalent, if different to the transliteration.


 * ts
 * Transcription for non-Latin-script words whose transliteration is markedly different from the actual pronunciation. Should not be used for IPA pronunciations.
 * Not yet implemented.


 * p or POS
 * Part-of-speech tag or abbreviation (see below). Currently used only for categorization, which depends on the particular inflection tags and the language in question.
 * Not yet implemented.


 * id
 * A sense id for the term, which links to anchors on the page set by the template.
 * Not yet implemented.


 * sc
 * Script code to use, if script detection does not work.

Grammar tags
The following grammar tags are available for shortcut use in entering descriptions 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).

Examples
These need to be replaced.

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

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.