Template:GetModifierInfo

From Terraria Wiki
Jump to navigation Jump to search
Important.svg
CAUTION: Terraria Wiki code is complex!!!
If you want to use this code on another wiki, wiki.gg staff are not able to assist you.
Please consider picking a different wiki to adapt code from, or making your own templates!
Remember that content on a wiki is more important than fancy formatting.
Template-info.svg Documentation The documentation below is transcluded from Template:GetModifierInfo/doc. (edit | history)

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 version 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

es-formal:Plantilla:GetModifierInfo