Difference between revisions of "Template:Properties sort"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(fixed missing noinclude)
old>Realpsojed
(Simplified.)
Line 1: Line 1:
<!--
<!--
Attempts to consolidate Properties into a list separated by line breaks based on Properties' grouping observed ingame.
Checks the provided Property name against a list of properties.
Output should be Propertygrp1<br><br>Propertygrp2<br><br>etc.
Properties are grouped up based on the ingame property grouping on items.
PropertygrpX should be all properties that group together (ie. Physical Resistance, Nature Resistance, Magic Resistance group together with each other, but any other properties don't group with them)
Returns PropertygrpX where X is the number of group where the property belongs to.
 
-->{{#switch: {{{1}}}
All properties are provided by the Template:Properties, which loads all properties from an individual item page (ie. Wooden Sword).
-->{{#if: {{#switch: {{{Propertygrp1}}}
|Physical Resistance
|Physical Resistance
|Nature Resistance
|Nature Resistance
|Magic Resistance = a
|Magic Resistance = Propertygrp1
|#default = }} | {{{Propertygrp1}}} | }}{{#if: {{#switch: {{{Propertygrp2}}}
|#default = }}{{#switch: {{{1}}}
|Slashing Resistance
|Slashing Resistance
|Piercing Resistance
|Piercing Resistance
|Crushing Resistance
|Crushing Resistance
|Rending Resistance = a
|Rending Resistance = Propertygrp2
|#default = }} | {{{Propertygrp2}}} | }}{{#if: {{#switch: {{{Propertygrp3}}}
|#default = }}{{#switch: {{{1}}}
|Fire Resistance
|Fire Resistance
|Frost Resistance
|Frost Resistance
|Shock Resistance
|Shock Resistance
|Caustic Resistance
|Caustic Resistance
|Poison Resistance = a
|Poison Resistance = Propertygrp3
|#default = }} | {{{Propertygrp3}}} | }}{{#if: {{#switch: {{{Propertygrp4}}}
|#default = }}{{#switch: {{{1}}}
|Arcane Resistance
|Arcane Resistance
|Unholy Resistance
|Unholy Resistance
|Sacred Resistance
|Sacred Resistance
|Psionic Resistance = a
|Psionic Resistance = Propertygrp4
|#default = }} | {{{Propertygrp4}}} | }}{{#if: {{#switch: {{{Propertygrp5}}}
|#default = }}{{#switch: {{{1}}}
|Bleed Resistance
|Bleed Resistance
|Knockback Resistance
|Knockback Resistance
|Stun Resistance
|Stun Resistance
|Pain Resistance = a
|Pain Resistance = Propertygrp5
|#default = }} | {{{Propertygrp5}}} | }}{{#if: {{#switch: {{{Propertygrp6}}}
|#default = }}{{#switch: {{{1}}}
|Armor Penetration
|Armor Penetration
|Armor Damage
|Armor Damage
|Bodypart Damage = a
|Bodypart Damage = Propertygrp6
|#default = }} | {{{Propertygrp6}}} | }}{{#if: {{#switch: {{{Propertygrp7}}}
|#default = }}{{#switch: {{{1}}}
|Bleed Chance
|Bleed Chance
|Daze Chance
|Daze Chance
|Stun Chance
|Stun Chance
|Knockback Chance = a
|Knockback Chance = Propertygrp7
|#default = }} | {{{Propertygrp7}}} | }}{{#if: {{#switch: {{{Propertygrp8}}}
|#default = }}{{#switch: {{{1}}}
|Block Chance
|Block Chance
|Block Power
|Block Power
Line 50: Line 48:
|Damage Taken
|Damage Taken
|Damage Reflection
|Damage Reflection
|Bonus Range = a
|Bonus Range = Propertygrp8
|#default = }} | {{{Propertygrp8}}} | }}{{#if: {{#switch: {{{Propertygrp9}}}
|#default = }}{{#switch: {{{1}}}
|Energy
|Energy
|Energy Restoration
|Energy Restoration
Line 66: Line 64:
|Psionic Power
|Psionic Power
|Pyromantic Power
|Pyromantic Power
|Venomantic Power = a
|Venomantic Power = Propertygrp9
|#default = }} | {{{Propertygrp9}}} | }}{{#if: {{#switch: {{{Propertygrp10}}}
|#default = }}{{#switch: {{{1}}}
|Health Restoration
|Health Restoration
|Healing Efficiency
|Healing Efficiency
|Fortitude
|Fortitude
|Life Drain
|Life Drain
|Energy Drain = a
|Energy Drain = Propertygrp10
|#default = }} | {{{Propertygrp10}}} | }}{{#if: {{#switch: {{{Propertygrp11}}}
|#default = }}{{#switch: {{{1}}}
|Noise Produced
|Noise Produced
|Stealth
|Stealth
|Lockpicking & Disarming
|Lockpicking & Disarming
|Vision = a
|Vision = Propertygrp11
|#default = }} | {{{Propertygrp11}}} | }}
|#default = }}<noinclude>
<noinclude>
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 16:06, 8 May 2020