Template:Trait entry/doc

这是 Template:Trait entry模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

This template can be used to add an entry for a trait in a table of traits. It shows the icon of the trait, followed by its name. The icon's width is constant, defined by the template. The name is automatically aligned left.

Use this template to standardise the style of trait entries in tables.

Currently does not support entries that have an id="" on the same row, with the rows parameter set.

参数[编辑源代码]

参数 描述 要求 默认
1 特质名称 required
file 如果此参数为非空,它将重载图标为使用该文件路径的图片。如果目前特质没有图标则使用此项。 可选 默认为使用特质名称的Icon template
rows 定义条目应该占用多少行。 可选 1
2 汉语名称 required

例子[编辑源代码]

Wiki文本 结果
{{trait entry|Blind|失明}} 失明
{{trait entry|New trait without icon|file=Trait henbane addict.png|没有图标的新特质}} Trait henbane addict.png 没有图标的新特质
{{trait entry|Wounded|rows=2}} 受伤
(举例用的行)