模板:Knockback/doc

来自Terraria Wiki
跳到导航 跳到搜索

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 无击退力
0 – 1.5
< 0
极弱击退力
1.5 – 3.0 很弱击退力
3.0 – 4.0 较弱击退力
4.0 – 6.0 普通击退力
6.0 – 7.0 较强击退力
7.0 – 9.0 很强击退力
9.0 – 11.0 极强击退力
> 11.0 疯狂击退力

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}} 普通击退力
{{knockback|5|full=y}} 5(普通击退力)
{{knockback|5|full=y|class=}} 5(普通击退力)
{{knockback|5|full=y|class=note-text&#32;small}} 5(普通击退力)

See also