Template:with/documentation: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 4: Line 4:
{{wip}}
{{wip}}


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:
This template is used to generate information boxes beside definitions indicating case government information, or any other information regarding complements.  
 
== Parameters ==
The available parameters are as follows:
: {{para|1}}
: {{para|1}}
:: language code + part of speech
:: language code + part of speech
Line 13: Line 16:
:: alternative to entering part of speech information in {{para|1}}
:: alternative to entering part of speech information in {{para|1}}


== Basic parameter formatting ==
== Parameter building ==
If you would like to simply specify government of a specific form, it can be entered as the first parameter.
If you would like a simple specification of government of a specific form, it can be entered as the first parameter.
  {{tempn|with|infinitive}}
  {{tempn|with|infinitive}}
Produces:
Produces:
Line 20: Line 23:
<hr>
<hr>


If you would like to specify a case and have it categorised, the following must apply:
If you would like to specify a case and have the term categorised, the following must apply:
# the case must be specified in [[Module:government/data]]
# the case must be specified in [[Module:government/data]]
# the language code must be specified
# the language code must be specified
# the part of speech 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]]:
Any abbreviations of cases or parts of speech must also be specified as aliases in [[Module:government/data]]. Any of the following formats:
  {{tempn|with|rad|instrumental|pos=verb}}
  {{tempn|with|rad|instrumental|pos=verb}}
  {{tempn|with|rad|ins|pos=v}}
  {{tempn|with|rad|ins|pos=v}}
  {{tempn|with|rad verb|instrumental}}
  {{tempn|with|rad verb|instrumental}}
  {{tempn|with|rad v|ins}}
  {{tempn|with|rad v|ins}}
Produces:
Produce:
: {{with|rad|ins}} + [[:Category:Radestrian verbs governing the instrumental]]
: {{with|rad|ins}} + [[:Category:Radestrian verbs governing the instrumental]]
<hr>


=== Link usage ===
=== Link usage ===
To add term links, such as in the case of collocated adpositions, prepend the word to be linked with <code>:</code>. This requires the language code to be specified, but not necessarily the part of speech.
{{tempn|with|ryn|:am}}
Produces:
: {{with|ryn|:am}}
<hr>
Multiple words will be linked as one entry, unless <code>:</code> is prepended to each new entry.
{{tempn|with|rad|:er rigust}}
{{tempn|with|rad|:er :rigust}}
Produces:
: {{with|rad|:er rigust}}
: {{with|rad|:er :rigust}}
<hr>
If, then, you need a form specified with the linked entry, it must be added without a space directly afterwards in <code>(round brackets)</code>. All normal formatting of forms apply. It is worth noting that no categorisation occurs with forms appended to linked terms.
{{tempn|with|rad|:la(dat)}}
{{tempn|with|rad|:la(_NOTHING! MWAHAHA)}}
Produces:
: {{with|rad|:la(dat)}}
: {{with|rad|:la(_NOTHING! MWAHAHA)}}
<hr>
This can also go before the term if it is a postposition. The <code>:</code> must still come only directly before the linked term.
{{tempn|with|rad|(gen):maișen}}
Produces:
: {{with|rad|(gen):maișen}}
== Multiple entry functions ==
=== Intra-parametric conjunction ===
Multiple complements can be specified in one parameter by dividing them with either <code>+</code> (''and'') or <code>/</code> (''or'').
{{tempn|with|rad v|gen + :la(dat)}}
{{tempn|with|rad v|gen / :la(dat)}}
{{tempn|with|rad v|gen + :la(dat) / dat}}
: {{with|rad|gen + :la(dat)}} + [[:Category:Radestrian verbs governing the genitive]]
: {{with|rad|gen / :la(dat)}} + [[:Category:Radestrian verbs governing the genitive]]
: {{with|rad|gen + :la(dat) / dat}} + [[:Category:Radestrian verbs governing the genitive]] + [[:Category:Radestrian verbs governing the dative]]
== Note and translation functions ==


== Format functions ==
== Format functions ==
=== Colours ===
If you would like to add or override the colour of the form, a hex code can be specified in <code>[square brackets]</code> directly after the form specification. If the form is specified with a linked term, the hex code must be specified '''outside''' the <code>(round brackets)</code>.
{{tempn|with|rad|&transitive[CBA987] / :la(dat)[789ABC]}}
: {{with|rad|&transitive[CBA987] / :la(dat)[789ABC]}}
=== Glossary link override ===
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.
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|_infinitive}}
{{tempn|with|rad|:ha(_genitive)}}
  {{tempn|with|_acc}}
  {{tempn|with|_acc}}
Produces:
Produces:
: {{with|_infinitive}}
: {{with|_infinitive}}
: {{with|rad|:ha(_genitive)}}
: {{with|_acc}} :(
: {{with|_acc}} :(


== Override functions ==
=== Overriding ‘''with''’ ===
<!--
If you do not need the automatically generated ‘''with''’ text, prepend the citation with <code>&</code>.
  {{tempn|with|rad v|*ins|pos=v}}
  {{temp|with|rad|&transitive / :la(dat)}}
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.
: {{with|rad|&transitive / :la(dat)}}
 
<hr>


{{temp|with|rad|:la(dat)}}
{{temp|with|rad|&transitive / &:la(dat)}}
: {{with|rad|:la(dat)}} (preposition)
: {{with|rad|&transitive / &:la(dat)}}


{{temp|with|rad|:la(dat)}}
<hr>
: {{with|rad|(gen):haleval}} (postposition)


{{temp|with|rad|&transitive / :la(dat)}}
Using it with <code>+</code> will omit the ‘''and''’.
: {{with|rad|&transitive / :la(dat)}} (no ''with'' text)
{{temp|with|rad|&transitive + :la(dat)}}
: {{with|rad|&transitive + :la(dat)}}


If you don't want to use links (<code>:</code>), then the language code parameter can be omitted.
== Categorisation override ==
If you are adding a case and would not like it categorised, there are two options.


{{temp|with|dat}}
=== Option 1: do not specify a part of speech ===
: {{with|dat}}
This only works if you would not like categorisation from anything specified in the template.
{{tempn|with|rad|ins}}
Produces:
: {{with|rad|ins}} <s>+ [[:Category:Radestrian verbs governing the instrumental]]</s>


Trying this with links will error.
=== Option 2: prepend <code>*</code> ===
This functionality is better if there are other elements which still require categorisation. It is most useful when you want to highlight a particular usage with a case that is nonetheless assumed (i.e. the accusative with transitive verbs), for which a category may arguably be redundant or unnecessary.
{{tempn|with|rad v|dat<to someone> + *acc<something>}}
Produces:
: {{with|rad|dat<to someone> + *acc<something>}} + [[:Category:Radestrian verbs governing the dative]] <s>+ [[:Category:Radestrian verbs governing the accusative]]</s>


{{temp|with|:la(dat)}}
<hr>
: {{with|:la(dat)}}


{{temp|with|rad|&transitive / &:la(dat)}}
: {{with|rad|&transitive / &:la(dat)}} (no ''with'' text x2)


{{temp|with|rad|_transitive / :la(dat)}}
: {{with|rad|_transitive / :la(dat)}} (no glossary link, just wikitext, still italicised)


{{temp|with|rad|acc[CBA987] / :la(dat)[789ABC]}}
<!--
: {{with|rad|acc[CBA987] / :la(dat)[789ABC]}} (custom colours)


{{temp|with|rad|acc / :la(dat)|multiple}}
{{temp|with|rad|acc / :la(dat)|multiple}}

Navigation menu