Template:with/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
{{uses lua|Module:government}}
{{uses lua|Module:government}}
{{shortcut|Template:+}}
{{shortcut|Template:+}}
{{wip}}


  {{tempn|with|rad|ins|pos=verb}}
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:
: {{para|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.
: {{para|2|req=1}}, {{para|3}} …
:: government entry/ies
: {{para|pos|opt=1}}
:: alternative to entering part of speech information in {{para|1}}
 
== Basic usage ==
If you would like to simply specify government of a specific form, it can be entered as the first parameter.
{{tempn|with|infinitive}}
Produces:
: {{with|infinitive}}
<hr>
 
If you would like to specify a case and have it categorised, the following must apply:
# the case must be specified in [[Module:government/data]]
# the language code must be specified
# 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]]:
  {{tempn|with|rad|instrumental|pos=verb}}
  {{tempn|with|rad|ins|pos=v}}
  {{tempn|with|rad|ins|pos=v}}
  {{tempn|with|rad verb|ins}}
  {{tempn|with|rad verb|instrumental}}
  {{tempn|with|rad v|ins}}
  {{tempn|with|rad v|ins}}
: {{with|rad|ins}} + [[:Category:Radestrian verbs governing the instrumental]] (only forms recognised in [[Module:government/data]] will be categorised.)
Produces:
: {{with|rad|ins}} + [[:Category:Radestrian verbs governing the instrumental]]
 
== Format functions ==
If you would not like the form glossed, prepend it with <code>_</code>. This will deactivate aliases and any other form of auto-formatting, such as colouring. Only the italics will remain.
{{tempn|with|_infinitive}}
{{tempn|with|_acc}}
Produces:
: {{with|_infinitive}}
: {{with|_acc}} :(


== Override functions ==
<!--
  {{tempn|with|rad v|*ins|pos=v}}
  {{tempn|with|rad v|*ins|pos=v}}
This will not add the category. This functionality is most useful when you want to highlight a particular usage with a case that is assume (i.e. accusative with transitive verbs), which may not necessarily need a category.
This will not add the category. This functionality is most useful when you want to highlight a particular usage with a case that is assume (i.e. accusative with transitive verbs), which may not necessarily need a category.
Line 54: Line 87:
{{temp|with|rad|acc / :la(acc)<into something><q*:special note>}}
{{temp|with|rad|acc / :la(acc)<into something><q*:special note>}}
: {{with|rad|acc / :la(dat)<into something><q*:special note>}}
: {{with|rad|acc / :la(dat)<into something><q*:special note>}}
-->

Revision as of 21:01, 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 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