Template:Str: Difference between revisions
From Official Barotrauma Wiki
m (added option to hide the icon (for use with chemicals in affliction tables)) |
(added option to add skill level req floating to the right, for use with chems in affliction tables) |
||
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>|}}<!-- | ||
-->}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude> | -->}}{{#if: {{{6|}}}|<span style="float:right">{{{6}}}</span>|}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude> |
Revision as of 17:16, 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)*
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)