Template:Trait entry/doc:修订间差异

(创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”)
 
第7行: 第7行:
Currently does not support entries that have an id="" on the same row, with the rows parameter set.
Currently does not support entries that have an id="" on the same row, with the rows parameter set.


== Parameters ==
== 参数 ==
{| class="wikitable"
{| class="wikitable"
! Parameter
! 参数
! Description
! 描述
! Required
! 要求
! Default
! 默认
|-
|-
| 1 || The trait name. || '''required''' || none
| 1 || 特质名称 || '''required''' ||
|-
|-
| file || If this parameter is nonempty, it will override the icon to an image using this file path. Use this if no icon has been defined for the trait yet. || optional || Uses the [[Template:icon|Icon template]] with the trait name by default.
| file || 如果此参数为非空,它将重载图标为使用该文件路径的图片。如果目前特质没有图标则使用此项。|| 可选 || 默认为使用特质名称的[[Template:icon|Icon template]]
|-
|-
| rows || Defines how many rows the entry should take up. || optional || 1
| rows || 定义条目应该占用多少行。 || 可选 || 1
|-
| 2 || 汉语名称 || '''required''' || 无
|}
|}



2020年9月28日 (一) 21:10的版本

[模板https://www.parawikis.com/wiki/Template:Template_doc_page_viewed_directly?action=raw读取失败:HTTP 502] 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

Examples

Wiki text Result
{{trait entry|Blind}} {{{2}}}
{{trait entry|New trait without icon|file=Trait henbane addict.png}} Trait henbane addict.png {{{2}}}
{{trait entry|Wounded|rows=2}} {{{2}}}
(Example row)