Template:CargoDamage/sub: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
Line 3: Line 3:
| style="text-align:center;" | [[File:{{#replace:{{{name}}}|&amp;#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&amp;#39;|'}}]]
| style="text-align:center;" | [[File:{{#replace:{{{name}}}|&amp;#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&amp;#39;|'}}]]
| {{{magazine}}}
| {{{magazine}}}
|{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!--
| {{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedbyweapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--
 
-->{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedby2weapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||<!--
-->{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|{{#vardefine:weapondamagemodifier|{{{usedby3weapondamagemodifier}}}}}|{{#vardefine:weapondamagemodifier|1}}}}}}<!--
Affliction calculation
-->{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!--
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#expr:{{{lacerations}}}*{{{usedbyweapondamagemodifier}}}|{{{lacerations}}}}}}}}}<!--
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}|{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{#expr:{{#var:weapondamagemodifier}}*{{{lacerations}}}}})</small>|}}{{#ifeq:{{#var:weapondamagemodifier}}|1||<small> ({{#var:weapondamagemodifier}}x)</small>}}<br>|}}<!--  
-->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#expr:{{{lacerations}}}*{{{usedby2weapondamagemodifier}}}|{{{lacerations}}}}}}}}}<!--
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}}}|{{{gunshotwound}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}}<br>|}}<!--
-->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#expr:{{{lacerations}}}*{{{usedby3weapondamagemodifier}}}|{{{lacerations}}}}}}}}}|{{{lacerations}}}}}}}}}<!--
Pellets and damage modifier display
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small><!--
-->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedbyweapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby2weapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!--
 
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||<!--
Affliction calculation
-->{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}<!--
-->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|*{{{usedbyweapondamagemodifier}}}}}}}<!--
-->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|*{{{usedby2weapondamagemodifier}}}}}}}<!--
-->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{gunshotwound}}}}}}}<!--
Pellets and damage modifier display
-->{{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}} <!--
-->{{#if:{{{usedbyweapondamagemodifier|}}}|{{#ifeq:{{{usedby}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedbyweapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedby2weapondamagemodifier|}}}|{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby2weapondamagemodifier}}}x)</abbr></small>}}}}<!--
-->{{#if:{{{usedby3weapondamagemodifier|}}}|{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|<small><abbr title="Weapon damage modifier">({{{usedby3weapondamagemodifier}}}x)</abbr></small>}}}}<br>|}}<!--
 
-->{{#if: {{{deeptissueinjury|}}}|{{Affliction|Deep Tissue Injury|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{deeptissueinjury}}}}}|{{{deeptissueinjury}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{deeptissueinjury}}})</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: {{{organdamage|}}}|{{Affliction|Organ Damage|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{organdamage}}}}}|{{{organdamage}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{organdamage}}})</small>|}}<br>|}}<!--

Revision as of 07:14, 29 December 2022

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]]
[[{{{name}}}]] | {{{magazine}}} | | 0% | {{{structuredamage}}} | .