Since Pali language does not have a particular script, it is usually written in the script of native languages, which Buddhism has propagated in those countries. This template is intended to display the alternative spellings of a word under the section "Alternative forms" / "Alternative scripts". Do not use elsewhere. The scripts are displayed in the order listed in Module:languages/data/2.
Backend for this template is Module:pi-Latn-translit, managed by function alt()
in Module:pi-headword.
Except for |Latn=
, all parameters are optional.
|Latn=
|Deva=
etc.), the forms in the script are automatically generated from this one.|Latn2=
, ... |Latn8=
|hl1=1
|Latn=
being displayed. This is proved for the generally rare cases where most forms are derived from a hypothetical Latin form that does not occur in the expected sense.|letter=1
|Latnlang=
|Latn=
, whether explict or by default. If |letter=1
is specified, this defaults to 'mul' for Translingual, but otherwise to 'pi' for Pali.|Latnlang2=
, ... |Latnlang8=
If |Latnn=
is given, the language for that form is given by |Latnlangn=
. Defaults in the same way as |Latnlang=
. Gaps are allowed in the sequence of values provided.
Behaviour for the non-Roman scripts is defined by parameters beginning with the script code, one of Brah, Deva, Beng, Sinh, Mymr, Thai, Lana, Laoo, Khmr and Cakm at the time of writing. Only the parameters for Devanagari are given below; the others behave the same.
|Deva=
|Deva=-
suppresses the display of Devanagari script forms. In the absence of |Deva=
, the Devanagari script forms will be generated automatically from |Latn=
or the page name.|Deva2=
, ... |Deva8=
|Deva=
is supplied, in which case these forms are also displayed. There should be no gaps within the sequence of alternative forms supplied.|Devalang=
|Deva=
is supplied, the language code for the form given by that parameter, or else the language code for all Devanagari script forms. If |letter=1
is specified, this defaults to 'mul' for translingual if the script is one of the following:
ltrlang
in Module:pi-headword.|Devalang2=
, ... |Devalang8=
If |Devan=
is given, the language for that form is given by |Devalangn=
. Defaults in the same way as |Deva=
. Gaps are allowed in the sequence of values provided.