ទំព័រគំរូ:etyl/doc
Synopsis
កែប្រែwiki-code | output | category |
---|---|---|
{{etyl|fr}} |
បារាំង | Category:English terms derived from French |
{{etyl|en|es}} |
អង់គ្លេស | Category:Spanish terms derived from English |
{{etyl|sla|it}} |
Slavic | Category:Italian terms derived from Slavic languages |
{{etyl|de|-}} |
អាល្លឺម៉ង់ | (none) |
User documentation
កែប្រែ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:
- 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).
- 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:
- {{{sort}}} is an alternative version used for the ordering of the word in the descendants category, generally for languages with diacritics which sort incorrectly, or for languages that use Chinese characters (notably Japanese), so they are sorted phonetically, rather than by Chinese character.
This template will:
- Generate a link to the Wikipedia article of a source language (if uncommon).
- Categorize the lexeme into appropriate category.
An example for English lexeme, for screeve (ka is the language code for Georgian):
- ==Etymology 2==
- From {{etyl|ka}} {{term|sc=Geor|მწკრივი |tr=mts'k'rivi|lang=ka}}.
- From ចចជី მწკრივი (mckrivi).
An example for non-English lexeme, for Latin synonymum (grc is the language code for Ancient Greek):
- ==Etymology==
- From {{etyl|grc|la}} {{term|συνώνυμον|tr=sunōnumon|lang=grc|sc=polytonic}} …
- From ក្រិកបរមបុរាណ συνώνυμον (sunōnumon) …
An example for a non-English lexeme which is not categorized, for translingual Chlamydomonas :
- From {{etyl|grc|mul}} {{term|χλαμύς||cloak, mantle|tr=khlamus|lang=grc|sc=polytonic}} + …
- From ក្រិកបរមបុរាណ χλαμύς (khlamus, “cloak, mantle”) + …
Although mul is the code for "បន្ទេរភាសា", 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 etymology language, hence etyl.
Implementation
កែប្រែImplemented using {{language}}
, which uses {{lang:...}}.
See also
កែប្រែ