Perbincangan templat:etyl

Daripada Wiktionary
Jump to navigation Jump to search

Documentation[sunting]

Use this template in the Etymology section as a possible replacement for language-specific etymology templates listed under Wiktionary:Etymology/language templates.

This template takes 2 positional parameters:

  1. The language code of the source language — that is, the language the lexeme (word) comes from. Aside from normal language codes, one can pass codes here for language families (though they all have a etyl: just pass in the code like normal and {etyl} will find it).
  2. Optionally, the language code of the destination language — that is, the current language — for categorization purposes; or - (hyphen) if no category should be added. If omitted, en (English) is assumed.

....and 1 named parameter:

  1. {{{sort}}} is an alternative version used for the ordering of the word in the descendants category, generally for languages with diacritics which sort incorrectly.

This template will

  • Generate a link to wikipedia article of a source language.
  • Categorize the lexeme into appropriate category.

An example for English lexeme, for

(ka is the language code for Georgian):

==Etymology 2==
From {{etyl|ka}} {{term|sc=Geor|მწკრივი |tr=mts'k'rivi|lang=ka}}.
From bahasa Georgia .

An example for non-English lexeme, for Latin

(grc is the language code for Ancient Greek):

==Etymology==
From {{etyl|grc|la}} {{term|συνώνυμον|tr=sunōnumon|lang=grc|sc=polytonic}}
From bahasa Yunani PurbaRalat Lua pada baris 58 di Modul:debug: Templat ini tidak sesuai digunakan lagi. Sila guna {{der}}, {{inh}}, {{bor}}, {{cog}} atau {{noncog}}..

An example for a non-English lexeme which is not categorized, for translingual

 :

From {{etyl|grc|mul}} {{term|χλαμύς||cloak, mantle|tr=khlamus|lang=grc|sc=polytonic}} +
From bahasa Yunani Purba
(penggunaan templat isih) χλαμύς (khlamús, cloak, mantle)
+ …

Although mul is the code for "

Rentas bahasa رنتس بهاس

", we have no category structure for translingual etymology, so such words are not placed in any Descendants category.

As a mnemonic, the template’s name is an abbreviation for ety'mology language, hence etyl.

Implementation[sunting]

Implemented using {{language}}, which uses {{lang:...}}.