Template:WeaponTable: Difference between revisions

From Archaelund Wiki
No edit summary
No edit summary
 
(7 intermediate revisions 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>
<tr style="text-align:right;">
<td>{{Traits/names|11}}</td><td>{{Traits|{{{Traits|}}}|d1}}</td>
<td>{{Traits/names|11}}</td><td>{{Traits|{{{Traits|}}}|d1}}</td>
<td>{{Stats/names|1}}</td><td>{{Stats|{{{Stats|}}}|d1}}</td>
<td>{{Stats/names|11}}</td><td>{{Stats|{{{Stats|}}}|d1}}</td>
<td>{{Offense/names|11}}</td><td>{{Offense|{{{Offense|}}}|Damage}}</td>
<td>{{Offense/names|77}} {{Offense/icons|7}}</td><td>{{Offense|{{{Offense|}}}|d7}}</td>
<td>{{Elements/names|1}}</td><td>{{Elements|{{{Resist|}}}|d1}}</td>
<td>{{Resistances/names|11}} {{Resistances/icons|1}}</td><td>{{Resistances|{{{Resist|}}}|d1}}</td>
</tr>
</tr>
<tr>
<tr style="text-align:right;">
<td>{{Traits/names|22}}</td><td>{{Traits|{{{Traits|}}}|d2}}</td>
<td>{{Traits/names|22}}</td><td>{{Traits|{{{Traits|}}}|d2}}</td>
<td>{{Stats/names|2}}</td><td>{{Stats|{{{Stats|}}}|d2}}</td>
<td>{{Stats/names|22}}</td><td>{{Stats|{{{Stats|}}}|d2}}</td>
<td>{{Offense/names|7}}</td><td>{{Offense|{{{Offense|}}}|d7}}</td>
<td>{{Offense/names|88}} {{Offense/icons|8}}</td><td>{{Offense|{{{Offense|}}}|d8}}</td>
<td>{{Elements/names|2}}</td><td>{{Elements|{{{Resist|}}}|d2}}</td>
<td>{{Resistances/names|22}} {{Resistances/icons|2}}</td><td>{{Resistances|{{{Resist|}}}|d2}}</td>
</tr>
</tr>
<tr>
<tr style="text-align:right;">
<td>{{Traits/names|33}}</td><td>{{Traits|{{{Traits|}}}|d3}}</td>
<td>{{Traits/names|33}}</td><td>{{Traits|{{{Traits|}}}|d3}}</td>
<td>{{Stats/names|3}}</td><td>{{Stats|{{{Stats|}}}|d3}}</td>
<td>{{Stats/names|33}}</td><td>{{Stats|{{{Stats|}}}|d3}}</td>
<td>{{Offense/names|8}}</td><td>{{Offense|{{{Offense|}}}|d8}}</td>
<td>{{Offense/names|99}} {{Offense/icons|9}}</td><td>{{Offense|{{{Offense|}}}|d9}}</td>
<td>{{Elements/names|3}}</td><td>{{Elements|{{{Resist|}}}|d3}}</td>
<td>{{Resistances/names|33}} {{Resistances/icons|3}}</td><td>{{Resistances|{{{Resist|}}}|d3}}</td>
</tr>
</tr>
<tr>
<tr style="text-align:right;">
<td>{{Traits/names|44}}</td><td>{{Traits|{{{Traits|}}}|d4}}</td>
<td>{{Traits/names|44}}</td><td>{{Traits|{{{Traits|}}}|d4}}</td>
<td>{{Stats/names|4}}</td><td>{{Stats|{{{Stats|}}}|d4}}</td>
<td>{{Stats/names|44}}</td><td>{{Stats|{{{Stats|}}}|d4}}</td>
<td>{{Offense/names|9}}</td><td>{{Offense|{{{Offense|}}}|d9}}</td>
<td>{{Defense/names|11}} {{Defense/icons|1}}</td><td>{{Defense|{{{Defense|}}}|d1}}</td>
<td>{{Elements/names|4}}</td><td>{{Elements|{{{Resist|}}}|d4}}</td>
<td>{{Resistances/names|77}} {{Resistances/icons|7}}</td><td>{{Resistances|{{{Resist|}}}|d7}}</td>
</tr>
</tr>
<tr style="text-align:right;">
<td>{{Traits/names|55}}</td><td>{{Traits|{{{Traits|}}}|d5}}</td>
<td>{{Traits/names|55}}</td><td>{{Traits|{{{Traits|}}}|d5}}</td>
<td>{{Stats/names|5}}</td><td>{{Stats|{{{Stats|}}}|d5}}</td>
<td>{{Stats/names|55}}</td><td>{{Stats|{{{Stats|}}}|d5}}</td>
<td>{{Defense/names|1}}</td><td>{{Defense|{{{Defense|}}}|d1}}</td>
<td>{{Defense/names|22}} {{Defense/icons|2}}</td><td>{{Defense|{{{Defense|}}}|d2}}</td>
<td>{{Elements/names|5}}</td><td>{{Elements|{{{Resist|}}}|d5}}</td>
<td>{{Resistances/names|44}} {{Resistances/icons|4}}</td><td>{{Resistances|{{{Resist|}}}|d4}}</td>
</tr>
</tr>
<tr>
<tr style="text-align:right;">
<td>{{Traits/names|66}}</td><td>{{Traits|{{{Traits|}}}|d6}}</td>
<td>{{Traits/names|66}}</td><td>{{Traits|{{{Traits|}}}|d6}}</td>
<td>{{Stats/names|6}}</td><td>{{Stats|{{{Stats|}}}|d6}}</td>
<td>{{Stats/names|66}}</td><td>{{Stats|{{{Stats|}}}|d6}}</td>
<td>{{Defense/names|2}}</td><td>{{Defense|{{{Defense|}}}|d2}}</td>
<td>{{Defense/names|33}} {{Defense/icons|3}}</td><td>{{Defense|{{{Defense|}}}|d3}}</td>
<td>{{Elements/names|6}}</td><td>{{Elements|{{{Resist|}}}|d6}}</td>
<td>{{Resistances/names|55}} {{Resistances/icons|5}}</td><td>{{Resistances|{{{Resist|}}}|d5}}</td>
</tr>
</tr>
<tr>
<tr style="text-align:right;">
<td>{{Traits/names|77}}</td><td>{{Traits|{{{Traits|}}}|d7}}</td>
<td>{{Traits/names|77}}</td><td>{{Traits|{{{Traits|}}}|d7}}</td>
<td>{{Stats/names|7}}</td><td>{{Stats|{{{Stats|}}}|d7}}</td>
<td>{{Stats/names|77}}</td><td>{{Stats|{{{Stats|}}}|d7}}</td>
<td>{{Defense/names|3}}</td><td>{{Defense|{{{Defense|}}}|d3}}</td>
<td>{{Defense/names|44}} {{Defense/icons|4}}</td><td>{{Defense|{{{Defense|}}}|d4}}</td>
<td></td><td></td>
<td>{{Resistances/names|66}} {{Resistances/icons|6}}</td><td>{{Resistances|{{{Resist|}}}|d6}}</td>
</tr>
</tr>
<tr>
<tr>
<td></td><td></td>
<th colspan=2 style="text-align:right; width:8em;">Damage:</th>
<td>{{Stats/names|8}}</td><td>{{Stats|{{{Stats|}}}|d8}}</td>
<td colspan=2 style="text-align:left; width:8em;">{{Offense|{{{Offense|}}}|Damage}}</td>
<td>{{Defense/names|4}}</td><td>{{Defense|{{{Defense|}}}|d4}}</td>
<th colspan=2 style="text-align:right; width:8em;">Attack Range:</th>
<td></td><td></td>
<td colspan=2 style="text-align:left; width:8em;">{{#ifeq:{{{Range|}}}|0|Melee|{{{Range|}}} tiles}}</td>
</tr>
</tr>
<tr>
<tr>
<th colspan=2 style="text-align:right; width:8em;">Damage Type:</th>
<th colspan=2 style="text-align:right; width:8em;">Damage Type:</th>
<td colspan=2 style="text-align:left; width:8em;">{{DamageType|{{{DamageType|}}}}}</td>
<td colspan=2 style="text-align:left; width:8em;">{{DamageType|{{{DamageType|}}}}}</td>
<th colspan=2 style="text-align:right; width:8em;">Proc Effects:</th>
<th colspan=2 style="text-align:right; width:8em;">AP cost:</th>
<td colspan=2 style="text-align:left; width:8em;">{{ListFormat|{{{Effects|}}}|Bullets}}</td>
<td colspan=2 style="text-align:left; width:8em;">{{{APcost|}}}</td>
</tr>
<tr>
<th colspan=2 style="text-align:right; width:8em;">Attack Range:</th>
<td colspan=2 style="text-align:left; width:8em;">{{#ifeq:{{{Range|}}}|0|Melee|{{{Range|}}} tiles}}</td>
<th colspan=2 style="text-align:right; width:8em;">Skills:</th>
<td colspan=2 style="text-align:left; width:8em;">{{ListFormat|{{{Skills|}}}|Bullets}}</td>
</tr>
</tr>
<tr>
<tr>
<th colspan=2 style="text-align:right; width:8em;">AP cost:</th>
<td colspan=2 style="text-align:left; width:8em;">{{{APcost|}}}</td>
<th colspan=2 style="text-align:right; width:8em;">Specials:</th>
<th colspan=2 style="text-align:right; width:8em;">Specials:</th>
<td colspan=2 style="text-align:left; width:8em;">{{ListFormat|{{{Specials|}}}|Bullets}}</td>
<td colspan=6 style="text-align:left; width:24em;">{{ListFormat|{{{Effects|}}}{{#if:{{{Effects|}}}|{{#if:{{{Specials|}}}|;{{{Specials|}}}}}|{{{Specials|}}}}}|Bullets}}</td>
</tr>
</tr>
</table></includeonly></onlyinclude>
</table></includeonly></onlyinclude>
{{Documentation}}
{{Documentation}}
[[Category:Weapon Templates]]
[[Category:Weapon Templates]]

Latest revision as of 19:43, 12 June 2025

Description

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

Usage

{{WeaponTable
|DamageType = 
|Range = 
|APcost = 
|Traits = 
|Stats = 
|Offense = 
|Defense = 
|Resist = 
|Effects = 
|Skills = 
|Specials = 
|Caption = 
|Collapsed = 
}}

Parameters

NameRequiredDescriptionValues
DamageTypeYesThe specific damage type of the weapon.one of the values defined in Template:DamageType (other values are ignored): Blunt • Piercing • Slashing
RangeYesThe attack range of the weapon, given in grid tiles. Defaults to 0 (= melee).non-negative number
APcostYesThe amount of Action Points (AP) needed for using this weapon.non-negative number
TraitsYesThe trait bonus/malus provided by the 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 basic stats bonus/malus provided by the 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 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 weapon. See Template:Defense for further information.a vector of 4 comma-separated numbers, representing defense values (e.g. "2,15,5,2")
ResistYesThe resistance bonus/malus provided by the weapon. 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 provided by the weapon, they can be listed here. See Template:Effect for further information.a semicolon-separated list of {{Effect|...}}s (using Template:Effect)
SkillsNoIf the weapon provides skill bonuses, they can be listed here.a semicolon-separated list of [[Skill]]s and their bonus values
SpecialsNoIf the weapon has any other special properties, they can be listed here.a semicolon-separated list of special properties
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