Template:Medical infobox: Difference between revisions
From Official Barotrauma Wiki
(hyperactivity) |
(consumptiontime, nauseagui, hastegui) |
||
Line 44: | Line 44: | ||
--> | --> | ||
|{{#if: {{{skill|}}}| style="width:50%;" colspan="5" {{!}} | colspan="10" {{!}} }}<div style="inline-size:min-content; margin:auto; white-space:nowrap;">'''Success'''<br><!-- | |{{#if: {{{skill|}}}| style="width:50%;" colspan="5" {{!}} |{{#if:{{{consumptiontime|}}}| style="width:50%;" colspan="5" {{!}} | colspan="10" {{!}} }} }}<div style="inline-size:min-content; margin:auto; white-space:nowrap;">'''Success'''<br><!-- | ||
-->{{#if: {{{successnote|}}}|<small>''{{{successnote}}}''</small><br>|}}<!-- | -->{{#if: {{{successnote|}}}|<small>''{{{successnote}}}''</small><br>|}}<!-- | ||
Line 98: | Line 98: | ||
-->{{#if: {{{opiateoverdose|}}}| {{Affliction|Opiate Overdose|{{{opiateoverdose}}}| 6={{#expr:{{{opiateoverdose}}}*{{{duration}}} round 1}}}}<br>|}}<!-- | -->{{#if: {{{opiateoverdose|}}}| {{Affliction|Opiate Overdose|{{{opiateoverdose}}}| 6={{#expr:{{{opiateoverdose}}}*{{{duration}}} round 1}}}}<br>|}}<!-- | ||
-->{{#if: {{{opiatewithdrawal|}}}| {{Affliction|Opiate Withdrawal|{{{opiatewithdrawal}}}| 6={{#expr:{{{opiatewithdrawal}}}*{{{duration}}} round 1}}}}<br>|}}<!-- | -->{{#if: {{{opiatewithdrawal|}}}| {{Affliction|Opiate Withdrawal|{{{opiatewithdrawal}}}| 6={{#expr:{{{opiatewithdrawal}}}*{{{duration}}} round 1}}}}<br>|}}<!-- | ||
-->[[File:time.png|Duration of the effects]] {{{duration}}} second{{#ifeq: {{{duration|}}}|1||s}}</div><!-- | -->{{#if:{{{consumptiontime|}}}|[[File:time.png|Consumption time]] {{{consumptiontime}}} seconds|[[File:time.png|Duration of the effects]] {{{duration}}} second{{#ifeq: {{{duration|}}}|1||s}} }}</div><!-- | ||
--> | --> | ||
Line 209: | Line 209: | ||
7={{#expr:{{{opiatewithdrawalfail}}}*{{#if: {{{durationfail|}}}|{{{durationfail}}}|{{{duration}}}}} round 1}}}}<br>|}}<!-- | 7={{#expr:{{{opiatewithdrawalfail}}}*{{#if: {{{durationfail|}}}|{{{durationfail}}}|{{{duration}}}}} round 1}}}}<br>|}}<!-- | ||
-->[[File:time.png|Duration of the effects in case of failure]] {{#if: {{{durationfail|}}}|{{{durationfail}}} second{{#ifeq: {{{durationfail|}}}|1||s}}|{{{duration}}} second{{#ifeq: {{{duration|}}}|1||s}}}}</div>|}}<!-- | -->[[File:time.png|Duration of the effects in case of failure]] {{#if: {{{durationfail|}}}|{{{durationfail}}} second{{#ifeq: {{{durationfail|}}}|1||s}}|{{{duration}}} second{{#ifeq: {{{duration|}}}|1||s}}}}</div>|{{#if:{{{consumptiontime|}}}|{{!}} style="width:50%;" colspan="5" {{!}}<div style="inline-size:min-content; margin:auto; white-space:nowrap;"><abbr title="Effects when used or administered via the health GUI">'''Health GUI'''</abbr><br><!-- | ||
-->{{#if: {{{hastegui|}}}| {{Affliction|Haste| 4={{{hastegui}}}}}<br>|}}<!-- | |||
-->{{#if: {{{nauseagui|}}}| {{Affliction|Nausea| 4={{{nauseagui}}}}}<br>|}}|}}<!-- end if consumptiontime then health gui | |||
-->}}<!-- end if skill then failure | |||
--> | --> |
Revision as of 16:22, 18 June 2022
This template adds rows to the table "Items", which is declared by the template Items infobox. View table.