Difference between revisions of "Template:Properties sort"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Created page with "<!-- Attempts to consolidate Properties into a list separated by line breaks based on Properties' grouping observed ingame. Output should be Propertygrp1<br><br>Propertygrp2<b...")
 
 
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<!--
{{#switch: {{{1}}}
Attempts to consolidate Properties into a list separated by line breaks based on Properties' grouping observed ingame.
|Armor Penetration
Output should be Propertygrp1<br><br>Propertygrp2<br><br>etc.
|Armor Damage
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)
|Weapon Damage
 
|Bodypart Damage = Propertygrp01
All properties are provided by the Template:Properties, which loads all properties from an individual item page (ie. Wooden Sword).
-->{{{Propertygrp1|{{#if: {{#switch: {{{1}}}
|Physical Resistance
|Physical Resistance
|Nature Resistance
|Nature Resistance
|Magic Resistance = a
|Magic Resistance = Propertygrp02
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp2|{{#if: {{#switch: {{{1}}}
|Slashing Resistance
|Slashing Resistance
|Piercing Resistance
|Piercing Resistance
|Crushing Resistance
|Crushing Resistance
|Rending Resistance = a
|Rending Resistance = Propertygrp03
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp3|{{#if: {{#switch: {{{1}}}
|Fire Resistance
|Fire Resistance
|Frost Resistance
|Frost Resistance
|Shock Resistance
|Shock Resistance
|Caustic Resistance
|Caustic Resistance
|Poison Resistance = a
|Poison Resistance = Propertygrp04
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp4|{{#if: {{#switch: {{{1}}}
|Arcane Resistance
|Arcane Resistance
|Unholy Resistance
|Unholy Resistance
|Sacred Resistance
|Sacred Resistance
|Psionic Resistance = a
|Psionic Resistance = Propertygrp05
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp5|{{#if: {{#switch: {{{1}}}
|Bleed Resistance
|Bleed Resistance
|Knockback Resistance
|Knockback Resistance
|Move Resistance
|Stun Resistance
|Stun Resistance
|Pain Resistance = a
|Control Resistance
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp6|{{#if: {{#switch: {{{1}}}
|Pain Resistance
|Armor Penetration
|Armor Damage
|Bodypart Damage = a
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp7|{{#if: {{#switch: {{{1}}}
|Bleed Chance
|Bleed Chance
|Daze Chance
|Daze Chance
|Stun Chance
|Stun Chance
|Knockback Chance = a
|Knockback Chance
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp8|{{#if: {{#switch: {{{1}}}
|Stagger Chance
|Immobilization Chance = Propertygrp06
|Block Chance
|Block Chance
|Block Power
|Block Power
Line 47: Line 39:
|Counter Chance
|Counter Chance
|Fumble Chance
|Fumble Chance
|Range
|Dodge Chance
|Dodge Chance
|Damage Taken
|Damage Taken
|Damage Reflection
|Damage Reflection
|Bonus Range = a
|Bonus Range = Propertygrp07
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp9|{{#if: {{#switch: {{{1}}}
|Energy
|Energy
|Energy Restoration
|Energy Restoration
Line 66: Line 58:
|Psionic Power
|Psionic Power
|Pyromantic Power
|Pyromantic Power
|Venomantic Power = a
|Venomantic Power = Propertygrp08
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp10|{{#if: {{#switch: {{{1}}}
|Body Part Condition
|Health Restoration
|Health Restoration
|Healing Efficiency
|Healing Efficiency
|Fortitude
|Fortitude
|Life Drain
|Life Drain
|Energy Drain = a
|Energy Drain = Propertygrp09
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp11|{{#if: {{#switch: {{{1}}}
|Noise Produced
|Noise Produced
|Stealth
|Stealth
|Lockpicking & Disarming
|Lockpicking & Disarming
|Vision = a
|Experience Gain
|#default = }} | {{{1}}} | }}}}}<noinclude>{{Doc}}
|Vision = Propertygrp10
 
|Hunger
|Hunger Change
|Hunger Resistance
|Thirst
|Thirst Change
|Intoxication
|Intoxication Change
|Intoxication Resistance
|Pain
|Pain Change
|Pain Limit
|Sanity
|Sanity Change
|Morale
|Morale Change
|Energy Replenishment
|Health Replenishment
|Injury Treatment
|Immunity
|Fatigue
|Fatigue Change
|Fatigue Resistance = Propertygrp11
|PropertyGroups = Propertygrp01, Propertygrp02, Propertygrp03, Propertygrp04, Propertygrp05, Propertygrp06, Propertygrp07, Propertygrp08, Propertygrp09, Propertygrp10, Propertygrp11
|#default = }}<noinclude>{{Doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 18:07, 18 August 2022

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:

Propertygrp07