Template:etymon/documentation

This template may be used in Wiktionary entries to indicate a term's immediate ancestor. Note that generally, an "etymon" can refer to any kind of etymological ancestor, but on this page, "etymon" will be used specifically for an immediate ancestor. For example, the etymon of is, and the etymon of  is. Terms can have multiple etymons, so the etymons of are both  and. Even if the etymology of a term is completely unknown, this template may still be useful.

Current features: automatic categorization, tree generation, text generation (experimental).

Usage
Suppose that the etymon of is set to, and the etymon of payen is set to. The template is then able to intelligently connect pay and paiier, even though they are two steps apart. The template thus reduces duplication across entries by making it unnecessary to manually specify that pay and paiier are connected.

To do this, the etymology ID must be specified at every step along the away. Otherwise, there is ambiguity between homographs: when we write pay is from paiier, we really mean pay in the sense "to give money", not "to cover the bottom of a vessel with tar or pitch" (which has a completely different origin). The only way to ensure that the template is able to traverse these etymological chains without getting confused is to ensure that both senses of pay are given unique IDs which allow them to be distinguished. This mirrors the practice of the OED, which identifies these two pays as 1139292520 and 4272270366, respectively. However, unlike in the OED, the identifier should be a word or short phrase which summarizes the definition of the term rather than a meaningless string of numbers. In the case of pay, the two IDs might be  and.

Parameters
The template takes the following parameters:


 * 1
 * The language code of the current entry.


 * id
 * The etymology ID. This parameter also creates an anchor to the current section. For example, if the template at is etymon, this etymology section is directly linked to by father. The ID must have at least two characters and must not be the same as the page title.


 * title
 * This parameter manually overrides the current page title. For example, if an etymology tree is created at (located at pono) it is necessary to specify   to ensure that the macrons are displayed.


 * tree
 * If set to anything, displays an etymology tree. Per Votes/2024-04/Allowing etymology trees on entries, each language community decides when it is appropriate to show a tree on a particular entry.


 * text [EXPERIMENTAL]
 * If set to anything, displays some text describing the etymology. The text modes are:  (all steps, no glossary links; the default),   (single step, no glossary links),   (single step, glossary links), and   (all steps, glossary links).


 * 2, 3, ...
 * These are the etymon parameters. Each etymon parameter can be either an etymon, a confidence keyword, or a derivation keyword. There can be any number of etymon parameters.

Etymons
Etymons must be written using the following format:. For example:  represents  (etymology 1). As a shortcut, it's possible to omit the language code (i.e., just writing ). In this case, the template will assume that the language is the same as the one set in 1.

Confidence keywords
Each confidence keyword applies to all the etymons that follow it. A confidence keyword is reset by another confidence keyword or a derivation keyword.
 * conf: (default) short for "confident".
 * unc: short for "uncertain". Note that discredited, dubious, or speculative etymologies should not be added to the template at all.

Derivation keywords
Each derivation keyword applies to all the etymons that follow it. A derivation keyword is reset by another derivation keyword. For example,  means that a term is inherited from both etymon1 and etymon2 and also borrowed from both etymon3 and etymon4.
 * from: (default) unspecified derivation type within a language. Corresponds with from, as well as a wide variety of miscellaneous derivations including clipping, deverbal, back-formation, and others.
 * der: short for "derived". Used when a term is borrowed from another language, but may have been altered in some way. Corresponds with derived.
 * bor: short for "borrowed". Used when a term is borrowed from another language directly. Corresponds with borrowed.
 * lbor: short for "learned borrowing". Used when a term is borrowed from another language directly, but done intentionally rather than through normal language contact. Correponds to learned borrowing.
 * slbor: short for "semi-learned borrowing". Used for a learned borrowing which is reshaped somewhat. Corresponds with semi-learned borrowing.
 * obor: short for "orthographic borrowing". Used for . Corresponds with orthographic borrowing.
 * inh: short for "inherited". Used when a term comes directly from the parent language unchanged. Corresponds with inherited.
 * calque: used for . Corresponds with calque.
 * sl: used for . Corresponds with semantic loan.
 * af: short for "affix". Used for compounds, affixation, and any other template where a "+" is involved. The keywords af and afeq are unique in that the order matters:  means etymon1 + etymon2, while   means etymon2 + etymon1, which would be an entirely different word. Corresponds with affix, compound, and others.
 * blend: used for . Corresponds with blend.
 * afeq: short for "equivalent affix". For example, is from, but is equivalent to . Any etymons associated with this parameter are ignored entirely, besides categorization. Corresponds with affix, compound, and others.
 * influence: used when a term is influenced in some way by another. For example, the modern meaning of is influenced by the unrelated word . This does not correspond with any existing template.

Using a keyword not on this list will produce an error.

Examples
(on )

This means: father is inherited from Middle English fader.

(on )

This means: *ph₂tḗr might come from *peh₂ + *-tḗr. In this case, the etymons are associated with both the derivation keyword "af" and the confidence keyword "unc". Note that since the language is not specified for either etymon, the template assumes that the two etymons are  (Proto-Indo European).

(on )

This means: podłoga comes from Polish podłożyć. Currently, there is no keyword specifically designating a deverbal. This may be changed in the future.

See Template:etymon/testcases for test cases and more examples of use.

TemplateData
{	"description": "This template may be used indicate a term's immediate ancestor(s).", "params": { "1": {			"label": "Language", "description": "The language of the current entry.", "type": "string", "required": true, "suggested": true, "example": "en" },		"2": {			"label": "Etymon parameter #1", "description": "The first etymon parameter. Typically for derivation keyword.", "type": "string", "example": "der, alternatively - enm>fader>father" },		"3": {			"label": "Etymon parameter #2", "description": "The second etymon parameter.", "type": "string" },		"4": {			"label": "Etymon parameter #3", "description": "The third etymon parameter.", "type": "string" },		"5": {			"label": "Etymon parameter #4", "description": "The fourth etymon parameter.", "type": "string" },		"6": {			"label": "Etymon parameter #5", "description": "The fifth etymon parameter.", "type": "string" },		"7": {			"label": "Etymon parameter #6", "description": "The sixth etymon parameter.", "type": "string" },		"8": {			"label": "Etymon parameter #7", "description": "The seventh etymon parameter.", "type": "string" },		"9": {			"label": "Etymon parameter #8", "description": "The eighth etymon parameter.", "type": "string" },		"id": { "label": "Etymology ID", "description": "The ID of the current etymology section.", "type": "string", "required": true, "suggested": true, "example": "male parent" },		"title": { "label": "Title", "description": "The title of the current entry (if different from the page title)", "type": "string", "example": "father" },		"tree": { "label": "Tree", "description": "Set this to \"1\" to display a tree.", "type": "string", "example": "1" },		"text": { "label": "Text", "description": "Automatically generates some text (experimental, see documentation).", "type": "string", "example": "1" }	},	"paramOrder": [ "1",		"id", "title", "2",		"3",		"4",		"5",		"6",		"7",		"8",		"9",		"tree", "text" ],	"format": "inline" }