Template:Knockback

From Terraria Mods Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see tgc:Help:I18n & l10n for templates to learn more.
See Template:Knockback/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Knockback/doc. (edit | history)

Use this template to show a verbal description of a numeric knockback rating.

Usage

{{ knockback | <numeric knockback value> | full = y (optional) | class = <custom class for the description> (optional) }}

First unnamed parameter

Knockback value. See the following table for a value overview:

Value Description
0 No knockback
0 – 1.5
< 0
Extremely weak
1.5 – 3.0 Very weak
3.0 – 4.0 Weak
4.0 – 6.0 Average
6.0 – 7.0 Strong
7.0 – 9.0 Very strong
9.0 – 11.0 Extremely strong
> 11.0 Insane

These values are taken from the source code, thus correspond to the in-game values.

full

Set this parameter to prepend the numeric input and style the description in a standardized way.

class

Set a custom class for the description, default is knockback. Only has an effect when using $full.

Examples

Code Result
{{knockback|5}} Average
{{knockback|5|full=y}} 5 (Average)
{{knockback|5|full=y|class=note-text&#32;small}} 5 (Average)

See also