Template:Cognate/doc

維基詞典,自由的多語言詞典

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[编辑]

這是用於新版可视化编辑器和其他工具的模板數據說明文件。

來自Cognate的模板數據

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 code1

The language code (see [[Wiktionary:Languages]]) of the language of the cognate term.

示例值
en
字符串必需
cognate term2

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 "-".

示例值
foo
页面名称必需
display alternative3 alt

An alternative display form to show for the term.

字符串推荐
gloss4 gloss t

A gloss translation for the term.

字符串推荐
transliterationtr

A transliteration for the term.

字符串推荐
part of speechpos

A part of speech indication for the term.

字符串推荐
gender and numberg

Gender and number; see [[Module:gender and number]] for details.

字符串推荐
literal translationlit

A literal translation for the term

字符串可选
sense idid

A sense id for the term.

字符串推荐
script codesc

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.

字符串可选