Jump to content

Template:Etymology/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 824898802 by Prof. Squirrel (talk)
Usage: syntaxhighlight
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{tsh|ety}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->


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 [[Brackets|parentheses]], i.e. <code><nowiki>({{etymology}})</nowiki></code>.
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 [[Brackets|parentheses]], i.e. <code><nowiki>({{etymology}})</nowiki></code>.


=== Usage ===
== Usage ==


<syntaxhighlight lang="wikitext">
<nowiki>{{</nowiki>etymology|''language1''|''orthography1''|''meaning1''
|''language2''|''orthography2''|''meaning2''
{{etymology|''language1''|''orthography1''|''meaning1''
|''language3''|''orthography3''|''meaning3''
|''language2''|''orthography2''|''meaning2''
... }}
|''language3''|''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):
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):
Line 20: Line 22:
* For each triplet, at least one of ''language'' and ''orthography'' must be specified (non-blank).
* 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.
* 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,'' <code><nowiki>{{ety}}</nowiki></code>.
* This template may also be coded using the shortened form, <code><nowiki>{{ety}}</nowiki></code>.


=== Examples ===
== Examples ==


Here is a wide selection of examples showing how one might use the {{tlc|etymology}} template, with various alternatives for some words. ''Invalid examples'' are also shown below.
Here is a wide selection of examples showing how one might use the {{tlc|etymology}} template, with various alternatives for some words. ''Invalid examples'' are also shown below.
Line 42: Line 44:
<code><nowiki>'''Dinosaur''' ({{etymology|grc|''δεινός'' (deinos)|terrible, powerful, wondrous||''σαῦρος'' (sauros)|lizard}})</nowiki></code>
<code><nowiki>'''Dinosaur''' ({{etymology|grc|''δεινός'' (deinos)|terrible, powerful, wondrous||''σαῦρος'' (sauros)|lizard}})</nowiki></code>
|-
|-
|'''Eukaryote''' ({{IPA-en|juːˈkæri.oʊt|pron}} {{respell|ew|KARR|ee-oht}} or {{IPA-en|juːˈkæriət|}}; {{etymology|grc|''ευ'' (eu)|good||''κάρυον'' (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}})
<code><nowiki>'''Eukaryote''' ({{IPA-en|juːˈkæri.oʊt|pron}} {{respell|ew|KARR|ee-oht}} or {{IPA-en|juːˈkæriət|}}; {{etymology|grc|''ευ'' (eu)|good||''κάρυον'' (karyon)|nut, kernel}})</nowiki></code>
<code><nowiki>'''Eukaryote''' ({{IPAc-en|j|uː|ˈ|k|ær|i|oʊ|t|,_|-|ə|t}} {{respell|yoo|KARR|ee|oht|,_|-|ət}}; {{etymology|grc|''ευ'' (eu)|good||''κάρυον'' (karyon)|nut, kernel}})</nowiki></code>
|-
|-
|'''Ngoja kidogo bush''' ({{etymology|sw|ngoja|wait||kidogo|a little||[[Shrub|bush]]}})
|'''Ngoja kidogo bush''' ({{etymology|sw|ngoja|wait||kidogo|a little||[[Shrub|bush]]}})
Line 53: Line 55:
!Invalid examples
!Invalid examples
|-
|-
|'''Etymology''' from [[Greek language|Greek]] ἔτυμον', '''meaning 'true sense', and λογία'''', meaning 'study of'
|'''Etymology''' ({{ety|gre|''ἔτυμον''|true sense||''λογία''|study of}})


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


<small>''Note: If the original language uses a non-Latin alphabet the orthography should be followed by a transliteration within parentheses.''</small>
<small>''Note: If the original language uses a non-Latin alphabet the orthography should be followed by a transliteration within parentheses.''</small>
|-
|-
|'''Xylophone''' (from [[Ancient Greek language|Ancient Greek]] ξύλον ''(xylon)'', meaning 'wood', and [[''φωνή'' (phone) language|''φωνή'' (phone)]] ''sound'')
|'''Xylophone''' ({{etymology|grc|''ξύλον'' (xylon)|wood|''φωνή'' (phone)|sound}})


<code><nowiki>'''Xylophone''' ({{Etymology|grc|''ξύλον'' (xylon)|wood|''φωνή'' (phone)|sound}})</nowiki></code>
<code><nowiki>'''Xylophone''' ({{etymology|grc|''ξύλον'' (xylon)|wood|''φωνή'' (phone)|sound}})</nowiki></code>


<small>''Note: Parameters must be grouped into triplets.''</small>
<small>''Note: Parameters must be grouped into triplets.''</small>
|-
|-
|'''Zeitgeist''' ({{etymology|||spirit of the time}})
|'''Zeitgeist''' (<strong class="error">{{[[Template:Etymology#Examples|etymology]]}} requires 1st or 2nd parameter in each triplet!</strong>)


<code><nowiki>'''Zeitgeist''' ({{etymology|||spirit of the time}})</nowiki></code>
<code><nowiki>'''Zeitgeist''' ({{etymology|||spirit of the time}})</nowiki></code>
Line 72: Line 74:
|}
|}


===See also===
== TemplateData ==
{{TemplateDataHeader}}
<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>
==See also==
*{{tl|Etymology section}}
*{{tl|Etymology section}}
*{{tl|Place name etymologies}}
*{{tl|Place name etymologies}}
*{{tl|Roma etymology}}
*{{[[Template:Missing|<nowiki>Missing|etymology</nowiki>]]}}
*{{[[Template:Missing|<nowiki>Missing|etymology</nowiki>]]}}


<includeonly>
<includeonly>{{Sandbox other||
[[Category:Language templates]]
[[Category:Language templates]]
}}</includeonly>

[[es:Plantilla:Etimología]]
[[eo:Ŝablono:Etimologio]]
[[fr:Modèle:Étymologie]]
[[la:Formula:Etymologia]]
</includeonly>

Latest revision as of 13:27, 28 February 2024

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

[edit]
{{etymology|''language1''|''orthography1''|''meaning1''
           |''language2''|''orthography2''|''meaning2''
           |''language3''|''orthography3''|''meaning3'' ... }}

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

[edit]

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 Latin anniversarius 'returning annually'; from annus 'year' and versus 'to turn')

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

Biology (from Ancient Greek βίος (bios) 'life' and λογία (logia) 'study of')

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

Café (from French)

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

Dinosaur (from Ancient Greek δεινός (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 Ancient Greek ευ (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 Swahili ngoja 'wait' kidogo 'a little' and bush)

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

Sesquipedalophobia (from Latin sesquipedalia verba 'words a foot-and-a-half long'; from sēsqui 'one and a half' pedālis 'foot' and Ancient Greek φόβος (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 Greek ἔτυμον' '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 Ancient Greek ξύλον (xylon) 'wood' and φωνή (phone) 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

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Etymology in articles based on its TemplateData.

TemplateData for Etymology

Takes groups of three parameters (triplets) that indicate a part of an etymology and produces formatted output

Template parameters

ParameterDescriptionTypeStatus
Language 11

ISO 639 code or name for the language of the word or first root

Example
gre
Stringsuggested
Orthography 12

How the word or first root is written in the original language

Example
''βίος'' (bios)
Stringsuggested
Meaning 13

Concise English meaning of the word or first root

Example
life
Stringsuggested
Language 24

ISO 639 code or name for the language of the second root

Stringoptional
Orthography 25

How the second root is written in the original language

Stringoptional
Meaning 26

Concise English meaning of the second root

Stringoptional
Language 37

ISO 639 code or name for the language of the third root

Stringoptional
Orthography 38

How the third root is written in the original language

Stringoptional
Meaning 39

Concise English meaning of the third root

Stringoptional
Language 410

ISO 639 code or name for the language of the fourth root

Stringoptional
Orthography 411

How the fourth root is written in the original language

Stringoptional
Meaning 412

Concise English meaning of the fourth root

Stringoptional
Language 513

ISO 639 code or name for the language of the fifth root

Stringoptional
Orthography 514

How the fifth root is written in the original language

Stringoptional
Meaning 515

Concise English meaning of the fifth root

Stringoptional
Language 616

ISO 639 code or name for the language of the sixth root

Stringoptional
Orthography 617

How the sixth root is written in the original language

Stringoptional
Meaning 618

Concise English meaning of the sixth root

Stringoptional

See also

[edit]