Template:Attacks/row: Difference between revisions
From Official Barotrauma Wiki
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| | ||
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack1stuninside|}}}|{{hl|Stun}} {{{attack1stuninside|}}}s| | {{!}}{{{attack1penetration|}}}|}}<!-- | ||
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack1explosionrange|}}}|{{{attack1explosionrange|}}}m| | -->{{#ifexpr:{{#var:ins}}=1| | ||
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack1structuredamage|}}}{{#if:{{{attack1aoestructuredamage|}}}| (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| | ||
{{#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| | ||
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack1note|}}}|}}<!-- | {{!}}{{{attack1structuredamage|}}}{{#if:{{{attack1aoestructuredamage|}}}| (direct hit)<br>{{{attack1aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!-- | ||
-->{{#ifexpr:{{#var:dur}}=1| | |||
{{!}}{{{attack1duration|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:coo}}=1| | |||
{{!}}{{{attack1cooldown|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:for}}=1| | |||
{{!}}{{{attack1force|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:not}}=1| | |||
{{!}}{{{attack1note|}}}|}}<!-- | |||
-->{{#if:{{{attack2|}}}| | -->{{#if:{{{attack2|}}}| | ||
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| | ||
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack2stuninside|}}}|{{hl|Stun}} {{{attack2stuninside|}}}s| | {{!}}{{{attack2penetration|}}}|}}<!-- | ||
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack2explosionrange|}}}|{{{attack2explosionrange|}}}m| | -->{{#ifexpr:{{#var:ins}}=1| | ||
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack2structuredamage|}}}{{#if:{{{attack2aoestructuredamage|}}}| (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| | ||
{{#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| | ||
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack2note|}}}| | {{!}}{{{attack2structuredamage|}}}{{#if:{{{attack2aoestructuredamage|}}}| (direct hit)<br>{{{attack2aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!-- | ||
}}<!-- | -->{{#ifexpr:{{#var:dur}}=1| | ||
{{!}}{{{attack2duration|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:coo}}=1| | |||
{{!}}{{{attack2cooldown|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:for}}=1| | |||
{{!}}{{{attack2force|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:not}}=1| | |||
{{!}}{{{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| | ||
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack3stuninside|}}}|{{hl|Stun}} {{{attack3stuninside|}}}s| | {{!}}{{{attack3penetration|}}}|}}<!-- | ||
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack3explosionrange|}}}|{{{attack3explosionrange|}}}m| | -->{{#ifexpr:{{#var:ins}}=1| | ||
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack3structuredamage|}}}{{#if:{{{attack3aoestructuredamage|}}}| (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| | ||
{{#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| | ||
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack3note|}}}| | {{!}}{{{attack3structuredamage|}}}{{#if:{{{attack3aoestructuredamage|}}}| (direct hit)<br>{{{attack3aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!-- | ||
}}<!-- | -->{{#ifexpr:{{#var:dur}}=1| | ||
{{!}}{{{attack3duration|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:coo}}=1| | |||
{{!}}{{{attack3cooldown|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:for}}=1| | |||
{{!}}{{{attack3force|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:not}}=1| | |||
{{!}}{{{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| | ||
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack4stuninside|}}}|{{hl|Stun}} {{{attack4stuninside|}}}s| | {{!}}{{{attack4penetration|}}}|}}<!-- | ||
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack4explosionrange|}}}|{{{attack4explosionrange|}}}m| | -->{{#ifexpr:{{#var:ins}}=1| | ||
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack4structuredamage|}}}{{#if:{{{attack4aoestructuredamage|}}}| (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| | ||
{{#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| | ||
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack4note|}}}| | {{!}}{{{attack4structuredamage|}}}{{#if:{{{attack4aoestructuredamage|}}}| (direct hit)<br>{{{attack4aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!-- | ||
}}<!-- | -->{{#ifexpr:{{#var:dur}}=1| | ||
{{!}}{{{attack4duration|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:coo}}=1| | |||
{{!}}{{{attack4cooldown|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:for}}=1| | |||
{{!}}{{{attack4force|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:not}}=1| | |||
{{!}}{{{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| | ||
{{#ifexpr:{{#var:ins}}=1|{{!}}{{#if:{{{attack5stuninside|}}}|{{hl|Stun}} {{{attack5stuninside|}}}s| | {{!}}{{{attack5penetration|}}}|}}<!-- | ||
{{#ifexpr:{{#var:aoe}}=1|{{!}}{{#if:{{{attack5explosionrange|}}}|{{{attack5explosionrange|}}}m| | -->{{#ifexpr:{{#var:ins}}=1| | ||
{{#ifexpr:{{#var:str}}=1|{{!}}{{{attack5structuredamage|}}}{{#if:{{{attack5aoestructuredamage|}}}| (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| | ||
{{#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| | ||
{{#ifexpr:{{#var:not}}=1|{{!}}{{{attack5note|}}}| | {{!}}{{{attack5structuredamage|}}}{{#if:{{{attack5aoestructuredamage|}}}| (direct hit)<br>{{{attack5aoestructuredamage|}}} (<abbr title="Area of Effect">AoE</abbr>)|}}|}}<!-- | ||
}} | -->{{#ifexpr:{{#var:dur}}=1| | ||
{{!}}{{{attack5duration|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:coo}}=1| | |||
{{!}}{{{attack5cooldown|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:for}}=1| | |||
{{!}}{{{attack5force|}}}|}}<!-- | |||
-->{{#ifexpr:{{#var:not}}=1| | |||
{{!}}{{{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.