Jump to content

Template:ml-verb

From Wiktionary, the free dictionary

ml-verb


This template generates the standard headword line for Malayalam verbs. It handles categorization, transliteration, transitivity labels, and features an **automatic past-tense generator** for regular verb endings.

Usage

The basic syntax is: {{ml-verb|1|past=}} or {{ml-verb|past=}}

Parameters

{{{1}}} (optional)
Defines the transitivity of the verb. This will display a label below the headword and automatically add the verb to the appropriate category (e.g., Category:Malayalam transitive verbs). Accepted values are:
  • |1=t — Transitive
  • |1=i — Intransitive
  • |1=d — Ditransitive
  • |1=a, |1=it, or |1=ti — Ambitransitive
|past= (optional)
The manual past tense form of the verb in Malayalam script.
Note: You generally do not need to use this parameter. The underlying module automatically generates the past tense for most regular verbs based on their suffixes (e.g., words ending in -ിക്കുക automatically get the past tense -ിച്ചു, -യുക becomes -ഞ്ഞു, etc.). Only use this parameter to override the default behavior for irregular verbs or exceptions.
|past2=, |past3=, etc. (optional)
Use these parameters if a verb has multiple valid past tense forms. For example, if a verb can be conjugated in two different ways , you can define them manually using `past=` for the first form, `past2=` for the second, and so on.
|head= (optional)
Overrides the displayed headword. Defaults to the current page name.
|tr= (optional)
Overrides the automatic Latin transliteration.
|sort= (optional)
Overrides the default sort key for categories.

Examples

Default (Automatic past tense, no transitivity)

For regular verbs like കരയുക (cirikkuka), the template automatically detects the suffix and generates the past tense കരഞ്ഞു (ciriccu).

{{ml-verb}}

Only transitivity (Automatic past tense)

To categorize and label the verb as transitive (t), intransitive (i), etc., while still relying on the template to auto-generate the past tense.

{{ml-verb|i}}

Only past tense (Manual override)

For irregular verbs where the automatic generation fails (e.g., കാണുക becoming കണ്ടു), but you do not want or need to specify transitivity.

{{ml-verb|past=കണ്ടു}}

Both transitivity and past tense

To explicitly specify both the transitivity category and manually override the past tense form.

{{ml-verb|t|past=കണ്ടു}}

Multiple past tense forms

If a verb has more than one past tense form, use past, past2, etc. You can combine this with or without the transitivity parameter.

{{ml-verb|past=Form1|past2=Form2}}
{{ml-verb|a|past=Form1|past2=Form2}}