Template:Etymology/doc

< Template:Etymology

Takes groups of three parameters (triplets) that indicate a part of an etymology and produces formatted output. It is highly recommended that in-line etymologies be placed within parentheses, i.e. ({{etymology}}).

Usage

<syntaxhighlight lang="wikitext"> from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. orthography1' meaning1

          ', Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found.  orthography2' meaning2
          ', and Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found.  orthography3' meaning3 ... '

</syntaxhighlight>

Between one and six triplets can be specified, each of which can have the following parameters (which can be left blank or, at the end of the list, omitted entirely):

  • language: The ISO 639 code or name for the language. This might be omitted if the language is obvious (e.g. the same as the language of the previous part, or English).
  • orthography: How the word or words are written in the original language. If the original language uses a non-Latin alphabet the orthography should be surrounded by two straight single quotation marks (vertical apostrophes) '' before and after to avoid automatic italicizing (see MOS:Ety), followed by a transliteration within parentheses. If a transliteration is not needed, the final set of single quotation marks must be followed by a character, such as a hair space () or thin space (&thinsp; or ), to avoid text formatting problems.
  • meaning: Concise English meaning of the word. This could be a link if appropriate.
Notes
  • For each triplet, at least one of language and orthography must be specified (non-blank).
  • If the original language uses a non-Latin alphabet (or no alphabet at all), the orthography should be followed by a transliteration within parentheses.
  • This template may also be coded using the shortened form, {{ety}}.

Examples

Here is a wide selection of examples showing how one might use the {{etymology}} template, with various alternatives for some words. Invalid examples are also shown below.

Valid examples
Anniversary (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. anniversarius 'returning annually'; from annus 'year', and versus 'to turn')

'''Anniversary''' ({{etymology|la|anniversarius|returning annually}}; {{etymology||annus|year||versus|to turn}})

Biology (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. βίος (bios) 'life', and λογία (logia) 'study of')

'''Biology''' ({{etymology|grc|''βίος'' (bios)|life||''λογία'' (logia)|study of}})

Café (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found.)

'''Café''' ({{ety|fr}})

Dinosaur (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. δεινός (deinos) 'terrible, powerful, wondrous', and σαῦρος (sauros) 'lizard')

'''Dinosaur''' ({{etymology|grc|''δεινός'' (deinos)|terrible, powerful, wondrous||''σαῦρος'' (sauros)|lizard}})

Eukaryote (/jˈkærit, -ət/ yoo-KARR-ee-OHT-,_---ət; from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. ευ (eu) 'good', and κάρυον (karyon) 'nut, kernel')

'''Eukaryote''' ({{IPAc-en|j|uː|ˈ|k|ær|i|oʊ|t|,_|-|ə|t}} {{respell|yoo|KARR|ee|oht|,_|-|ət}}; {{etymology|grc|''ευ'' (eu)|good||''κάρυον'' (karyon)|nut, kernel}})

Ngoja kidogo bush (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. ngoja 'wait', kidogo 'a little', and bush)

'''Ngoja kidogo bush''' ({{etymology|sw|ngoja|wait||kidogo|a little||[[Shrub|bush]]}})

Sesquipedalophobia (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. sesquipedalia verba 'words a foot-and-a-half long'; from sēsqui 'one and a half', pedālis 'foot', and Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. φόβος (phobos) 'fear')

'''Sesquipedalophobia''' ({{etymology|la|sesquipedalia verba|words a foot-and-a-half long}}; {{etymology||sēsqui|one and a half||pedālis|foot|grc|''φόβος'' (phobos)|fear}})

Invalid examples
Etymology (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. ἔτυμον' 'true sense', and λογία' 'study of')

'''Etymology''' ({{ety|gre|''ἔτυμον''|true sense||''λογία''|study of}})

Note: If the original language uses a non-Latin alphabet the orthography should be followed by a transliteration within parentheses.

Xylophone (from Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. ξύλον (xylon) 'wood', and Lua error in package.lua at line 80: module 'Module:Language/data/ISO 639 override' not found. sound)

'''Xylophone''' ({{etymology|grc|''ξύλον'' (xylon)|wood|''φωνή'' (phone)|sound}})

Note: Parameters must be grouped into triplets.

Zeitgeist ({{etymology}} requires 1st or 2nd parameter in each triplet!)

'''Zeitgeist''' ({{etymology|||spirit of the time}})

Note: The language or orthography may be omitted, but not both.

TemplateData

This is the TemplateData documentation for the template used by the new VisualEditor.

Etymology

<templatedata> { "description": "Takes groups of three parameters (triplets) that indicate a part of an etymology and produces formatted output", "params": { "1": { "label": "Language 1", "type": "string", "required": false, "suggested": true, "deprecated": false, "description": "ISO 639 code or name for the language of the word or first root", "example": "gre" }, "2": { "label": "Orthography 1", "type": "string", "required": false, "suggested": true, "deprecated": false, "description": "How the word or first root is written in the original language", "example": "βίος (bios)" }, "3": { "label": "Meaning 1", "type": "string", "required": false, "suggested": true, "deprecated": false, "description": "Concise English meaning of the word or first root", "example": "life" }, "4": { "label": "Language 2", "type": "string", "required": false, "deprecated": false, "description": "ISO 639 code or name for the language of the second root" }, "5": { "label": "Orthography 2", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "How the second root is written in the original language" }, "6": { "label": "Meaning 2", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Concise English meaning of the second root" }, "7": { "label": "Language 3", "type": "string", "required": false, "deprecated": false, "description": "ISO 639 code or name for the language of the third root" }, "8": { "label": "Orthography 3", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "How the third root is written in the original language" }, "9": { "label": "Meaning 3", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Concise English meaning of the third root" }, "10": { "label": "Language 4", "type": "string", "required": false, "deprecated": false, "description": "ISO 639 code or name for the language of the fourth root" }, "11": { "label": "Orthography 4", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "How the fourth root is written in the original language" }, "12": { "label": "Meaning 4", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Concise English meaning of the fourth root" }, "13": { "label": "Language 5", "type": "string", "required": false, "deprecated": false, "description": "ISO 639 code or name for the language of the fifth root" }, "14": { "label": "Orthography 5", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "How the fifth root is written in the original language" }, "15": { "label": "Meaning 5", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Concise English meaning of the fifth root" }, "16": { "label": "Language 6", "type": "string", "required": false, "deprecated": false, "description": "ISO 639 code or name for the language of the sixth root" }, "17": { "label": "Orthography 6", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "How the sixth root is written in the original language" }, "18": { "label": "Meaning 6", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Concise English meaning of the sixth root" } } } </templatedata>