[模板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}}
|
{{{2}}} | |
{{trait entry|Wounded|rows=2}}
|
{{{2}}} | |
| (Example row) | ||