Template:Cognate/doc
此頁面是Template:Cognate的Template文档文檔。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
This template is used to format the etymology of terms cognate with terms in another language. Please only use it under the header 'Etymology'.
It is implemented by Module:etymology and Module:etymology/templates.
Unlike most other etymology templates, this one adds no categories.
When to use
编辑This template is used to indicate cognacy with terms in other languages that are not ancestors of the given term (hence none of {{inherited}}
, {{borrowed}}
, and {{derived}}
are applicable). It is intended as a replacement for the longer expression {{etyl|language code|-}}
{{m|language code|term}}
(but it also handles etymology-only languages).
Parameters
编辑|1=
- The language code (see Wiktionary:Languages) of the language of the cognate term.
|2=
- The cognate term itself. If empty, generates a term request ([Term?]) and places the entry in a term request category, except in some cases like cognates that are families or substrates. (?) To override this and disable the term request, use "-".
|3=
or|alt=
- (optional) An alternative display form to show for the term, see
{{l}}
and{{m}}
. |4=
or|t=
(the parameter|gloss=
is deprecated)- (optional) A gloss/translation for the term, see
{{l}}
and{{m}}
. |tr=
- (optional) A transliteration for the term, see
{{l}}
and{{m}}
. |pos=
- (optional) A part of speech indication for the term, see
{{l}}
and{{m}}
. |g=
,|g2=
,|g3=
and so on- (optional) Gender and number, as in
{{l}}
and{{m}}
; see Module:gender and number for details. |lit=
- (optional) A literal translation for the term, see
{{l}}
and{{m}}
. |id=
- (optional) A sense id for the term, see
{{l}}
and{{m}}
. |sc=
- (optional) Script code to use. The template can usually figure out the correct code, so this is rarely needed. When no code is given, the template will try to detect the script based on the characters of the word, and if it fails to detect the script, the code
None
will be used.
See also
编辑TemplateData
编辑This template is used to format the etymology of terms cognate with terms in another language. Please only use it under the header 'Etymology'.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
language code | 1 | The language code (see [[Wiktionary:Languages]]) of the language of the cognate term.
| 字符串 | 必需 |
cognate term | 2 | The cognate term itself. If empty, generates a term request ([Term?]) and places the entry in a term request category, except in some cases like cognates that are families or substrates. (?) To override this and disable the term request, use "-".
| 页面名称 | 必需 |
display alternative | 3 alt | An alternative display form to show for the term. | 字符串 | 推荐 |
gloss | 4 gloss t | A gloss translation for the term. | 字符串 | 推荐 |
transliteration | tr | A transliteration for the term. | 字符串 | 推荐 |
part of speech | pos | A part of speech indication for the term. | 字符串 | 推荐 |
gender and number | g | Gender and number; see [[Module:gender and number]] for details. | 字符串 | 推荐 |
literal translation | lit | A literal translation for the term | 字符串 | 可选 |
sense id | id | A sense id for the term. | 字符串 | 推荐 |
script code | sc | Script code to use. The template can usually figure out the correct code, so this is rarely needed. When no code is given, the template will try to detect the script based on the characters of the word, and if it fails to detect the script, the code None will be used. | 字符串 | 可选 |