Template:ModifierTable/doc: Difference between revisions

Document modType parameter
(Document property filtering capability)
(Document modType parameter)
Line 94: Line 94:
| Filters modifiers based on their value. <code>pos</code> restricts the output to only modifiers with values greater than zero, while <code>neg</code> restricts to modifiers with value less than zero.
| Filters modifiers based on their value. <code>pos</code> restricts the output to only modifiers with values greater than zero, while <code>neg</code> restricts to modifiers with value less than zero.
| {{T|ModifierTable|skillInterval|% Skill Interval Increases|filters=valueType:pos}}<br>Lists things that increase the interval of skills.
| {{T|ModifierTable|skillInterval|% Skill Interval Increases|filters=valueType:pos}}<br>Lists things that increase the interval of skills.
|-
| <code>modType</code>
| Filters modifiers based on whether they are deemed to have a positive or negative impact on the target. Accepts values of <code>pos</code> and <code>neg</code>.
Note the distinction from <code>valueType</code>, which simply returns modifiers based on the value's sign without understanding whether a value above or below zero is deemed to be a positive to the target.
| {{T|ModifierTable|skillInterval,skillPreservationChance|Negative Modifiers|filters=modType:neg}}<br>Lists things providing skill interval and preservation chance modifiers that negative impact the target.
|}
|}