Template:Attacks/row: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
m (test fix for undesired extra newlines in afflictions cell row 1)
(testfix for another case of extra newlines)
Line 22: Line 22:
-->{{#if:{{{attack1note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack2note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack3note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack4note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack5note|}}}|{{#vardefine:not|1}}|{{#vardefine:not|0}}}}}}}}}}}}<!--
-->{{#if:{{{attack1note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack2note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack3note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack4note|}}}|{{#vardefine:not|1}}|{{#if:{{{attack5note|}}}|{{#vardefine:not|1}}|{{#vardefine:not|0}}}}}}}}}}}}<!--


-->{{#ifexpr:{{#var:arm}}=1|{{!}}{{{attack1penetration|}}}|}}
-->{{#ifexpr:{{#var:arm}}=1|&nbsp;
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack1stuninside|}}}|{{hl|Stun}} {{{attack1stuninside|}}}s|&nbsp;}}|}}
{{!}}{{{attack1penetration|}}}|}}<!--
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack1explosionrange|}}}|{{{attack1explosionrange|}}}m|&nbsp;}}{{#if:{{{attack1explosionrange2|}}}|{{{attack1explosionrange2}}}|}}<!--this is for when there are 2 diff explo ranges, eg black moloch-->|}}
-->{{#ifexpr:{{#var:ins}}=1|&nbsp;
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack1structuredamage|}}}{{#if:{{{attack1aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack1aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}
{{!}}{{#if:{{{attack1stuninside|}}}|{{hl|Stun}} {{{attack1stuninside|}}}s|}}|}}<!--
{{#ifexpr:{{#var:dur}}=1|{{!}}{{{attack1duration|}}}|}}
-->{{#ifexpr:{{#var:aoe}}=1|&nbsp;
{{#ifexpr:{{#var:coo}}=1|{{!}}{{{attack1cooldown|}}}|}}
{{!}}{{#if:{{{attack1explosionrange|}}}|{{{attack1explosionrange|}}}m|}}{{#if:{{{attack1explosionrange2|}}}|{{{attack1explosionrange2}}}|}}<!--this is for when there are 2 diff explo ranges, eg black moloch-->|}}<!--
{{#ifexpr:{{#var:for}}=1|{{!}}{{{attack1force|}}}|}}
-->{{#ifexpr:{{#var:str}}=1|&nbsp;
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack1note|}}}|}}<!--
{{!}}{{{attack1structuredamage|}}}{{#if:{{{attack1aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack1aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!--
-->{{#ifexpr:{{#var:dur}}=1|&nbsp;
{{!}}{{{attack1duration|}}}|}}<!--
-->{{#ifexpr:{{#var:coo}}=1|&nbsp;
{{!}}{{{attack1cooldown|}}}|}}<!--
-->{{#ifexpr:{{#var:for}}=1|&nbsp;
{{!}}{{{attack1force|}}}|}}<!--
-->{{#ifexpr:{{#var:not}}=1|&nbsp;
{{!}}{{{attack1note|}}}|}}<!--


-->{{#if:{{{attack2|}}}|&nbsp;
-->{{#if:{{{attack2|}}}|&nbsp;
Line 44: Line 52:
-->{{#if:{{{attack2watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack2watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack2watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack2watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack2emp|}}}|EMP {{{attack2emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack2emp|}}}|EMP {{{attack2emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack2stun|}}}|{{hl|Stun}} {{{attack2stun}}}s {{#if:{{{attack2stunchance|}}}|({{{attack2stunchance}}}% chance)|}}|}}
-->{{#if:{{{attack2stun|}}}|{{hl|Stun}} {{{attack2stun}}}s {{#if:{{{attack2stunchance|}}}|({{{attack2stunchance}}}% chance)|}}|}}<!--
{{#ifexpr:{{#var:arm}}=1|{{!}}{{{attack2penetration|}}}|}}
-->{{#ifexpr:{{#var:arm}}=1|&nbsp;
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack2stuninside|}}}|{{hl|Stun}} {{{attack2stuninside|}}}s|&nbsp;}}|}}
{{!}}{{{attack2penetration|}}}|}}<!--
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack2explosionrange|}}}|{{{attack2explosionrange|}}}m|&nbsp;}}|}}
-->{{#ifexpr:{{#var:ins}}=1|&nbsp;
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack2structuredamage|}}}{{#if:{{{attack2aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack2aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}
{{!}}{{#if:{{{attack2stuninside|}}}|{{hl|Stun}} {{{attack2stuninside|}}}s|}}|}}<!--
{{#ifexpr:{{#var:dur}}=1|{{!}}{{{attack2duration|}}}|}}
-->{{#ifexpr:{{#var:aoe}}=1|&nbsp;
{{#ifexpr:{{#var:coo}}=1|{{!}}{{{attack2cooldown|}}}|}}
{{!}}{{#if:{{{attack2explosionrange|}}}|{{{attack2explosionrange|}}}m|}}{{#if:{{{attack2explosionrange2|}}}|{{{attack2explosionrange2}}}|}}<!--this is for when there are 2 diff explo ranges, eg black moloch-->|}}<!--
{{#ifexpr:{{#var:for}}=1|{{!}}{{{attack2force|}}}|}}
-->{{#ifexpr:{{#var:str}}=1|&nbsp;
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack2note|}}}|}}
{{!}}{{{attack2structuredamage|}}}{{#if:{{{attack2aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack2aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!--
}}<!--
-->{{#ifexpr:{{#var:dur}}=1|&nbsp;
{{!}}{{{attack2duration|}}}|}}<!--
-->{{#ifexpr:{{#var:coo}}=1|&nbsp;
{{!}}{{{attack2cooldown|}}}|}}<!--
-->{{#ifexpr:{{#var:for}}=1|&nbsp;
{{!}}{{{attack2force|}}}|}}<!--
-->{{#ifexpr:{{#var:not}}=1|&nbsp;
{{!}}{{{attack2note|}}}|}}<!--


-->
-->
Line 69: Line 84:
-->{{#if:{{{attack3watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack3watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack3watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack3watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack3emp|}}}|EMP {{{attack3emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack3emp|}}}|EMP {{{attack3emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack3stun|}}}|{{hl|Stun}} {{{attack3stun}}}s {{#if:{{{attack3stunchance|}}}|({{{attack3stunchance}}}% chance)|}}|}}
-->{{#if:{{{attack3stun|}}}|{{hl|Stun}} {{{attack3stun}}}s {{#if:{{{attack3stunchance|}}}|({{{attack3stunchance}}}% chance)|}}|}}<!--
{{#ifexpr:{{#var:arm}}=1|{{!}}{{{attack3penetration|}}}|}}
-->{{#ifexpr:{{#var:arm}}=1|&nbsp;
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack3stuninside|}}}|{{hl|Stun}} {{{attack3stuninside|}}}s|&nbsp;}}|}}
{{!}}{{{attack3penetration|}}}|}}<!--
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack3explosionrange|}}}|{{{attack3explosionrange|}}}m|&nbsp;}}|}}
-->{{#ifexpr:{{#var:ins}}=1|&nbsp;
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack3structuredamage|}}}{{#if:{{{attack3aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack3aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}
{{!}}{{#if:{{{attack3stuninside|}}}|{{hl|Stun}} {{{attack3stuninside|}}}s|}}|}}<!--
{{#ifexpr:{{#var:dur}}=1|{{!}}{{{attack3duration|}}}|}}
-->{{#ifexpr:{{#var:aoe}}=1|&nbsp;
{{#ifexpr:{{#var:coo}}=1|{{!}}{{{attack3cooldown|}}}|}}
{{!}}{{#if:{{{attack3explosionrange|}}}|{{{attack3explosionrange|}}}m|}}{{#if:{{{attack3explosionrange2|}}}|{{{attack3explosionrange2}}}|}}<!--this is for when there are 2 diff explo ranges, eg black moloch-->|}}<!--
{{#ifexpr:{{#var:for}}=1|{{!}}{{{attack3force|}}}|}}
-->{{#ifexpr:{{#var:str}}=1|&nbsp;
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack3note|}}}|}}
{{!}}{{{attack3structuredamage|}}}{{#if:{{{attack3aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack3aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!--
}}<!--
-->{{#ifexpr:{{#var:dur}}=1|&nbsp;
{{!}}{{{attack3duration|}}}|}}<!--
-->{{#ifexpr:{{#var:coo}}=1|&nbsp;
{{!}}{{{attack3cooldown|}}}|}}<!--
-->{{#ifexpr:{{#var:for}}=1|&nbsp;
{{!}}{{{attack3force|}}}|}}<!--
-->{{#ifexpr:{{#var:not}}=1|&nbsp;
{{!}}{{{attack3note|}}}|}}<!--


-->
-->
Line 94: Line 116:
-->{{#if:{{{attack4watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack4watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack4watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack4watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack4emp|}}}|EMP {{{attack4emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack4emp|}}}|EMP {{{attack4emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack4stun|}}}|{{hl|Stun}} {{{attack4stun}}}s {{#if:{{{attack4stunchance|}}}|({{{attack4stunchance}}}% chance)|}}|}}
-->{{#if:{{{attack4stun|}}}|{{hl|Stun}} {{{attack4stun}}}s {{#if:{{{attack4stunchance|}}}|({{{attack4stunchance}}}% chance)|}}|}}<!--
{{#ifexpr:{{#var:arm}}=1|{{!}}{{{attack4penetration|}}}|}}
-->{{#ifexpr:{{#var:arm}}=1|&nbsp;
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack4stuninside|}}}|{{hl|Stun}} {{{attack4stuninside|}}}s|&nbsp;}}|}}
{{!}}{{{attack4penetration|}}}|}}<!--
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack4explosionrange|}}}|{{{attack4explosionrange|}}}m|&nbsp;}}|}}
-->{{#ifexpr:{{#var:ins}}=1|&nbsp;
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack4structuredamage|}}}{{#if:{{{attack4aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack4aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}
{{!}}{{#if:{{{attack4stuninside|}}}|{{hl|Stun}} {{{attack4stuninside|}}}s|}}|}}<!--
{{#ifexpr:{{#var:dur}}=1|{{!}}{{{attack4duration|}}}|}}
-->{{#ifexpr:{{#var:aoe}}=1|&nbsp;
{{#ifexpr:{{#var:coo}}=1|{{!}}{{{attack4cooldown|}}}|}}
{{!}}{{#if:{{{attack4explosionrange|}}}|{{{attack4explosionrange|}}}m|}}{{#if:{{{attack4explosionrange2|}}}|{{{attack4explosionrange2}}}|}}<!--this is for when there are 2 diff explo ranges, eg black moloch-->|}}<!--
{{#ifexpr:{{#var:for}}=1|{{!}}{{{attack4force|}}}|}}
-->{{#ifexpr:{{#var:str}}=1|&nbsp;
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack4note|}}}|}}
{{!}}{{{attack4structuredamage|}}}{{#if:{{{attack4aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack4aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!--
}}<!--
-->{{#ifexpr:{{#var:dur}}=1|&nbsp;
{{!}}{{{attack4duration|}}}|}}<!--
-->{{#ifexpr:{{#var:coo}}=1|&nbsp;
{{!}}{{{attack4cooldown|}}}|}}<!--
-->{{#ifexpr:{{#var:for}}=1|&nbsp;
{{!}}{{{attack4force|}}}|}}<!--
-->{{#ifexpr:{{#var:not}}=1|&nbsp;
{{!}}{{{attack4note|}}}|}}<!--


-->
-->
Line 119: Line 148:
-->{{#if:{{{attack5watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack5watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack5watchersgaze|}}}|{{hl|Watcher's Gaze}} {{{attack5watchersgaze}}}<br>|}}<!--
-->{{#if:{{{attack5emp|}}}|EMP {{{attack5emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack5emp|}}}|EMP {{{attack5emp}}}<br>|}}<!--black moloch
-->{{#if:{{{attack5stun|}}}|{{hl|Stun}} {{{attack5stun}}}s {{#if:{{{attack5stunchance|}}}|({{{attack5stunchance}}}% chance)|}}|}}
-->{{#if:{{{attack5stun|}}}|{{hl|Stun}} {{{attack5stun}}}s {{#if:{{{attack5stunchance|}}}|({{{attack5stunchance}}}% chance)|}}|}}<!--
{{#ifexpr:{{#var:arm}}=1|{{!}}{{{attack5penetration|}}}|}}
-->{{#ifexpr:{{#var:arm}}=1|&nbsp;
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack5stuninside|}}}|{{hl|Stun}} {{{attack5stuninside|}}}s|&nbsp;}}|}}
{{!}}{{{attack5penetration|}}}|}}<!--
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack5explosionrange|}}}|{{{attack5explosionrange|}}}m|&nbsp;}}|}}
-->{{#ifexpr:{{#var:ins}}=1|&nbsp;
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack5structuredamage|}}}{{#if:{{{attack5aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack5aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}
{{!}}{{#if:{{{attack5stuninside|}}}|{{hl|Stun}} {{{attack5stuninside|}}}s|}}|}}<!--
{{#ifexpr:{{#var:dur}}=1|{{!}}{{{attack5duration|}}}|}}
-->{{#ifexpr:{{#var:aoe}}=1|&nbsp;
{{#ifexpr:{{#var:coo}}=1|{{!}}{{{attack5cooldown|}}}|}}
{{!}}{{#if:{{{attack5explosionrange|}}}|{{{attack5explosionrange|}}}m|}}{{#if:{{{attack5explosionrange2|}}}|{{{attack5explosionrange2}}}|}}<!--this is for when there are 2 diff explo ranges, eg black moloch-->|}}<!--
{{#ifexpr:{{#var:for}}=1|{{!}}{{{attack5force|}}}|}}
-->{{#ifexpr:{{#var:str}}=1|&nbsp;
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack5note|}}}|}}
{{!}}{{{attack5structuredamage|}}}{{#if:{{{attack5aoestructuredamage|}}}|&nbsp;(direct hit)<br>{{{attack5aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!--
}}
-->{{#ifexpr:{{#var:dur}}=1|&nbsp;
{{!}}{{{attack5duration|}}}|}}<!--
-->{{#ifexpr:{{#var:coo}}=1|&nbsp;
{{!}}{{{attack5cooldown|}}}|}}<!--
-->{{#ifexpr:{{#var:for}}=1|&nbsp;
{{!}}{{{attack5force|}}}|}}<!--
-->{{#ifexpr:{{#var:not}}=1|&nbsp;
{{!}}{{{attack5note|}}}|}}
</includeonly><noinclude>This is a sub-template of [[Template:Attacks]] and is not meant for direct usage.</noinclude>
</includeonly><noinclude>This is a sub-template of [[Template:Attacks]] and is not meant for direct usage.</noinclude>

Revision as of 20:02, 4 June 2022

This is a sub-template of Template:Attacks and is not meant for direct usage.