Module:sa-headword/documentation
This module powers all Sanskrit headword-line templates. All of them support at least the following arguments:
|head=
,|head2=
,|head3=
, ...- Explicitly specified headword(s), for introducing links in multiword expressions. Note that by default each word of a multiword lemma is linked, so you only need to use this when the default links don't suffice (e.g. the multiword expression consists of non-lemma forms, which need to be linked to their lemmas).
|tr=
,|tr2=
,|tr3=
, ...- Manual transliteration(s), in case the automatic transliteration is incorrect.
|sc=
- Script code. Rarely needs to be given, as the script is normally autodetected.
|sort=
- Sort key. Rarely needs to be given, as the sort key is autogenerated and is usually correct.
|id=
- Sense ID code, for linking to this headword. See
{{senseid}}
. Only needed for distinguishing multiple Sanskrit headwords on the same page.
NOTE: All headword templates that go through Module:sa-headword automatically add the page to a script-specific category for the part of speech in question, in addition to the normal part of speech category. For example, {{sa-noun form}}
when used with a term in Devanagari script automatically adds the page to both Category:Sanskrit noun forms and Category:Sanskrit noun forms in Devanagari script (regardless of whether |sc=
was explicitly given; if not given, the correct script is autodetected).
For participles,|2=
can be one of "gerundive", "desiderative"/"desid", "perfect"/"perf", "future"/"fut", "present"/"pres", or "past". |3=
can be one of "active"/"act"/"a", "mediopassive"/"mediopass"/"mp", or "passive"/"pass"/"p". Adding these parameters will categorize the page correctly and add a gloss to the headword line.