Template:CargoDamage/sub: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
(adding weapondamagemodifier try 1) |
||
Line 3: | Line 3: | ||
| style="text-align:center;" | [[File:{{#replace:{{{name}}}|&#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&#39;|'}}]] | | style="text-align:center;" | [[File:{{#replace:{{{name}}}|&#39;|'}}.png|50px]] <br> [[{{#replace:{{{name}}}|&#39;|'}}]] | ||
| {{{magazine}}} | | {{{magazine}}} | ||
| {{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!-- | |{{#if: {{{bluntforcetrauma|}}}|{{Affliction|Blunt Force Trauma|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{bluntforcetrauma}}}}}|{{{bluntforcetrauma}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{bluntforcetrauma}}})</small>|}}<br>|}}<!-- | ||
-->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}}}|{{{lacerations}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small>|}}<br>|}}<!-- | -->{{#if: {{{lacerations|}}}|{{Affliction|Lacerations|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{lacerations}}}}}|{{{lacerations}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{lacerations}}})</small>|}}<br>|}}<!-- | ||
-->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}}}|{{{gunshotwound}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}}<br>|}}<!-- | -->{{#if: {{{gunshotwound|}}}|{{Affliction|Gunshot Wound|||{{#if: {{{pellets|}}}|{{#expr:{{{pellets}}}*{{{gunshotwound}}}{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}}{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}}{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}}}}|{{{gunshotwound}}}}}}} {{#if: {{{pellets|}}}|<small>({{{pellets}}}x{{{gunshotwound}}})</small>|}}{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<small>({{{usedbyweapondamagemodifier}}}x)</small>}}}}{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|<small>({{{usedby2weapondamagemodifier}}}x)</small>}}}}{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small>({{{usedby3weapondamagemodifier}}}x)</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>|}}<!-- | ||
Line 31: | Line 31: | ||
| {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}} | | {{#if: {{{explosionrange|}}}|{{{explosionrange}}} meters|.}} | ||
</onlyinclude> | </onlyinclude> | ||
{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|*{{{usedbyweapondamagemodifier}}}}}}} | |||
{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|*{{{usedby2weapondamagemodifier}}}}}}} | |||
{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|*{{{usedby3weapondamagemodifier}}}}}}} | |||
{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<small>({{{usedbyweapondamagemodifier}}}x)</small>}}}} | |||
{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|<small>({{{usedby2weapondamagemodifier}}}x)</small>}}}} | |||
{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small>({{{usedby3weapondamagemodifier}}}x)</small>}}}} | |||
{{#ifeq:{{{usedby}}}|{{PAGENAME}}|{{#if:{{{usedbyweapondamagemodifier|}}}|<small>({{{usedbyweapondamagemodifier}}}x)</small>}}}}{{#ifeq:{{{usedby2}}}|{{PAGENAME}}|{{#if:{{{usedby2weapondamagemodifier|}}}|<small>({{{usedby2weapondamagemodifier}}}x)</small>}}}}{{#ifeq:{{{usedby3}}}|{{PAGENAME}}|{{#if:{{{usedby3weapondamagemodifier|}}}|<small>({{{usedby3weapondamagemodifier}}}x)</small>}}}} |
Revision as of 05:47, 29 December 2022
This template is used by Template:CargoDamage to display individual rows. It is not meant for direct usage.
See Also
The above documentation is transcluded from Template:CargoDamage/sub/doc. (edit | history)
|-
| style="text-align:center;" | [[File:{{{name}}}.png|50px]]
[[{{{name}}}]]
| {{{magazine}}}
|
| 0%
| {{{structuredamage}}}
| .