Template:MedicalTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
m (removing colspan=2)
(cleaned up, added skill requirement for poisons)
Line 2: Line 2:
{| class="responsive-table mw-collapsible sortable" style="max-width:{{{width|100}}}%;min-width:7%;"  
{| class="responsive-table mw-collapsible sortable" style="max-width:{{{width|100}}}%;min-width:7%;"  
|+'''<big>{{#switch:{{{tabletype}}}|basic=Basic Chemicals|medicine=Medicine|antidote=Antidotes|stimulant=Stimulants|poison=Poisons}}</big>'''
|+'''<big>{{#switch:{{{tabletype}}}|basic=Basic Chemicals|medicine=Medicine|antidote=Antidotes|stimulant=Stimulants|poison=Poisons}}</big>'''
{{#ifeq: {{{tabletype}}}
|basic|
! style="width: 5%;" {{!}} Chemical 
! style="width: 25%;" class="unsortable" {{!}} Description
! style="width: 13%;" class="unsortable" {{!}} Afflictions
! style="width: 2%;" {{!}} Duration (seconds)
! style="width: 2%;" {{!}} Skill
! style="width: 6%;" class="unsortable" {{!}} Source
|{{#ifeq: {{{tabletype}}}|poison|
! rowspan="2" style="width: 2%;" {{!}} Chemical
! rowspan="2" style="width: 2%;" {{!}} Chemical
! rowspan="2" style="width: 25%;" class="unsortable" {{!}} Description
! rowspan="2" style="width: 25%;" class="unsortable" {{!}} Description
! colspan="3" style="border:1px dotted #E2D9A4;" {{!}} Usage
! colspan="3" style="border:1px dotted #E2D9A4;" {{!}} Usage
! colspan="3" style="border:1px dotted #E2D9A4;" {{!}} Crafting
{{#ifeq:{{{tabletype|}}}|basic|
{{!}}-
! colspan=2 rowspan=2 style="width:6%" {{!}} Source
! style="width: 12%;" class="unsortable" {{!}} Afflictions
! style="width: 2%;" {{!}} Duration (seconds)
! style="width: 7%;" class="unsortable" {{!}} Components
! style="width: 2%;" {{!}} Craft time (seconds)
! style="width: 2%;" {{!}} Skill
|
|
! rowspan="2" style="width: 2%;" {{!}} Chemical
! rowspan="2" style="width: 25%;" class="unsortable" {{!}} Description
! colspan="4" style="border:1px dotted #E2D9A4;" {{!}} Usage
! colspan="3" style="border:1px dotted #E2D9A4;" {{!}} Crafting
! colspan="3" style="border:1px dotted #E2D9A4;" {{!}} Crafting
}}
{{!}}-
{{!}}-
! style="width: 12%;" class="unsortable" {{!}} Afflictions
! style="width: 12%;" class="unsortable" {{!}} Afflictions
! style="width: 2%;" {{!}} Duration (seconds)
! style="width: 2%;" {{!}} Duration (seconds)
! style="width: 2%;" {{!}} Skill
! style="width: 2%;" {{!}} Skill
{{#ifeq:{{{tabletype|}}}|basic||
! style="width: 7%;" class="unsortable" {{!}} Components
! style="width: 7%;" class="unsortable" {{!}} Components
! style="width: 2%;" {{!}} Craft time (seconds)
! style="width: 2%;" {{!}} Craft time (seconds)
! style="width: 2%;" {{!}} Skill
! style="width: 2%;" {{!}} Skill
}}
}}
}}
{{#cargo_query:
{{#cargo_query:

Revision as of 21:01, 6 December 2023

Documentation

Table displaying Medical Items for the Medical Items page.

Sub Templates

Template in use

Medicine

To show up here items must have:

  • medicaltype defined as medicine.
{{MedicalTable|tabletype=medicine}}
Medicine
Chemical Description Usage Crafting
Afflictions Duration (seconds) Skill Components Craft time (seconds) Skill
Error: No field named "duration" found for the database table "Items".


Basic Chemicals

To show up here items must have:

  • medicaltype defined as basic.
{{MedicalTable|tabletype=basic}}
Basic Chemicals
Chemical Description Usage Source
Afflictions Duration (seconds) Skill
Error: No field named "duration" found for the database table "Items".


Toxins

To show up here items must have:

  • medicaltype defined as poison.
{{MedicalTable|tabletype=poison}}
Poisons
Chemical Description Usage Crafting
Afflictions Duration (seconds) Skill Components Craft time (seconds) Skill
Error: No field named "duration" found for the database table "Items".


Antidotes

To show up here items must have:

  • medicaltype defined as antidote.
{{MedicalTable|tabletype=antidote}}
Antidotes
Chemical Description Usage Crafting
Afflictions Duration (seconds) Skill Components Craft time (seconds) Skill
Error: No field named "duration" found for the database table "Items".


Stimulants

To show up here items must have:

  • medicaltype defined as stimulant.
{{MedicalTable|tabletype=stimulant}}
Stimulants
Chemical Description Usage Crafting
Afflictions Duration (seconds) Skill Components Craft time (seconds) Skill
Error: No field named "duration" found for the database table "Items".