Template:Lang-enm

维基百科,自由的百科全书
跳到导航 跳到搜索
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

用法

settings
code enm
style: inherit

模板{{lang-enm}}向读者表明一个名词或短语在中古英语的原文形式。名词或短语是唯一的必要参数。文本依据Wikipedia:格式手冊/文字格式的建议进行格式化,任何语言都不应在模板内添加斜体。参数可防止链接语言名称。

参数|translit=给出转译,使用拉丁字母表示原文。此处列出了具有此参数的模板。对于原本使用拉丁文字的语言,lang-x模板不支持此参数。

参数|lit=给出中文直译,可能适用于{{lang-enm}}

参数

lang-xx支持的参数
参数 定义 受制于 别名
text 非中文文本 {{{1}}}
translit text内容的拉丁文字转译 {{{2}}}
translit-std standard used for the transliteration of the value of translit; accepted values are: ISO, DIN, IAST, ALA, ALA-LC
translit-script transliteration standard's script identifier
translation literal English translation or gloss of the content in text lit, {{{3}}}
label label to be used instead of template-provided language label; may be wikilinked; special keyword none causes the template to render without any labels (including transliteration and translation labels)
link yes (default) links language name and static text associated with translit and translation; accepted values are: no, yes; |link=no does not unlink wikilinked labels set by |label= links
code IETF language tag for the content in text; set by the template, overriding the template setting is discouraged
script IETF language script subtag; sometimes set by the template when the language of the content in text uses more than one writing system; always four alpha characters; a value of Latn (not "Latin"!) forces italic rendering unless overridden by italic; overrides rtl italic
region IETF language region subtag
variant IETF language variant subtag
rtl yes indicates that the writing system used for the content in text is right-to-left; accepted values are: no (default), yes script
italic Template:Crossref; accepted values are: yes, no, unset, invert, default italics
size specifies font size of the content in text; use a value suitable for use with the CSS font-size property; this should almost always be a relative value supplied in Template:Mxt or Template:Mxt units, not a fixed Template:!mxt value.
nocat yes inhibits automatic categorization; accepted values are: no (default), yes
lang-xx |italic= 参数操作
|italic= value 描述 示例代码 结果 HTML标记
  • parameter not present;
  • parameter present, not set;
  • invalid value
  • module applies style from:
  •   template setting, or
  •   |script=latn;
  • else inherits from external markup;
  • invalid values treated as default
{{lang-ru|тундра}} 俄语:тундра 俄语:<span lang="ru" xml:lang="ru">тундра</span>
Template:Deprecated code 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
Incorrect markup; this requires |script=latn.
{{lang-fr|toundra}} 法语:toundra 法语:<span lang="fr" xml:lang="fr">toundra</span>
{{lang-ru|script=latn|tûndra}} 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
default {{lang-ru|тундра|italic=default}} 俄语:тундра 俄语:<span lang="ru" xml:lang="ru">тундра</span>
{{lang-fr|toundra|italic=default}} 法语:toundra 法语:<span lang="fr" xml:lang="fr">toundra</span>
{{lang-ru|script=latn|tûndra|italic=default}} 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
no
  • module applies upright style;
  • overrides |script=latn;
  • overrides external markup
{{lang-ru|тундра|italic=no}} 俄语:тундра 俄语:<span lang="ru" xml:lang="ru">тундра</span>
{{lang-fr|toundra|italic=no}} 法语:toundra 法语:<span lang="fr" xml:lang="fr">toundra</span>
{{lang-ru|script=latn|tûndra|italic=no}} 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
''{{lang-ru|script=latn|tûndra|italic=no}}'' 俄语:tûndra ''俄语:<span lang="ru" xml:lang="ru">tûndra</span>''
yes
  • module applies italic style;
  • ignores |script=latn
{{lang-ru|тундра|italic=yes}} 俄语:тундра 俄语:<span lang="ru" xml:lang="ru">тундра</span>
{{lang-ru|script=latn|tûndra|italic=yes}} 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
unset
  • module applies no style;
  • inherits style from external markup;
  • overrides |script=latn
{{lang-ru|тундра|italic=unset}} 俄语:тундра 俄语:<span lang="ru" xml:lang="ru">тундра</span>
''{{lang-ru|тундра|italic=unset}}'' 俄语:тундра ''俄语:<span lang="ru" xml:lang="ru">тундра</span>''
{{lang-ru|script=latn|tûndra|italic=unset}} 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
''{{lang-ru|script=latn|tûndra|italic=unset}}'' 俄语:tûndra ''俄语:<span lang="ru" xml:lang="ru">tûndra</span>''
invert
  • module applies no style;
  • inverts style in internal markupdagger;
  • disables auto-italics
  • overrides script subtag latn;
{{lang-ru|тундра|italic=invert}} 俄语:тундра 俄语:<span lang="ru" xml:lang="ru">тундра</span>
''{{lang-ru|тундра|italic=invert}}'' 俄语:тундра ''俄语:<span lang="ru" xml:lang="ru">тундра</span>''
{{lang-ru|script=latn|tûndra|italic=invert}} 俄语:tûndra 俄语:<span lang="ru" xml:lang="ru">tûndra</span>
''{{lang-ru|script=latn|tûndra|italic=invert}}'' 俄语:tûndra ''俄语:<span lang="ru" xml:lang="ru">tûndra</span>''

dagger compare |italic=invert to |italic=unset:

{{Lang-de|... ein neues Opernprojekt in Angriff: ''Das Käthchen von Heilbronn'', nach Heinrich von Kleists gleichnamigem Drama.|italic=invert}}
德語:... ein neues Opernprojekt in Angriff: Das Käthchen von Heilbronn, nach Heinrich von Kleists gleichnamigem Drama.
{{Lang-de|''... ein neues Opernprojekt in Angriff: ''Das Käthchen von Heilbronn'', nach Heinrich von Kleists gleichnamigem Drama.''|italic=unset}}
德語:... ein neues Opernprojekt in Angriff: Das Käthchen von Heilbronn, nach Heinrich von Kleists gleichnamigem Drama.

示例

以下示例展示了德语的翻译。

编辑

  • Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen}}).
  • The Seafarers of Catan ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game The Settlers of Catan.
  • Albert the Bear ({{lang-de|Albrecht der Bär|links=no}})
  • All Quiet on the Western Front ({{lang-de|Im Westen nichts Neues|lit=In the West Nothing New}}) is a novel by Erich Maria Remarque.

结果

  • Weimar is located in the federal state of Thuringia (德語:Thüringen).
  • The Seafarers of Catan (德語:Die Seefahrer von Catan) is an expansion of the board game The Settlers of Catan.
  • Albert the Bear (德語:Albrecht der Bär)
  • All Quiet on the Western Front (德語:Im Westen nichts Neues直译 In the West Nothing New) is a novel by Erich Maria Remarque.

支持模板

模板数据

这是用于新版可视化编辑器及其他工具的模板数据文档。

Lang-enm模板数据

向读者表明外语中名词或短语的原文形式。

模板参数

参数说明类型状态
文本1

要显示的外文

默认值
例子
自动值
字符串必填
显示链接links

设置为no可关闭条目语言的链接

默认值
例子
自动值
布尔值可选
直译lit

外文的字面翻译

默认值
例子
自动值
未知可选
转译translit

对于不使用拉丁字母的语言的外文转译,使用拉丁字母的语言则忽略此字段

默认值
例子
自动值
字符串可选

参见