Template:Penetrate
Used for displaying the penetrate (pierce) count of a projectile.
Usage
{{ penetrate | auto = <projectile ID> | <penetrate count> | penalty/p = <penalty> (optional) | name = <projectile name> (optional) | article = <custom article> (optional) }}
- auto
ID of the projectile. Automatically fills the penetrate count stat and projectile name. Can be omitted or overridden via the first unnamed parameter/
.
$name
- First unnamed parameter
The total number of targets the projectile can hit, which is the same as the projectile's
parameter in the source code. Input penetrate
for infinite pierce. -1
sets this automatically.
$auto
Note that the "pierce count" is "
- 1", e.g. penetrate
= 5 means that the projectile can pierce up to 4 targets and dissipates upon hitting the fifth.
penetrate
- penalty or p
The pierce damage penalty of the projectile, with the percentage sign (the value will be formatted via {{percent}}
).
- name
The name of the projectile.
sets this automatically. Defaults to "projectile" if omitted or set to $auto
(e.g. to force the default even if \0
is used).
$auto
- article
Custom article to override the default "The".
Examples
Code | Result |
---|---|
{{penetrate|2}}
|
射弹最多可穿透 1 个目标,总共击中 2 个目标。 |
{{penetrate|-1}}
|
射弹可穿透无限数量的目标。 |
{{penetrate|5|p=15%}}
|
射弹最多可穿透 4 个目标,总共击中 5 个目标。每穿透一个目标,射弹的伤害就会下降 15%。 |
{{penetrate|5|name=FOO}}
|
FOO最多可穿透 4 个目标,总共击中 5 个目标。 |
{{penetrate|-1|p=15%|name=bar}}
|
bar可穿透无限数量的目标。每穿透一个目标,bar的伤害就会下降 15%。 |
{{penetrate|auto=242}}
|
高速子弹最多可穿透 2 个目标,总共击中 3 个目标。 |
{{penetrate|auto=242|p=15%}}
|
高速子弹最多可穿透 2 个目标,总共击中 3 个目标。每穿透一个目标,高速子弹的伤害就会下降 15%。 |
{{penetrate|auto=242|p=15%|article=This}}
|
高速子弹最多可穿透 2 个目标,总共击中 3 个目标。每穿透一个目标,高速子弹的伤害就会下降 15%。 |
{{penetrate|auto=242|p=15%|name=\0}}
|
射弹最多可穿透 2 个目标,总共击中 3 个目标。每穿透一个目标,射弹的伤害就会下降 15%。 |
{{penetrate}}
|
射弹最多可穿透 -1 个目标,总共击中 个目标。 |