Template:StatsTable: Difference between revisions

From Archaelund Wiki
No edit summary
Tag: Manual revert
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
<th colspan=2 style="width:8em;">Resistances</th>
<th colspan=2 style="width:8em;">Resistances</th>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|11}}</td><td>{{Traits|{{{Traits|}}}|1}}</td>
<td>{{Traits/names|11}}</td><td>{{Traits|{{{Traits|}}}|1}}</td>
<td>{{Stats/names|11}}</td><td>{{Stats|{{{Stats|}}}|1}}</td>
<td>{{Stats/names|11}}</td><td>{{Stats|{{{Stats|}}}|1}}</td>
Line 13: Line 13:
<td>{{Resistances/names|11}} {{Resistances/icons|1}}</td><td>{{Resistances|{{{Resist|}}}|1}}</td>
<td>{{Resistances/names|11}} {{Resistances/icons|1}}</td><td>{{Resistances|{{{Resist|}}}|1}}</td>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|22}}</td><td>{{Traits|{{{Traits|}}}|2}}</td>
<td>{{Traits/names|22}}</td><td>{{Traits|{{{Traits|}}}|2}}</td>
<td>{{Stats/names|22}}</td><td>{{Stats|{{{Stats|}}}|2}}</td>
<td>{{Stats/names|22}}</td><td>{{Stats|{{{Stats|}}}|2}}</td>
Line 19: Line 19:
<td>{{Resistances/names|22}} {{Resistances/icons|2}}</td><td>{{Resistances|{{{Resist|}}}|2}}</td>
<td>{{Resistances/names|22}} {{Resistances/icons|2}}</td><td>{{Resistances|{{{Resist|}}}|2}}</td>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|33}}</td><td>{{Traits|{{{Traits|}}}|3}}</td>
<td>{{Traits/names|33}}</td><td>{{Traits|{{{Traits|}}}|3}}</td>
<td>{{Stats/names|33}}</td><td>{{Stats|{{{Stats|}}}|3}}</td>
<td>{{Stats/names|33}}</td><td>{{Stats|{{{Stats|}}}|3}}</td>
Line 25: Line 25:
<td>{{Resistances/names|33}} {{Resistances/icons|3}}</td><td>{{Resistances|{{{Resist|}}}|3}}</td>
<td>{{Resistances/names|33}} {{Resistances/icons|3}}</td><td>{{Resistances|{{{Resist|}}}|3}}</td>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|44}}</td><td>{{Traits|{{{Traits|}}}|4}}</td>
<td>{{Traits/names|44}}</td><td>{{Traits|{{{Traits|}}}|4}}</td>
<td>{{Stats/names|44}}</td><td>{{Stats|{{{Stats|}}}|4}}</td>
<td>{{Stats/names|44}}</td><td>{{Stats|{{{Stats|}}}|4}}</td>
Line 31: Line 31:
<td>{{Resistances/names|77}} {{Resistances/icons|7}}</td><td>{{Resistances|{{{Resist|}}}|7}}</td>
<td>{{Resistances/names|77}} {{Resistances/icons|7}}</td><td>{{Resistances|{{{Resist|}}}|7}}</td>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|55}}</td><td>{{Traits|{{{Traits|}}}|5}}</td>
<td>{{Traits/names|55}}</td><td>{{Traits|{{{Traits|}}}|5}}</td>
<td>{{Stats/names|55}}</td><td>{{Stats|{{{Stats|}}}|5}}</td>
<td>{{Stats/names|55}}</td><td>{{Stats|{{{Stats|}}}|5}}</td>
Line 37: Line 37:
<td>{{Resistances/names|44}} {{Resistances/icons|4}}</td><td>{{Resistances|{{{Resist|}}}|4}}</td>
<td>{{Resistances/names|44}} {{Resistances/icons|4}}</td><td>{{Resistances|{{{Resist|}}}|4}}</td>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|66}}</td><td>{{Traits|{{{Traits|}}}|6}}</td>
<td>{{Traits/names|66}}</td><td>{{Traits|{{{Traits|}}}|6}}</td>
<td>{{Stats/names|66}}</td><td>{{Stats|{{{Stats|}}}|6}}</td>
<td>{{Stats/names|66}}</td><td>{{Stats|{{{Stats|}}}|6}}</td>
Line 43: Line 43:
<td>{{Resistances/names|55}} {{Resistances/icons|5}}</td><td>{{Resistances|{{{Resist|}}}|5}}</td>
<td>{{Resistances/names|55}} {{Resistances/icons|5}}</td><td>{{Resistances|{{{Resist|}}}|5}}</td>
</tr>
</tr>
<tr style="text-align:right;>
<tr style="text-align:right;">
<td>{{Traits/names|77}}</td><td>{{Traits|{{{Traits|}}}|7}}</td>
<td>{{Traits/names|77}}</td><td>{{Traits|{{{Traits|}}}|7}}</td>
<td>{{Stats/names|77}}</td><td>{{Stats|{{{Stats|}}}|7}}</td>
<td>{{Stats/names|77}}</td><td>{{Stats|{{{Stats|}}}|7}}</td>

Latest revision as of 19:37, 12 June 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

NameRequiredDescriptionValues
DamageTypeYesThe specific damage type of the character/creature.one of the values defined in Template:DamageType (other values are ignored): Blunt • Piercing • Slashing
RangeYesThe attack range of the character/creature, given in grid tiles. Defaults to 0 (= melee).non-negative number
APcostYesThe amount of Action Points (AP) this character/creature needs for attacking.non-negative number
TraitsYesThe 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")
StatsYesThe 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")
OffenseYesThe 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")
DefenseYesThe 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")
ResistYesThe 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")
EffectsNoIf 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)
TalentsNoIf the character/creature has special talents, they can be listed here.a semicolon-separated list of [[Talent]]s
SpellsNoIf the character/creature is able to cast spells, they can be listed here.a semicolon-separated list of [[Spell]]s
CaptionNoAn optional caption displayed above the table. If set, the table will be collapsible.arbitrary text
CollapsedNoIf a caption is set, this property toggles whether the table is initially collapsed or expanded."true" or any other text = collapsed, empty string = expanded

View/Edit documentation page