Template:Trait entry/doc

< Template:Trait entry
咯咯炀讨论 | 贡献2020年9月28日 (一) 20:47的版本 (创建页面,内容为“<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW T…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

[模板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.

Parameters

Parameter Description Required Default
1 The trait name. required none
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 Icon template with the trait name by default.
rows Defines how many rows the entry should take up. optional 1

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)