模板: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