Template:DPS/doc: Difference between revisions
From Space Station 14 Wiki
Created page with "== Usage == {{tji|dps|damage|fire rate (per second)}} == Example == === Simple === {{tji|dps|8|4}} {{gda}} {{dps|8|4}} === With rounding === {{tji|dps|25|0.333}} {{gda}} {{dps|25|0.333}} === With a damage type template === <syntaxhighlight lang="mediawiki" inline>{{damage|blunt|{{dps|8|4}}}}</syntaxhighlight> {{gda}} {{blunt|{{dps|8|4}}}} Category:Template documentation" |
errors |
||
Line 26: | Line 26: | ||
[[Category:Template documentation]] | [[Category:Template documentation]] | ||
== Errors == | |||
=== No fire rate provided === | |||
{{tji|dps|10}} | |||
{{gda}} | |||
{{dps|10}} | |||
=== No damage provided === | |||
{{tji|dps}} | |||
{{gda}} | |||
{{dps}} |
Latest revision as of 12:00, 12 May 2025
Usage
{{dps
Example
Simple
{{dps
↓
32
With rounding
{{dps
↓
≈8.3
With a damage type template
{{damage|blunt|{{dps|8|4}}}}
↓
32 blunt
Errors
No fire rate provided
{{dps
↓
Fire rate parameter (second) not provided≈Expression error: Unexpected < operator.
No damage provided
{{dps}}
↓
Damage parameter (first) not provided≈Expression error: Unexpected < operator.