Pređi na sadržaj

Šablon:derived terms/documentation


This template is currently a proposal awaiting approval. Do not use use it before it has community approval.

Usage

[uredi]

This template creates a list of derived terms and is thought to be a replacement of the templates {{der2}}, {{der3}}, {{der4}}, {{der5}}, {{der-top}}, {{der-mid}}, {{der-top3}}, {{der-mid3}}, {{der-top4}}, {{der-mid4}}, {{der-top5}}, {{der-mid5}}, and {{der-bottom}}. Unlike the templates it replaces, it automatically selects an appropriate way to display the list, so the number of columns does not have to be specified manually.

It can be used for derived terms from English inflected forms (as terms derived from simple past tense and past participle) and must be placed here with preference to the "Futher reading" section.

Scheme

[uredi]

You can copy and paste in the entry this code to create the section and use the template (can see parameters and some examples bellow):

====Derived terms====
{{derived terms|lang=en|title=Terms derived from
|
|
}}

Parameters

[uredi]
  • lang: Language of the terms. This parameter is always mandatory, which is not the case in the templates this template replaces.
  • title: Used to add a title. If it does not exist, the default title is Derived terms and is displayed only when necessary. (In the current implementation, the default title is displayed as the title of the collapsible box, but not displayed if no collapsible box is displayed.)
  • Numbered parameters are the list items. At least one list item must be specified. There must be no duplicates. Leading and trailing white space is automatically trimmed from each item, so items can be written on separate lines without causing problems.
    Items may start with one asterisk (*). White space following the asterisk is automatically trimmed. This indicates that they are derived from the last preceding term that does not start with an asterisk.

Usage example

[uredi]

Simple example

[uredi]

Code:

{{derived terms|lang=en|title=Terms derived from the noun “golf”
| code golf
| golf ball
| golf cart
| golf club
| golf course
| golf hole
| golf pencil
| golf umbrella
| golf widow
| miniature golf
}}

Result:

{{derived terms|lang=en|title=Terms derived from the noun “golf”
| code golf
| golf ball
| golf cart
| golf club
| golf course
| golf hole
| golf pencil
| golf umbrella
| golf widow
| miniature golf
}}

Example with nested items

[uredi]

Code:

{{derived terms|lang=de
| {{l|de|Tennisarm}}
| {{l|de|Tennisball}}
|* {{l|de|Tennisballherstellung}}
|* {{l|de|Tennisballmetapher}}
| {{l|de|Tennisclub}}
| {{l|de|Tennisklub}}
| {{l|de|Tennislehrer}}
| {{l|de|Tennisnetz}}
| {{l|de|Tennisplatz}}
| {{l|de|Tennisschläger}}
|* {{l|de|Tischtennisschläger}}
| {{l|de|Tennisschuh}}
| {{l|de|Tennisspiel}}
| {{l|de|Tennisspieler}}
| {{l|de|Tennisspielerin}}
| {{l|de|Tennisturnier}}
| {{l|de|Tennisverein}}
| {{l|de|Tischtennis}}
|* {{l|de|Tischtennisball}}
|* {{l|de|Tischtennisplatte}}
|* {{l|de|Tischtennisschläger}}
|* {{l|de|Tischtennisspieler}}
|* {{l|de|Tischtennisspielerin}}
|* {{l|de|Tischtennistisch}}
}}

Result:

Lua greška in Modul:term_list at line 8: Parameter "lang" is not used by this template..