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...")
 
old>Realpsojed
(test)
Line 5: Line 5:


All properties are provided by the Template:Properties, which loads all properties from an individual item page (ie. Wooden Sword).
All properties are provided by the Template:Properties, which loads all properties from an individual item page (ie. Wooden Sword).
-->{{{Propertygrp1|{{#if: {{#switch: {{{1}}}
-->{{#if: {{#switch: {{{Propertygrp1}}}
|Physical Resistance
|Physical Resistance
|Nature Resistance
|Nature Resistance
|Magic Resistance = a
|Magic Resistance = a
|#default = }} | {{{1}}} | }}}}}{{{Propertygrp2|{{#if: {{#switch: {{{1}}}
|#default = }} | {{{Propertygrp1}}} | }}
 
{{{Propertygrp2|{{#if: {{#switch: {{{1}}}
|Slashing Resistance
|Slashing Resistance
|Piercing Resistance
|Piercing Resistance

Revision as of 14:54, 8 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:


Block Chance