Template:with/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
:: alternative to entering part of speech information in {{para|1}}
:: alternative to entering part of speech information in {{para|1}}


== Basic usage ==
== Basic parameter formatting ==
If you would like to simply specify government of a specific form, it can be entered as the first parameter.
If you would like to simply specify government of a specific form, it can be entered as the first parameter.
  {{tempn|with|infinitive}}
  {{tempn|with|infinitive}}
Line 31: Line 31:
Produces:
Produces:
: {{with|rad|ins}} + [[:Category:Radestrian verbs governing the instrumental]]
: {{with|rad|ins}} + [[:Category:Radestrian verbs governing the instrumental]]
=== Link usage ===


== Format functions ==
== Format functions ==

Revision as of 21:02, 4 August 2024

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 parameter formatting

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

Link usage

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