Template:Str: Difference between revisions
From Official Barotrauma Wiki
m (31percent moved page Template:Totalaffli to Template:Str: better for usage) |
(added option to hide med skill req (cargo, afflictions table)) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[File:affliction_{{{1}}}.png | <includeonly>[[File:{{#if: {{{5|}}}|{{{1}}}.png{{!}}{{{6|20}}}px|affliction_{{{1}}}.png{{!}}{{{4|30}}}px}}|link={{{1}}}]]{{Space}}[[{{{1}}}]]{{Space}}<!-- | ||
--> | -->{{#ifeq:{{#if:{{{2|}}}|y|nn}}|{{#if:{{{3|}}}|y|n}}|<!-- | ||
--></includeonly><noinclude>{{clr}}{{doc}}</noinclude> | // If both values ( {{{2}}} and {{{3}}} ) | ||
------>{{Space}}<span style="color:#00b5c9;cursor:help;" title="Total affliction strength change if successful">'''({{{2}}} '''</span>'''{{!}} '''<span style="color:#c90c0c;cursor:help;" title="Total affliction strength change if failed">'''{{{3}}})*'''</span>|<!-- | |||
// If there's only an onUse value ( {{{2}}} ) | |||
------>{{#if:{{{2|}}}|{{Space}}<span style="cursor:help;color:#00b5c9;" title="Total affliction strength change">'''({{{2}}})*'''</span>|}}<!-- | |||
// If there's only a onFailure value ( {{{3}}} ) | |||
------>{{#if:{{{3|}}}|{{Space}}<span style="color:#c90c0c;cursor:help;" title="Total affliction strength change if failed">'''({{{3|}}})*'''</span>|}}<!-- | |||
-->}}{{#if: {{{5|}}}|{{#if:{{{hidemed|}}}||{{space}}[[File:Medical_Doctor_Job_Icon.png|16px|Desirable Medical Skill]]{{{5}}}}}|}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude> |
Latest revision as of 14:03, 11 March 2022
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}} = 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)