Template:def+/documentation: Difference between revisions
Jump to navigation
Jump to search
TheNightAvl (talk | contribs) (Created page with "{{documentation subpage}} {{uses lua|Module:languages-oow}} {{shortcut|Template:d+}} This template allows you to add term definitions in other languages. Note that this can only generate a list of terms; you cannot use this to write unlinked text. This template will add the category '''Terms with X translations'''. * {{para|1|req=1}} *: language code (<code>de</code>, <code>pl</code>, <code>sl</code> etc.) * {{para|2|req=1}}, {{para|3|opt=1}} etc. *: terms to link The...") |
TheNightAvl (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
*: terms to link | *: terms to link | ||
The inline argument <code><g:></code> can be used to specify gender/number/perfectivity beside the term. An empty argument <code>||</code> can be used to add a semicolon in the list. | The inline argument <code><alt:></code> can be used to override the displayed term. <code><g:></code> can be used to specify gender/number/perfectivity beside the term. An empty argument <code>||</code> can be used to add a semicolon in the list, or to add another language code. | ||
# {{tempn|eng|condition}}, {{tempn|eng|state}}; {{tempn|eng|circumstances}} | # {{tempn|eng|condition}}, {{tempn|eng|state}}; {{tempn|eng|circumstances}} | ||
#: {{tempn|def+|de|Zustand<g:m>|Verfassung<g:f>||Umstände<g:m | #: {{tempn|def+|de|Zustand<g:m>|Verfassung<g:f>||Umstand<g:m p><alt:Umstände>||pl|stan<g:m>}} | ||
# {{eng|condition}}, {{eng|state}}; {{eng|circumstances}} | # {{eng|condition}}, {{eng|state}}; {{eng|circumstances}} | ||
#: {{def+|de|Zustand<g:m>|Verfassung<g:f>||Umstände<g:m | #: {{def+|de|Zustand<g:m>|Verfassung<g:f>||Umstand<g:m p><alt:Umstände>||pl|stan<g:m>|nocat=1}} |
Latest revision as of 22:58, 25 December 2024
Uses Lua: |
Shortcut
{{d+}} |
This template allows you to add term definitions in other languages. Note that this can only generate a list of terms; you cannot use this to write unlinked text. This template will add the category Terms with X translations.
|1=
(required)- language code (
de
,pl
,sl
etc.)
- language code (
|2=
(required),|3=
(optional) etc.- terms to link
The inline argument <alt:>
can be used to override the displayed term. <g:>
can be used to specify gender/number/perfectivity beside the term. An empty argument ||
can be used to add a semicolon in the list, or to add another language code.
# {{eng|condition}}, {{eng|state}}; {{eng|circumstances}} #: {{def+|de|Zustand<g:m>|Verfassung<g:f>||Umstand<g:m p><alt:Umstände>||pl|stan<g:m>}}
- condition, state; circumstances
- 🇩🇪 Zustand m, Verfassung f; Umstände m pl — 🇵🇱 stan m