Template:BonusTable/doc: Difference between revisions

From Archaelund Wiki
(Created page with "== Description == This template generates a table displaying various equipment stats. It is intended to be used on armor as well as weapon pages. == Usage == <pre> {{StatsTab...")
 
(Replace Template:Elements by Template:Resistances)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Description ==
== Description ==
This template generates a table displaying various equipment stats. It is intended to be used on armor as well as weapon pages.
This template generates a table displaying various equipment stats. It is intended to be used on armor and weapon pages.


== Usage ==
== Usage ==
Line 11: Line 11:
|Resist =  
|Resist =  
|Effects =  
|Effects =  
|Specials =  
|Skills =  
|Caption =  
|Caption =  
|Collapsed =  
|Collapsed =  
Line 21: Line 21:
<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>Traits</td><td>Yes</td><td>The trait bonus/malus provided by the armor/weapon. 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 bonus/malus provided by the armor/weapon. 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 bonus/malus provided by the armor/weapon. See [[Template:Stats]] for further information.</td><td>a vector of 6 comma-separated numbers, representing stat values (e.g. "52,11,10,18,3,0")</td></tr>
<tr><td>Stats</td><td>Yes</td><td>The base stats bonus/malus provided by the armor/weapon. 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>Offense</td><td>Yes</td><td>The offensive properties bonus/malus provided by the armor/weapon. See [[Template:Offense]] for further information.</td><td>a vector of 7 comma-separated numbers, representing offense values (e.g. "3,8,0,2,1,50,10")</td></tr>
<tr><td>Offense</td><td>Yes</td><td>The offensive properties bonus/malus provided by the armor/weapon. See [[Template:Offense]] for further information.</td><td>a vector of 9 comma-separated numbers, representing offense values (e.g. "3,8,0,1,4,1,50,10,1")</td></tr>
<tr><td>Defense</td><td>Yes</td><td>The defensive properties bonus/malus provided by the armor/weapon. See [[Template:Defense]] for further information.</td><td>a vector of 2 comma-separated numbers, representing defense values (e.g. "2,15")</td></tr>
<tr><td>Defense</td><td>Yes</td><td>The defensive properties bonus/malus provided by the armor/weapon. See [[Template:Defense]] for further information.</td><td>a vector of 2 comma-separated numbers, representing defense values (e.g. "2,15,5,2")</td></tr>
<tr><td>Resist</td><td>Yes</td><td>The resistance bonus/malus provided by the armor/weapon. See [[Template:Elements]] for further information.</td><td>a vector of 6 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0")</td></tr>
<tr><td>Resist</td><td>Yes</td><td>The resistance bonus/malus provided by the armor/weapon. See [[Template:Resistances]] for further information.</td><td>a vector of 6 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0")</td></tr>
<tr><td>Effects</td><td>No</td><td>If special proc effects are provided by the armor/weapon, they can be listed here. See [[Template:Effect]] for further information.</td><td>a semicolon-separated list of <nowiki>{{Effect|...}}s</nowiki> (using [[Template:Effect]])</td></tr>
<tr><td>Effects</td><td>No</td><td>If special proc effects are provided by the armor/weapon, they can be listed here. See [[Template:Effect]] for further information.</td><td>a semicolon-separated list of <nowiki>{{Effect|...}}s</nowiki> (using [[Template:Effect]])</td></tr>
<tr><td>Specials</td><td>No</td><td>If the armor/weapon provides special combat properties, they can be listed here.</td><td>a semicolon-separated list of <nowiki>[[Special]]s</nowiki></td></tr>
<tr><td>Skills</td><td>No</td><td>If the armor/weapon provides skill bonuses, they can be listed here.</td><td>a semicolon-separated list of <nowiki>[[Skill]]s</nowiki> and their bonus values</td></tr>
<tr><td>Caption</td><td>No</td><td>An optional caption displayed above the table. If set, the table will be collapsible.</td><td>arbitrary text</td></tr>
<tr><td>Caption</td><td>No</td><td>An optional caption displayed above the table. If set, the table will be collapsible.</td><td>arbitrary text</td></tr>
<tr><td>Collapsed</td><td>No</td><td>If a caption is set, this property toggles whether the table is initially collapsed or expanded.</td><td>"true" or any other text = collapsed, empty string = expanded</td></tr>
<tr><td>Collapsed</td><td>No</td><td>If a caption is set, this property toggles whether the table is initially collapsed or expanded.</td><td>"true" or any other text = collapsed, empty string = expanded</td></tr>
</table>
</table>

Latest revision as of 14:42, 11 January 2025

Description

This template generates a table displaying various equipment stats. It is intended to be used on armor and weapon pages.

Usage

{{StatsTable
|Traits = 
|Stats = 
|Offense = 
|Defense = 
|Resist = 
|Effects = 
|Skills = 
|Caption = 
|Collapsed = 
}}

Parameters

NameRequiredDescriptionValues
TraitsYesThe trait bonus/malus provided by the armor/weapon. 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 bonus/malus provided by the armor/weapon. 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 bonus/malus provided by the armor/weapon. 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 bonus/malus provided by the armor/weapon. See Template:Defense for further information.a vector of 2 comma-separated numbers, representing defense values (e.g. "2,15,5,2")
ResistYesThe resistance bonus/malus provided by the armor/weapon. See Template:Resistances for further information.a vector of 6 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0")
EffectsNoIf special proc effects are provided by the armor/weapon, they can be listed here. See Template:Effect for further information.a semicolon-separated list of {{Effect|...}}s (using Template:Effect)
SkillsNoIf the armor/weapon provides skill bonuses, they can be listed here.a semicolon-separated list of [[Skill]]s and their bonus values
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