Difference between revisions of "Template:Properties sort"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(added doc)
old>Realpsojed
(Moved description to Doc, moved Armor and Bodypart properties to the top, combined former property grp 5 and 6 based on new findings)
Line 1: Line 1:
<!--
{{#switch: {{{1}}}
Checks the provided Property name against a list of properties.
|Armor Penetration
Properties are grouped up based on the ingame property grouping on items.
|Armor Damage
Returns PropertygrpX where X is the number of group where the property belongs to.
|Bodypart Damage - Propertygrp1
-->{{#switch: {{{1}}}
|Physical Resistance
|Physical Resistance
|Nature Resistance
|Nature Resistance
|Magic Resistance = Propertygrp1
|Magic Resistance = Propertygrp2
|Slashing Resistance
|Slashing Resistance
|Piercing Resistance
|Piercing Resistance
|Crushing Resistance
|Crushing Resistance
|Rending Resistance = Propertygrp2
|Rending Resistance = Propertygrp3
|Fire Resistance
|Fire Resistance
|Frost Resistance
|Frost Resistance
|Shock Resistance
|Shock Resistance
|Caustic Resistance
|Caustic Resistance
|Poison Resistance = Propertygrp3
|Poison Resistance = Propertygrp4
|Arcane Resistance
|Arcane Resistance
|Unholy Resistance
|Unholy Resistance
|Sacred Resistance
|Sacred Resistance
|Psionic Resistance = Propertygrp4
|Psionic Resistance = Propertygrp5
|Bleed Resistance
|Bleed Resistance
|Knockback Resistance
|Knockback Resistance
|Stun Resistance
|Stun Resistance
|Pain Resistance = Propertygrp5
|Pain Resistance
|Armor Penetration
|Armor Damage
|Bodypart Damage = Propertygrp6
|Bleed Chance
|Bleed Chance
|Daze Chance
|Daze Chance
|Stun Chance
|Stun Chance
|Knockback Chance = Propertygrp7
|Knockback Chance = Propertygrp6
|Block Chance
|Block Chance
|Block Power
|Block Power
Line 41: Line 37:
|Damage Taken
|Damage Taken
|Damage Reflection
|Damage Reflection
|Bonus Range = Propertygrp8
|Bonus Range = Propertygrp7
|Energy
|Energy
|Energy Restoration
|Energy Restoration
Line 56: Line 52:
|Psionic Power
|Psionic Power
|Pyromantic Power
|Pyromantic Power
|Venomantic Power = Propertygrp9
|Venomantic Power = Propertygrp8
|Health Restoration
|Health Restoration
|Healing Efficiency
|Healing Efficiency
|Fortitude
|Fortitude
|Life Drain
|Life Drain
|Energy Drain = Propertygrp10
|Energy Drain = Propertygrp9
|Noise Produced
|Noise Produced
|Stealth
|Stealth
|Lockpicking & Disarming
|Lockpicking & Disarming
|Vision = Propertygrp11
|Vision = Propertygrp10
|#default = }}<noinclude>{{Doc}}
|#default = }}<noinclude>{{Doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 19:42, 11 May 2020

Template-info.png Documentation

This template checks the provided property name against a list of Stoneshard properties. Properties are grouped up based on the ingame property grouping on items.
Returns PropertygrpX where X is the number of the group where the property belongs to. Propertygroup numbers are not based on the code.

Usage:

{{Properties sort|Block Chance}}

Produces:

Propertygrp7