This template is used in the etymology section to display etymologies for compound terms: words that are made up of multiple parts. For more about compounds in etymologies, seeWiktionary:Etymology § Compounds.
{{compound}} is only used when two or moreindependent words are joined, without modification. In other cases, please use the following alternatives:
{{affix}}, which supports arbitrary combinations of affixes along with independent words. In fact{{affix}} can be used in place of{{compound}}.{{confix}} instead.{{blend}} instead.For combinations involving an affix added to two or more base words, if possible show the intermediate form (affix added to single base word, or compound of base words with affix already included). If the implied intermediate form is not used, use{{compound}}, including the affix as one component, and manually list the affix category. For example,bartender is composed ofbar +tender, not *(bar +tend +-er), since the intermediate formtender is used, or *(bartend +-er), sincebartend is a backformation.
This template usesModule:affix as a back-end. This module, in turn, usesModule:links to link each part of the compound, so that it supports all the features in that module.
The most basic usage is as follows:
{{compound|(language code)|first part|second part|optionally more parts}}For instance, a simple etymology ofplaceholder could be created with:
{{compound|en|place|holder}}which evaluates to:
It also adds the entry toCategory:English compound terms.
The language code (seeWiktionary:Languages) is given with the first positional parameter, and the script code (seeWiktionary:Scripts) optionally withsc=. The script can be detected if not provided, so it's rarely needed.
In principle, all parameters that are present in{{m}} and{{l}} are also supported by this template. Parameters that apply to the individual words in the compound are suffixed with a number, which matches the position where the part appears (the number of the positional parameter). Sotr= becomestr1=,tr2=,tr3= and so on. Parameters which in{{l}} and{{term}} are positional (the alternative display form of the term, and the gloss) are given named parameters with matching numbers. The following are supported:
|1=|nocat=1|1=.|alt1=,|alt2= …|tr1=,|tr2= …|t1=,|t2= …|pos1=,|pos2= …|type=|nocap=1|type=.|notext=1|type= is used, do not generate the extra text that is normally placed before the listed parts. The page will still be placed in the additional type-specific category unless|nocat=1 is given.{{compound|fy|fier|ljeppe|t1=far|t2=to leap|pos1=adjective|pos2=verb|nocat=1}}fier(“far”,adjective) +ljeppe(“to leap”,verb)
The above code would be used on the Dutch entryfierljeppen to explain the origin of the West Frisian wordfierljeppe without also placing the Dutch entry inCategory:West Frisian compound terms.
TemplateData for compound
This template is used in the etymology section to display etymologies for compound terms: words that are made up of multiple parts. For more about compounds in etymologies, see Etymology: Compounds.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| language code | 1lang | the 2- or 3-letter language code for the current section
| String | required |
| first part | 2 | the prefixed part of the compound word
| Page name | required |
| second part | 3 | the suffixed part of the compound word
| Page name | required |
| third part | 4 | optional 3rd, 4th, ... parts of the compound word using params 4, 5, ... | Page name | optional |
| fourth part | 5 | optional 3rd, 4th, ... parts of the compound word using params 4, 5, ... | Page name | optional |