Template:with/documentation

From Laenkea
Jump to navigation Jump to search
Edit-copy green.svg Documentation for Template:with. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.
Nuvola apps important yellow.svg This page is a work in progress
It may not contain all the information it ought to, or be formatted properly yet. Why not help expanding it?

This template is used to generate information boxes beside definitions indicating case government information, or any other information regarding complements. The available parameters are as follows:

|1=
language code + part of speech
This parameter is only required for certain aspects of functionality. If none of the below functions requiring their specification are of use, this parameter may be omitted. If omitted, the following parameter can be entered as the first parameter.
|2= (required), |3=
government entry/ies
|pos= (optional)
alternative to entering part of speech information in |1=

Basic usage

If you would like to simply specify government of a specific form, it can be entered as the first parameter.

{{with|infinitive}}

Produces:

[with infinitive]

If you would like to specify a case and have it categorised, the following must apply:

  1. the case must be specified in Module:government/data
  2. the language code must be specified
  3. the part of speech must be specified

Any abbreviations of cases or parts of speech must also be specified as aliases in Module:government/data:

{{with|rad|instrumental|pos=verb}}
{{with|rad|ins|pos=v}}
{{with|rad verb|instrumental}}
{{with|rad v|ins}}

Produces:

[with instrumental] + Category:Radestrian verbs governing the instrumental

Format functions

If you would not like the form glossed, prepend it with _. This will deactivate aliases and any other form of auto-formatting, such as colouring. Only the italics will remain.

{{with|_infinitive}}
{{with|_acc}}

Produces:

[with infinitive]
[with acc] :(

Override functions