Template:Str: Difference between revisions
From Official Barotrauma Wiki
(added option to add skill level req floating to the right, for use with chems in affliction tables) |
(removed hide icon option) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>[[File:affliction_{{{1}}}.png|{{{4|30}}}px|link={{{1}}}]]{{Space}}[[{{{1}}}]]{{Space}}<!-- | ||
-->{{#ifeq:{{#if:{{{2|}}}|y|nn}}|{{#if:{{{3|}}}|y|n}}|<!-- | -->{{#ifeq:{{#if:{{{2|}}}|y|nn}}|{{#if:{{{3|}}}|y|n}}|<!-- | ||
Line 12: | Line 12: | ||
------>{{#if:{{{3|}}}|{{Space}}<span style="color:#c90c0c;cursor:help;" title="Total affliction strength change if failed">'''({{{3|}}})*'''</span>|}}<!-- | ------>{{#if:{{{3|}}}|{{Space}}<span style="color:#c90c0c;cursor:help;" title="Total affliction strength change if failed">'''({{{3|}}})*'''</span>|}}<!-- | ||
-->}}{{#if: {{{ | -->}}{{#if: {{{5|}}}|<span style="float:right">{{{5}}}</span>|}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude> |
Revision as of 17:23, 28 February 2021
Syntax
{{str| Name | Affliction strength change | idem but onFailure | Affliction icon size override (default = 30) | skill requirement (float right) | Non-affliction icon size override (default = 20)}}
{{str|Burn|5|10|25}} = Burn (5 | 10)*
{{str|Rum|10|20||15}} = px Rum (10 | 20)*15
skill level in {{{5}}} is intended to be used in chemical lists in affliction tables only. Specifying parameter 5 will default the icon size to 20px (it may still be customized in parameter 6).
The above documentation is transcluded from Template:Str/doc. (edit | history)