Template:CargoDamage/row: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Undo revision 27722 by 31percent (talk))
Tag: Undo
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><onlyinclude>
<noinclude>{{doc}}</noinclude><onlyinclude>
|-
|-
| style="text-align:center;" | [[File:{{{name}}}.png|50px]] <br> [[{{{name}}}]]
| style="text-align:center;" | [[File:{{#replace:{{{icon|{{{name}}}.png}}}|&amp;#39;|'}}|50px]] <br> [[{{#replace:{{{_pageName}}}|&amp;#39;|'}}]]
| {{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{{bluntforcetrauma}}}}} <small>({{#expr: {{{bluntforcetrauma}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- <br> are here because 99% of the time stun is last, and there's no <br> after stun here. Sketchy, but haven't found a better way yet.
| {{#if:{{{afflictions|}}}|{{AfflictionParser|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{{weapondamagemodifier|}}}}}}}
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{{lacerations}}}}} <small>({{#expr: {{{lacerations}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!-- this means that in the remaining 1% cases, there will be an empty line at the end of the cell (when there's no stun e.g. coilgun ammo etc
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{{gunshotwound}}}}} <small>({{#expr: {{{gunshotwound}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{{deeptissueinjury}}}}} <small>({{#expr: {{{deeptissueinjury}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{{organdamage}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{burn|}}}|{{Affliction|Burn|||{{{burn}}}}} <small>({{#expr: {{{burn}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{bleeding|}}}|{{Affliction|Bleeding|||{{{bleeding}}}}} <small>({{#expr: {{{bleeding}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{oxygenlow|}}}|{{Affliction|Oxygen Low|||{{{oxygenlow}}}}} <small>({{#expr: {{{oxygenlow}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{huskinfection|}}}|{{Affliction|Husk Infection|||{{{huskinfection}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{psychosis|}}}|{{Affliction|Psychosis|||{{{psychosis}}}}} <small>({{#expr: {{{psychosis}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{morbusinepoisoning|}}}|{{Affliction|Morbusine Poisoning|||{{{morbusinepoisoning}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{sufforinpoisoning|}}}|{{Affliction|Sufforin Poisoning|||{{{sufforinpoisoning}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{deliriuminepoisoning|}}}|{{Affliction|Deliriumine Poisoning|||{{{deliriuminepoisoning}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{cyanidepoisoning|}}}|{{Affliction|Cyanide Poisoning|||{{{cyanidepoisoning}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{radiationsickness|}}}|{{Affliction|Radiation Sickness|||{{{radiationsickness}}}}} <small>({{#expr: {{{radiationsickness}}}*{{{attackspeed}}} round 1}} DPS)</small><br>|}}<!--
-->{{#if: {{{paralysis|}}}|{{Affliction|Paralysis|||{{{paralysis}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{progressivestun|}}}|{{Affliction|Progressive Stun|||{{{progressivestun}}}}}<br>|}}<!-- no dps needed
-->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#expr: {{{stun}}} round 1}}s}}|}}
| {{{attackspeed}}}
| {{{attackspeed}}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
</onlyinclude>
</onlyinclude>

Latest revision as of 11:31, 24 March 2024

Documentation

This template is used by Template:CargoDamage to display individual rows. It is not meant for direct usage.

See Also

|- | style="text-align:center;" | [[File:{{{name}}}.png|50px]]
[[{{{_pageName}}}]] | | {{{attackspeed}}} | 0%