Template:GearTable/Affliction: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(Created page with "{{#if:{{{2}}}{{{3}}}|<br>{{#if:{{{9|}}}|{{#ifeq:{{{1}}}|Barotrauma (Affliction)|32px|link={{{1}}}|[[File:{{{1}}}.png|32px|link={{{1}}}]]}}&n...")
 
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{2}}}{{{3}}}|<br>{{#if:{{{9|}}}|{{#ifeq:{{{1}}}|Barotrauma (Affliction)|[[File:Affliction Barotrauma.png|32px|link={{{1}}}]]|[[File:{{{1}}}.png|32px|link={{{1}}}]]}}&nbsp;[[{{{1}}}]]&nbsp;<span style="cursor:help;color:#00b5c9" title="{{#if:{{{8|}}}|Chance to block completely {{!}}&nbsp;}}% strength resisted">'''({{#if:{{{8}}}|{{#expr:100*{{{8}}}}} {{!}}&nbsp;}}{{#expr:100*(1-{{#replace:{{{2}}}|*}})}}%)*'''</span>|{{Affliction|{{{1}}}<!--
<noinclude>{{doc}}</noinclude><onlyinclude><div style="width:fit-content;">[[File:{{#if:{{{icon|}}}|{{{icon}}}|{{{1}}}}}.png|30px|link={{{1}}}]]&nbsp;<span style="cursor:help;color:#00b5c9" title="Strength resisted {{#if:{{{3|}}}|{{!}} Chance to block completely }}">'''{{#expr:100*(1-{{{2}}})}}%{{#if:{{{3|}}}|&nbsp;{{!}} {{#expr:100*{{{3}}}}}%&#42;|&#42;}}'''</span></div></onlyinclude>
-->|{{#ifeq:{{#if:{{{6}}}|y|n}}|{{#if:{{{2}}}|y|nn}}|{{#expr:{{{2}}}*{{#if:{{{4}}}|{{{4}}}|1}}*{{#if:{{{5}}}|{{{5}}}|1}}}}}}<!--
-->|{{#ifeq:{{#if:{{{7}}}|y|n}}|{{#if:{{{3}}}|y|nn}}|{{#expr:{{{3}}}*{{#if:{{{4}}}|{{{4}}}|1}}*{{#if:{{{5}}}|{{{5}}}|1}}}}}}<!--
-->|{{#ifeq:{{#if:{{{6}}}|n|y}}|{{#if:{{{2}}}|y|nn}}|{{#expr:{{{2}}}*{{#if:{{{4}}}|{{{4}}}|1}}*{{#if:{{{5}}}|{{{5}}}|1}}}}}}<!--
-->|{{#ifeq:{{#if:{{{7}}}|n|y}}|{{#if:{{{3}}}|y|nn}}|{{#expr:{{{3}}}*{{#if:{{{4}}}|{{{4}}}|1}}*{{#if:{{{5}}}|{{{5}}}|1}}}}}}<!--
-->|{{#ifeq:{{#if:{{{6}}}|y|n}}|{{#if:{{{2}}}|y|nn}}|{{#expr:{{{2}}}*{{#if:{{{4}}}|{{{4}}}|1}}*{{#if:{{{5}}}|{{{5}}}|1}}*{{{6}}}}}}}<!--
-->|{{#ifeq:{{#if:{{{7}}}|y|n}}|{{#if:{{{3}}}|y|nn}}|{{#expr:{{{3}}}*{{#if:{{{4}}}|{{{4}}}|1}}*{{#if:{{{5}}}|{{{5}}}|1}}*{{{7}}}}}}}<!--
-->|32}}{{#if:{{{8}}}|&nbsp;({{#expr:{{{8}}}*100)}}% chance)}}}}}}

Latest revision as of 00:50, 30 March 2023

Documentation

This template is used by subtemplates of Template:GearTable to display affliction resistances. It is not meant for direct usage.

[[File:{{{1}}}.png|30px|link={{{1}}}]] Expression error: Unrecognized punctuation character "{".%*