Template:Trait/doc
Template used for leader traits. See Category:Leader trait icons for the trait images and Category:Leader trait icon elements for the trait background and overlay images.
Parameters
Parameter | Description | Required | Default |
---|---|---|---|
1 | Image file name, not including "Leader_trait_" or "png" | required | — |
2 | Name of the icon, unnecessary if it matches 1 | optional | [1] |
w | Size of the icon Cannot use x24px format |
optional | 34px |
bg | Icon background, uses basic trait background by default:
|
optional | basic File:Leader trait bg basic.png |
rarity | Trait rarity, used to determine trait frame and overlay.
veteran=yes or destiny=yes can also be used instead. |
optional | — |
tier | Used to indicate trait tier/level
|
optional | — |
council | Adds the councilor overlay File:Leader trait bg basic.pngFile:Leader trait overlay councilor.png | optional | — |
class | Sets which leader class the trait belongs to, used to determine which page is linked by default
|
optional | Common leader traits |
link | Sets a custom link | optional | [class] traits#[3] |
hover | Sets a custom hover text, overrides tier number. | optional | [3] |
image | Sets an alternate image for trait icon | optional | Leader trait [1].png |
Examples
Wikitext | Icon |
---|---|
{{trait|Architectural Sense|class=official|rarity=veteran|council=yes}} |
File:Leader trait bg basic.pngFile:Leader trait overlay veteran.pngFile:Leader trait architectural sense.pngFile:Leader trait overlay councilor.pngArchitectural Sense |
{{trait|space miner|Geology Expert|w=34px|veteran=yes|tier=3}} |
File:Leader trait bg basic.pngFile:Leader trait overlay veteran.pngFile:Leader trait space miner.pngFile:Leader trait tier 3.pngGeology Expert III |
{{trait|Scholarium Explorer|bg=spec|class=scientist}} |
File:Leader trait bg specialist.pngFile:Leader trait scholarium explorer.pngScholarium Explorer |