Template:CargoDamage/sub: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
 
(38 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:{{#replace:{{{name}}}|&amp;#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&amp;#39;|'}}]]
| style="text-align:center;" | [[File:{{#replace:{{{icon|{{{name}}}.png}}}|&amp;#39;|'}}|50px]] <br> [[{{#replace:{{{_pageName}}}|&amp;#39;|'}}]]
| {{{magazine}}}
| {{{magazine}}}
| {{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedbyweapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--
| {{#vardefine:weapondamagemodifier|{{#switch:{{PAGENAME}}|{{{usedby}}}={{{usedbyweapondamagemodifier|}}}|{{{usedby2}}}={{{usedby2weapondamagemodifier|}}}|{{{usedby3}}}={{{usedby3weapondamagemodifier|}}}|}}}}<!--
-->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedby2weapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedby3weapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--


-->{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!--
-->{{#if:{{{afflictionsname|}}}|<div style="text-align:center">'''{{{afflictionsname|}}}'''</div>}}<!--
-->{{#if:{{{afflictions|}}}{{{explosionafflictions|}}}|{{AfflictionParser|afflictions={{{afflictions|}}}|explosionafflictions={{{explosionafflictions|}}}|explosionrange={{{explosionrange|}}}|projectiles={{{projectiles|}}}|weapondamagemodifier={{#var:weapondamagemodifier}}|nomargin=yes}}}}<!--
-->{{#if:{{{afflictions2name|}}}|<hr><div style="text-align:center">'''{{{afflictions2name|}}}'''</div>}}<!--
-->{{#if:{{{afflictions2|}}}{{{explosionafflictions2|}}}|{{AfflictionParser|afflictions={{{afflictions2|}}}|explosionafflictions={{{explosionafflictions2|}}}|explosionrange={{{explosionrange2|{{{explosionrange|}}}}}}|projectiles={{{projectiles2|{{{projectiles|}}}}}}|weapondamagemodifier={{#var:weapondamagemodifier}}|nomargin=yes}}}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
| {{#if:{{{structuredamage|}}}|<div>Impact: {{#expr:{{#if:{{{projectiles|}}}|{{{projectiles}}}*}}{{#if:{{#var:weapondamagemodifier}}|{{#var:weapondamagemodifier}}*}}{{{structuredamage}}}}}</div><!--
-->{{#if:{{{Projectiles|}}}{{{WeaponDamageModifier|}}}|<div style="font-size:80%;margin-top:3px;">&nbsp;({{#if:{{{Projectiles|}}}|{{{Projectiles}}} projectiles x&nbsp;}}{{{AfflictionStrength}}}{{#if:{{#var:weapondamagemodifier}}|{{#ifeq:{{#var:weapondamagemodifier}}|1||&nbsp;x {{#var:weapondamagemodifier}} weapon damage modifier}}}})</div>}}<!--
-->}}<!--


 
-->{{#if:{{{explosionstructuredamage|}}}|<div>Explosion{{#if:{{{explosionrange|}}}|&nbsp;({{{explosionrange|}}}m)}}: {{#expr:{{#if:{{{projectiles|}}}|{{{projectiles}}}*}}{{#if:{{#var:weapondamagemodifier}}|{{#var:weapondamagemodifier}}*}}{{{explosionstructuredamage}}}}}</div><!--
-->{{#if: {{{lacerations|}}}|<div style="overflow:auto">{{CargoDamage/Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}}}<br><!--
-->{{#if:{{{Projectiles|}}}{{{WeaponDamageModifier|}}}|<div style="font-size:80%;margin-top:3px;">&nbsp;({{#if:{{{Projectiles|}}}|{{{Projectiles}}} projectiles x&nbsp;}}{{{AfflictionStrength}}}{{#if:{{#var:weapondamagemodifier}}|{{#ifeq:{{#var:weapondamagemodifier}}|1||&nbsp;x {{#var:weapondamagemodifier}} weapon damage modifier}}}})</div>}}<!--
-->{{#if: {{{pellets|}}}|<sup>({{{lacerations}}} x {{{pellets}}} pellets{{#ifeq:{{#var:weapondamagemodifier}}|1||x {{#var:weapondamagemodifier}} weapon damage modifier)}})</sup>|<sup>({{{lacerations}}} x {{#ifeq:{{#var:weapondamagemodifier}}|1||{{#var:weapondamagemodifier}} weapon damage modifier)</sup>}}}}</div></div>|}}<!--
-->}}
 
 
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}}}|{{{gunshotwound}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}}<br>|}}<!--
-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deeptissueinjury}}}}}|{{{deeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deeptissueinjury}}})</small>|}}<br>|}}<!--
-->{{#if: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{organdamage}}}}}|{{{organdamage}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{organdamage}}})</small>|}}<br>|}}<!--
-->{{#if: {{{burn|}}}|{{Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{burn}}}}}|{{{burn}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{burn}}})</small>|}}<br>|}}<!--
-->{{#if: {{{bleeding|}}}|{{Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bleeding}}}}}|{{{bleeding}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bleeding}}})</small>|}}<br>|}}<!--
-->{{#if: {{{oxygenlow|}}}|{{Affliction|Oxygen Low|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{oxygenlow}}}}}|{{{oxygenlow}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{oxygenlow}}})</small>|}}<br>|}}<!--
-->{{#if: {{{huskinfection|}}}|{{Affliction|Husk Infection|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{huskinfection}}}}}|{{{huskinfection}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{huskinfection}}})</small>|}}<br>|}}<!--
-->{{#if: {{{morbusinepoisoning|}}}|{{Affliction|Morbusine Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{morbusinepoisoning}}}}}|{{{morbusinepoisoning}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{morbusinepoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{sufforinpoisoning|}}}|{{Affliction|Sufforin Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{sufforinpoisoning}}}}}|{{{sufforinpoisoning}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{sufforinpoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{deliriuminepoisoning|}}}|{{Affliction|Deliriumine Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deliriuminepoisoning}}}}}|{{{deliriuminepoisoning}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deliriuminepoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{cyanidepoisoning|}}}|{{Affliction|Cyanide Poisoning|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{cyanidepoisoning}}}}}|{{{cyanidepoisoning}}}}}}} {{#if: {{{pellets}}}|<small>({{{pellets}}}x{{{cyanidepoisoning}}})</small>|}}<br>|}}<!--
-->{{#if: {{{radiationsickness|}}}|{{Affliction|Radiation Sickness|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{radiationsickness}}}}}|{{{radiationsickness}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{radiationsickness}}})</small>|}}<br>|}}<!--
-->{{#if: {{{paralysis|}}}|{{Affliction|Paralysis|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{paralysis}}}}}|{{{paralysis}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{paralysis}}})</small>|}}<br>|}}<!--
-->{{#if: {{{progressivestun|}}}|{{Affliction|Progressive Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{progressivestun}}}}}|{{{progressivestun}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{progressivestun}}})</small>|}}<br>|}}<!--
-->{{#if: {{{stun|}}}|{{Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{stun}}}}}s|{{{stun}}}s}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{stun}}})</small>|}}|}}<!--
-->{{#if: {{{explosionrange|}}}|<br>Explosion:<br><!--
-->{{#if: {{{explosionradiationsickness|}}}|{{Affliction|Radiation Sickness|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionradiationsickness}}}}}|{{{explosionradiationsickness}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionradiationsickness}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosiondeeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosiondeeptissueinjury}}}}}|{{{explosiondeeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosiondeeptissueinjury}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosionburn|}}}|{{Affliction|Burn|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionburn}}}}}|{{{explosionburn}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionburn}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosionlacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionlacerations}}}}}|{{{explosionlacerations}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionlacerations}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosionbleeding|}}}|{{Affliction|Bleeding|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionbleeding}}}}}|{{{explosionbleeding}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionbleeding}}})</small>|}}<br>|}}<!--
-->{{#if: {{{explosionstun|}}}|{{Affliction|Stun|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionstun}}}}}s|{{{explosionstun}}}s}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{explosionstun}}})</small>|}}|}}|}}
| {{#if: {{{penetration|}}}|{{{penetration}}}%|0%}}
| {{#if: {{{explosionrange|}}}|{{#if:{{{structuredamage}}}|Impact:|}}|}} {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{structuredamage}}}}} <small>({{{pellets}}}x{{{structuredamage}}})</small>|{{{structuredamage}}}}}{{#if: {{{explosionrange|}}}|<br>Explosion: {{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{explosionstructuredamage}}}}} <small>({{{pellets}}}x{{{explosionstructuredamage}}})</small>|{{{explosionstructuredamage}}}}}|}}
| {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}}
| {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}}
</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}}}]] | {{{magazine}}} | | 0% | | .