User:Mårtensås/Template:sv-verb-irr
Mårtensås/Template:sv-verb-irr (present {{{1}}}, preterite {{{2}}}, supine {{{3}}}, imperative {{{4}}})
- The following documentation is located at User:Mårtensås/Template:sv-verb-irr/documentation. [edit]
- Useful links: root page • root page’s subpages • links • redirects • transclusions
Background
[edit]This is a template for Swedish irregular and strong verbs, to be used on the headword line. It displays the most basic inflections (infinitive, present, past (=preterite), supine and imperative). See also {{sv-verb-reg}}
for weak verbs, and {{sv-conj-wk}}
, {{sv-conj-st}}
, which are to be used under a ====Conjugations==== header.
The earlier right-floating templates such as {{sv-verb-reg-ar}}
, {{sv-verb-reg-er}}
and {{sv-verb-irreg}}
are to be deprecated at some point. (They are not very popular...)
Instructions
[edit]5 numbered parameters, for present tense, preterite (=past tense), supine (the tense used to form the perfect and pluperfect), imperative and preterite plural. All are needed, though one of the two named parameters (namely particle) can be used to automatically add a verb particle. The other named parameter is the inf, which is used to override the default display of the infinitive.
Examples:
{{User:Mårtensås/Template:sv-verb-irr|går|gick|gått|gå|ppl=gingo}} {{User:Mårtensås/Template:sv-verb-irr|tar|tog|tagit|tag|ppl=togo|particle=tag i|inf=[[ta]] [[tag]] [[i]]}}
...yields...
gå (present går, preterite gick, preterite plural gingo, supine gått, imperative gå)
ta tag i (present tar tag i, preterite tog tag i, preterite plural togo tag i, supine tagit tag i, imperative ta tag i)
gå (present går, preterite gick, supine gått, imperative gå)
(Note that in these examples there are always added an inf= parameter to make it display the infinitive properly, and not the name of the template...)
Known bugs
[edit]- Does not behave as anticipated if using both the particle parameter, and giving multiple forms of some form. Point in case:
{{sv-verb-irr|tar|tog|tagit|[[ta]], [[tag]]|togo|particle=tag i|inf=[[ta]] [[tag]] [[i]]}}
does not behave as one might have wished for. A workaround is to avoid using theparticle=
parameter in these cases, and instead write
{{sv-verb-irr|tar tag i|tog tag i|tagit tag i|[[tag tag i]], [[ta tag i]]|togo tag i|inf=[[ta]] [[tag]] [[i]]}}