Template:GetModifierInfo
Jump to navigation
Jump to search
Documentation The documentation below is transcluded from Template:GetModifierInfo/doc. (edit | history)
[purge]
This template is used to display the effect of a modifier on a certain statistic. It does not support accessory modifiers. The data is taken from the database, which is based on Terraria's Desktop source code.
{{modifierinfo}}
is an alias for {{getModifierInfo}}
.
Usage
{{ modifierinfo | <modifier name> | id = <modifier ID> | <stat> | raw = y/yes/true (optional) }}
- First unnamed parameter, id
Name or ID of the modifier. Only one out of these two parameters should be used; using $id
is faster.
Note that there are two modifiers with duplicate names. The following values are accepted as input for the duplicates:
Modifier | Accepted values |
---|---|
Deadly | Deadly2 |
Deadly (ranged) | |
Deadly (ranged weapons) | |
Legendary | Legendary2 |
Legendary (Terrarian) |
- stat
Statistic to query. Can be any of the following:
- raw
Suppress formatting of the output and just display the raw value, e.g. for use with {{#expr:}}
.
Examples
Code | Result |
---|---|
{{modifierinfo|Unreal|damage}} |
+15% |
{{modifierinfo|Broken|kb}} |
-20% |
{{modifierinfo|Legendary|rarity}} |
+2 |
{{modifierinfo|Legendary (Terrarian)|value}} |
+152.15% |
{{modifierinfo|Large|size}} |
+12% |
{{modifierinfo|Large|size|raw=y}} |
1.12 |