模板:T
[具体何词?]
使用Lua语言编写: |
Use this template in the Translations section to format a translation of a Chinese entry.
There are several translation templates:
{{t}}
is the default, and is the one that human editors should use when adding a translation.{{t-check}}
marks translations which need attention.{{t+}}
and{{t+check}}
are the same as{{t}}
and{{t-check}}
, respectively, except that they add a superscript link to the corresponding entry on the foreign-language Wiktionary. (For example,{{t+|fr|le}}
has a link to fr:le.) Various automated tools will change{{t}}
to{{t+}}
or{{t-check}}
to{{t+check}}
if the translation has an existing entry on the foreign-language Wiktionary. You can also do this manually, if you like, if you know that the entry exists.{{t-needed}}
to request a missing translation.{{tt}}
and{{tt+}}
are logically equivalent to{{t}}
and{{t+}}
, respectively, but only work inside of{{multitrans}}
. They should be used in place of{{t}}
and{{t+}}
inside of a{{multitrans}}
section in order to reduce memory usage.
这些模板基于模块Module:translations。
参数
|1=
(必填)- 语言编码,请见Appendix:语言列表。
|2=
(必填)- Entry name of the translated word. This supports all the features that
{{l}}
does: diacritics will be removed automatically from words in certain languages, embedded wikilinks will be processed properly, and the script and transliteration will be handled automatically if not provided. |3=
,|4=
,|5=
, … (all optional)- Gender/number specification(s), using the codes provided by Module:gender and number; If multiple codes are used (separted by a "|"), they will be displayed in the order given.
|sc=
(选填)- 特别的文字编码,请见Wiktionary:文字。 This is only needed if the script used in the translation is not one of the normal scripts of the language, or if script detection fails to detect the script correctly.
|tr=
(选填)- Specifies the transliteration into roman (Latin) script, as also shown in the example below. A transliteration may be automatically generated for certain languages, if none was provided. Use
|tr=-
if you don't want a transliteration to be automatically generated (you shouldn't really ever do this in an entry). |alt=
(选填)- Specifies an alternate form of the word, not the pagename, to be displayed.
|lit=
(选填)- Adds a literal translation for the term.
|id=
(选填)- Links to a
{{senseid}}
tag on the target page.
例子
以蝴蝶为例:
* 阿拉伯語:{{t|ar|فَرَاشَة|f}} * 孟加拉語:{{t|bn|প্রজাপতি|tr=projapoti, prajapati}} * 杜瓦爾語:{{t+|dwu|buurnba}} * 英語:{{t+|en|butterfly}} * 爪哇語:{{t+|jv|kupu}} * 拉丁語:{{t|la|pāpiliō}} * 俄語:{{t+|ru|ба́бочка|f}} * 塞爾維亞-克羅埃西亞語: *: 西里爾字母:{{t|sh|ле̏птӣр|m}} *: 拉丁字母:{{t|sh|lȅptīr|m}} * 坦米爾語:{{t+|ta|வண்ணத்துப்பூச்சி|lit= 彩色的昆蟲}} * 約魯巴語:{{t|yo|labalábá}}
- 阿拉伯语:فَرَاشَة f (farāša)
- 孟加拉语:প্রজাপতি (projapoti, prajapati)
- 杜瓦尔语:buurnba
- 英语:butterfly (en)
- 爪哇语:kupu (jv)
- 拉丁语:pāpiliō
- 俄语:ба́бочка (ru) f (bábočka)
- 塞尔维亚-克罗埃西亚语:
- 坦米尔语:வண்ணத்துப்பூச்சி (ta) (vaṇṇattuppūcci, 字面意思是“彩色的昆虫”)
- 约鲁巴语:labalábá
模板数据
本模板须以{{temp|翻译-顶}}、{{temp|翻译-中}}、{{temp|翻译-底}}搭配使用。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
语言 | 1 | Wiktionary language code for the language of translation
| 单行文本 | 必需 |
用语 | 2 | The word or phrase being linked to, that translates the word
| 单行文本 | 必需 |
文字编码 | sc | Specifies a Wiktionary script code. This is only needed if the script used in the translation is not one of the normal scripts of the language, or if script detection fails to detect the script correctly.
| 单行文本 | 可选 |
翻译 | tr | Specifies the transliteration into Latin script, as also shown in the example below. A transliteration may be automatically generated for certain languages, if none was provided. | 单行文本 | 可选 |
显示替代用语 | alt | Specifies an alternate form of the word, not the pagename, to be displayed.
| 单行文本 | 可选 |
字面意思 | lit | 该用语的字面意思
| 字符串 | 可选 |
Sense ID | id | 连结{{temp|senseid}}标签到目标页 | 单行文本 | 可选 |