Template:Character/Attribute

From Caves of Qud Wiki
< Template:Character
Revision as of 15:51, 18 January 2024 by Egocarib (talk | contribs) (fix dice trying to parse empty value (affects pages that don't define MA, such as dynamic turret pages))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Outputs a single character attribute. Intended for use in Template:Character.

The fourth parameter is the link for the tooltip. If not specified it will link to the Attributes page by default.

The fifth parameter is a multiplier for the stat (this is derived from the stat's "Bonus" attribute using a particular formula). If not specified, it defaults to 1.

The sixth parameter is an additive value that represents extrinsic bonuses, such as the bonuses from mutations or armor.

{{Character/Attribute
| 1 = Strength
| 2 = ST
| 3 = 17+3d2
| 4 = Attributes
| 5 = 1.25
| 6 = 0
}}


ST:
27
Strength: 27range: 25-29

Additional Notes

You can also specify ? or ?? as a value for unknown stats, and this template will show that value in place of the stat.