Template:derived terms/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:derived terms. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template is currently a proposal awaiting approval. Do not use use it before it has community approval. For nowadays template for this use, see {{der3}}.

Usage[edit]

This template creates a list of derived terms and is thought to be a replacement of the templates {{col2}}, {{col3}}, {{col4}}, {{der-top}}, {{der-top3}}, {{der-top4}}, {{der-top5}}, 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.

Scheme[edit]

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|en
|
|
}}

Parameters[edit]

|1=
The first parameter specifies the language of the terms.
|title=
Deprecated. Specifies the title of the collapsible box. This is currently only shown in cases where the "nested list" functionality is used (see below). The default title is "Derived terms".
Subsequent numbered parameters
The list items. At least one list item must be specified. Duplicates are eliminated. 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 (*). This indicates that they are derived from the last preceding term that does not start with an asterisk. This capability is referred to as "nested list" functionality.

Usage example[edit]

Simple example[edit]

Observe that the template sorts the list and automatically removes repeated items.

Code:

{{derived terms|en
| code golf
| miniature golf
| golf ball
| golf cart
| golf club
| golf club
| golf course
| golf hole
| golf pencil
| golf umbrella
| golf widow
}}

Result:

Small example[edit]

Code:

{{derived terms|en
| golf club
| code golf
| golf ball
| golf cart
}}

Result:

Example with nested items[edit]

Code:

{{derived terms|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: