Template:StatsTable/doc: Difference between revisions
From Archaelund Wiki
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
<pre> | <pre> | ||
{{StatsTable | {{StatsTable | ||
|DamageType = | |||
|Range = | |||
|APcost = | |||
|Traits = | |Traits = | ||
|Stats = | |Stats = | ||
| Line 21: | Line 24: | ||
<table class="wikitable> | <table class="wikitable> | ||
<tr><th>Name</th><th>Required</th><th>Description</th><th>Values</th></tr> | <tr><th>Name</th><th>Required</th><th>Description</th><th>Values</th></tr> | ||
<tr><td>DamageType</td><td>Yes</td><td>The specific damage type of the character/creature.</td><td>one of the values defined in [[Template:DamageType]] (other values are ignored): {{ListFormat|{{DamageType|TagList}}|Bullets}}</td></tr> | |||
<tr><td>Range</td><td>Yes</td><td>The attack range of the character/creature, given in grid tiles. Defaults to 0 (= melee).</td><td>non-negative number</td></tr> | |||
<tr><td>APcost</td><td>Yes</td><td>The amount of Action Points (AP) this character/creature needs for attacking.</td><td>non-negative number</td></tr> | |||
<tr><td>Traits</td><td>Yes</td><td>The trait values of the character/creature. See [[Template:Traits]] for further information.</td><td>a vector of 7 comma-separated numbers, representing trait values (e.g. "4,8,8,5,6,3,6")</td></tr> | <tr><td>Traits</td><td>Yes</td><td>The trait values of the character/creature. See [[Template:Traits]] for further information.</td><td>a vector of 7 comma-separated numbers, representing trait values (e.g. "4,8,8,5,6,3,6")</td></tr> | ||
<tr><td>Stats</td><td>Yes</td><td>The base stats of the character/creature. See [[Template:Stats]] for further information.</td><td>a vector of 8 comma-separated numbers, representing stat values (e.g. "30,20,8,2,-1,3,0,5")</td></tr> | <tr><td>Stats</td><td>Yes</td><td>The base stats of the character/creature. See [[Template:Stats]] for further information.</td><td>a vector of 8 comma-separated numbers, representing stat values (e.g. "30,20,8,2,-1,3,0,5")</td></tr> | ||
Latest revision as of 07:15, 23 March 2025
Description
This template generates a table displaying various character stats. It is intended to be used on character as well as creature pages.
Usage
{{StatsTable
|DamageType =
|Range =
|APcost =
|Traits =
|Stats =
|Offense =
|Defense =
|Resist =
|Effects =
|Talents =
|Spells =
|Caption =
|Collapsed =
}}
Parameters
| Name | Required | Description | Values |
|---|---|---|---|
| DamageType | Yes | The specific damage type of the character/creature. | one of the values defined in Template:DamageType (other values are ignored): Blunt • Piercing • Slashing |
| Range | Yes | The attack range of the character/creature, given in grid tiles. Defaults to 0 (= melee). | non-negative number |
| APcost | Yes | The amount of Action Points (AP) this character/creature needs for attacking. | non-negative number |
| Traits | Yes | The trait values of the character/creature. See Template:Traits for further information. | a vector of 7 comma-separated numbers, representing trait values (e.g. "4,8,8,5,6,3,6") |
| Stats | Yes | The base stats of the character/creature. See Template:Stats for further information. | a vector of 8 comma-separated numbers, representing stat values (e.g. "30,20,8,2,-1,3,0,5") |
| Offense | Yes | The offensive properties of the character/creature. See Template:Offense for further information. | a vector of 9 comma-separated numbers, representing offense values (e.g. "3,8,0,1,4,1,50,10,1") |
| Defense | Yes | The defensive properties of the character/creature. See Template:Defense for further information. | a vector of 4 comma-separated numbers, representing defense values (e.g. "2,15,5,2") |
| Resist | Yes | The resistances of the character/creature. See Template:Resistances for further information. | a vector of 7 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0,0") |
| Effects | No | If special proc effects are triggered during combat, they can be listed here. See Template:Effect for further information. | a semicolon-separated list of {{Effect|...}}s (using Template:Effect) |
| Talents | No | If the character/creature has special talents, they can be listed here. | a semicolon-separated list of [[Talent]]s |
| Spells | No | If the character/creature is able to cast spells, they can be listed here. | a semicolon-separated list of [[Spell]]s |
| Caption | No | An optional caption displayed above the table. If set, the table will be collapsible. | arbitrary text |
| Collapsed | No | If a caption is set, this property toggles whether the table is initially collapsed or expanded. | "true" or any other text = collapsed, empty string = expanded |