Template:ArmorTable/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 pages. == Usage == <pre> {{StatsTable |Traits = |Stats = |Offense = |Defense = |Resist = |Skills = |Specials = |Caption = |Collapsed = }} </pre> == Parameters == <table class="wikitable> <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. S...") |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{ | {{ArmorTable | ||
|Traits = | |Traits = | ||
|Stats = | |Stats = | ||
| Line 23: | Line 23: | ||
<tr><td>Stats</td><td>Yes</td><td>The basic stats bonus/malus provided by the armor. 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 basic stats bonus/malus provided by the armor. 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. 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>Offense</td><td>Yes</td><td>The offensive properties bonus/malus provided by the armor. 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. See [[Template:Defense]] for further information.</td><td>a vector of | <tr><td>Defense</td><td>Yes</td><td>The defensive properties bonus/malus provided by the armor. See [[Template:Defense]] for further information.</td><td>a vector of 4 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. See [[Template: | <tr><td>Resist</td><td>Yes</td><td>The resistance bonus/malus provided by the armor. See [[Template:Resistances]] for further information.</td><td>a vector of 7 comma-separated numbers, representing resistance values (e.g. "10,0,50,-10,0,0,0")</td></tr> | ||
<tr><td>Skills</td><td>No</td><td>If the armor 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>Skills</td><td>No</td><td>If the armor 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>Specials</td><td>No</td><td>If the armor has any other special properties, they can be listed here.</td><td>a semicolon-separated list of special properties</nowiki></td></tr> | <tr><td>Specials</td><td>No</td><td>If the armor has any other special properties, they can be listed here.</td><td>a semicolon-separated list of special properties</nowiki></td></tr> | ||
Latest revision as of 20:43, 14 January 2025
Description
This template generates a table displaying various equipment stats. It is intended to be used on armor pages.
Usage
{{ArmorTable
|Traits =
|Stats =
|Offense =
|Defense =
|Resist =
|Skills =
|Specials =
|Caption =
|Collapsed =
}}
Parameters
| Name | Required | Description | Values |
|---|---|---|---|
| Traits | Yes | The trait bonus/malus provided by the armor. 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 basic stats bonus/malus provided by the armor. 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 bonus/malus provided by the armor. 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 bonus/malus provided by the armor. 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 resistance bonus/malus provided by the armor. 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") |
| Skills | No | If the armor provides skill bonuses, they can be listed here. | a semicolon-separated list of [[Skill]]s and their bonus values |
| Specials | No | If the armor has any other special properties, they can be listed here. | a semicolon-separated list of special properties</nowiki> |
| 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 |