Template:GearTable/Affliction: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{2}}}{{{3}}}|{{#if:{{{9|}}}|{{#ifeq:{{{1}}}|Barotrauma (Affliction)|[[File:Affliction Barotrauma.png|25px|link={{{1}}}]]|[[File:{{{1}}}.png|30px|link={{{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>|}}}}
<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>

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 "{".%*