Template:label/documentation

From Laenkea
Jump to navigation Jump to search
Edit-copy green.svg Documentation for Template:label. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template can be used to add labels to a language's definition of a term. It will automatically handle the addition of categories relating to the labels.

You can add labels that are pre-defined and many include extra formatting (e.g. linking to the glossary) or auto-categorisation, or you can add your own free-form labels.

The full list of available labels is located in code at Module:labels/data.

Usage

{{label|kil|intrans}}

Generates:

(intransitive)

and automatically adds the category Category:Kilitic intransitive verbs.

Parameters

|1=
The language code of the language whose definition you are applying this label to.
|2=, |3=, etc.
You can put as many label identifiers as you'd like and the template will handle ensuring they appear nicely together.
|nocat=
When specified as true (e.g. |nocat=1) then no categories will be automatically added to the page.

Funky formatting

Wordlinks

Using "quotation marks" in a parameter will create a wordlink.

{{label|kil|intrans|with preposition "le"}}
(intransitive with preposition le)

Comma overriding

Using _ at the start of a parameter will override comma delimiting. Note that some words, such as mostly, and, or and with automatically override commit delimiting.

{{label|rad|most commonly|intrans}}
(most commonly, intransitive)
{{label|rad|most commonly|_intrans}}
(most commonly intransitive)
{{label|rad|intrans|or|trans}}
(intransitive or transitive)

Slash functionality

Using / will automatically override commas and spacing:

{{label|rad|intrans|/|trans}}
(intransitive/transitive)

Parameter splitting

Using commas within a parameter can also be used to divide variables. Note that slash functionality and wordlinks can be used multiple times within a parameter, and all automatic comma overriding will still take place.

{{label|rad|intrans, trans}}
(intransitive, transitive)
{{label|rad|intrans or trans}}
(intransitive or transitive)
{{label|rad|intrans/trans}}
(intransitive/transitive)
{{label|kil|intrans, with preposition "le"}}
(intransitive with preposition le)
{{label|rad|refl, with "dzist"/"dzisk"}}
(reflexive with dzist/dzisk)