Template:def+/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(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...")
 
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 pl>}}
  #: {{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 pl>|nocat=1}}
#: {{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

Edit-copy green.svg Documentation for Template:def+. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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.)
  • |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>}}
  1. condition, state; circumstances
    🇩🇪 Zustand m, Verfassung f; Umstände m pl — 🇵🇱 stan m