Template:TotalDamage: Difference between revisions
From Official Barotrauma Wiki
(Created page with "<noinclude>{{doc}}Category:TemplatesCategory:Cargo Querying Templates</noinclude><includeonly> {{#cargo_query: tables = Items | fields = Items.name, Items.bluntforcetr...") |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude><includeonly> | <noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Querying Templates]]</noinclude><includeonly>{{#cargo_query:tables = Items | ||
{{#cargo_query: | |||
tables = Items | |||
| fields = Items.name, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.projectiles, Items.magazine, Items.explosionbluntforcetrauma, Items.explosionlacerations, Items.explosiongunshotwound, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionbleeding, | | fields = Items.name, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.bleeding, Items.projectiles, Items.magazine, Items.explosionbluntforcetrauma, Items.explosionlacerations, Items.explosiongunshotwound, Items.explosiondeeptissueinjury, Items.explosionburn, Items.explosionbleeding, | ||
| where = Items.name LIKE "{{{1}}}" | | where = Items.name LIKE "{{{1}}}" | ||
Line 7: | Line 5: | ||
| template = {{#switch: {{{2|total}}}|total=AmmoBoxDamage/total|round=AmmoBoxDamage/round}} | | template = {{#switch: {{{2|total}}}|total=AmmoBoxDamage/total|round=AmmoBoxDamage/round}} | ||
| named args = yes | | named args = yes | ||
}} | }}</includeonly> | ||
</includeonly> |
Revision as of 14:52, 5 March 2023
Main article: Boilerplate:Gear
Template calculating total value of choosen afflictions in a magazine or a single round.
By default it calculates total damage afflictions in a mag.
Instructions
Field | Note | Example | Default |
---|---|---|---|
1 | Name of the item | Exploding Ammunition box | |
2 | Calculates damage per round if defined as "round" | round | |
type | Used to choose the type of afflictions:
|
stun | damage |
Sub Templates
Template in use
Total damage
{{TotalDamage|Exploding Ammunition Box}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
Damage per round
{{TotalDamage|Exploding Ammunition Box|round}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
Bleeding per round
{{TotalDamage|Exploding Ammunition Box|round|type=bleeding}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
Stun per round
{{TotalDamage|Exploding Ammunition Box|round|type=stun}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
All affliction types per round
{{TotalDamage|Exploding Ammunition Box|round|type=all}}
Error: No field named "bluntforcetrauma" found for the database table "Items".
The above documentation is transcluded from Template:TotalDamage/doc. (edit | history)