Template:GetModifierInfo

来自Terraria Wiki
跳到导航 跳到搜索
Template-info.svg 文档 以下文档来自Template:GetModifierInfo/doc。(编辑 | 历史

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 电脑版 电脑版 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