Difference between revisions of "Template:Properties sort"

From Stoneshard wiki
Jump to navigation Jump to search
old>Crouzii
m (Undo revision 5970 by Crouzii (talk))
old>Realpsojed
(Added switch case: PropertyGroups = list of available propertygrps)
Line 62: Line 62:
|Lockpicking & Disarming
|Lockpicking & Disarming
|Vision = Propertygrp10
|Vision = Propertygrp10
|PropertyGroups = Propertygrp1, Propertygrp2, Propertygrp3, Propertygrp4, Propertygrp5, Propertygrp6, Propertygrp7, Propertygrp8, Propertygrp9, Propertygrp10
|#default = }}<noinclude>{{Doc}}
|#default = }}<noinclude>{{Doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 12:08, 13 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