Template:Penetrate
Used for displaying the penetrate (pierce/hit) 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 penetrate
parameter in the source code. Input -1
for infinite hit count. $auto
sets this automatically.
Note that the "pierce count" is "penetrate
- 1", e.g. penetrate
= 5 means that the projectile can pierce up to 4 targets and dissipates upon hitting the fifth.
- penalty or p
The projectile's damage penalty after hitting a target, with the percentage sign (the value will be formatted via {{percent}}
).
- name
The name of the projectile. $auto
sets this automatically. Defaults to "projectile" if omitted or set to \0
(e.g. to force the default even if $auto
is used).
- article
Custom article to override the default "The".
Examples
Code | Result |
---|---|
{{penetrate|2}}
|
The projectile can hit up to 2 targets. |
{{penetrate|-1}}
|
The projectile can hit an infinite number of targets. |
{{penetrate|5|p=15%}}
|
The projectile can hit up to 5 targets. The damage of the projectile decreases by 15% each time it hits a target. |
{{penetrate|5|name=FOO}}
|
The FOO can hit up to 5 targets. |
{{penetrate|-1|p=15%|name=bar}}
|
The bar can hit an infinite number of targets. The damage of the bar decreases by 15% each time it hits a target. |
{{penetrate|auto=242}}
|
The High Velocity Bullet can hit up to 3 targets. |
{{penetrate|auto=242|p=15%}}
|
The High Velocity Bullet can hit up to 3 targets. The damage of the High Velocity Bullet decreases by 15% each time it hits a target. |
{{penetrate|auto=242|p=15%|article=This}}
|
This High Velocity Bullet can hit up to 3 targets. The damage of this High Velocity Bullet decreases by 15% each time it hits a target. |
{{penetrate|auto=242|p=15%|name=\0}}
|
The projectile can hit up to 3 targets. The damage of the projectile decreases by 15% each time it hits a target. |
{{penetrate}}
|
The projectile can hit up to targets. |