Template:Medical infobox: Difference between revisions
From Official Barotrauma Wiki
(fingers crossed (5 columns for flexible cell widths across sections)) |
(10 columns should do it) |
||
Line 112: | Line 112: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{| class="infobox responsive-table" align=right | {| class="infobox responsive-table" align=right | ||
! class="infobox2 responsive-table" colspan=" | ! class="infobox2 responsive-table" colspan="10" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
| colspan=" | | colspan="10" style="padding:0.5em;text-align:center !important;" | {{ImageHandler | ||
| file = {{#if: {{{icon|}}} | {{{icon}}} | {{PAGENAME}}.png }} | | file = {{#if: {{{icon|}}} | {{{icon}}} | {{PAGENAME}}.png }} | ||
| imagewidth = {{#if: {{{iconwidth|}}} | {{{iconwidth}}}px |}} | | imagewidth = {{#if: {{{iconwidth|}}} | {{{iconwidth}}}px |}} | ||
Line 126: | Line 126: | ||
--> | --> | ||
| style="text-align:center;" colspan=" | | style="text-align:center;" colspan="10" | {{#switch: {{{type}}} |equipment=[[:Category:Medical Equipment|Medical Equipment]]|basic=[[:Category:Basic Chemicals|Basic Chemical]]|medicine=[[:Category:Medicines|Medicine]]|stimulant=[[:Category:Stimulants|Stimulant]]|poison=[[:Category:Poisons|Poison]]|antidote=[[:Category:Antidotes|Antidote]]|#default=[[:Category:Medical Items|Medical Item]]}}{{#if: {{{talent|}}}|, [[:Category:Talent Items|Talent Item]]|}} | ||
|-<!-- | |-<!-- | ||
--> | --> | ||
! class="infobox3 responsive-table" colspan=" | ! class="infobox3 responsive-table" colspan="10" | [[Afflictions]] | ||
|-<!-- | |-<!-- | ||
--> | --> | ||
| style="width:40%;font-size:105%;" | Desirable '''[[Skills#Medical|Medical Skill]]''' | | style="width:40%;font-size:105%;" colspan="4" | Desirable '''[[Skills#Medical|Medical Skill]]''' | ||
| style="width:60%;text-align:center;" colspan=" | | style="width:60%;text-align:center;" colspan="6" | {{#if: {{{skill|}}}|{{{skill}}}|<abbr title="Level 5 or lower. Not considered since characters can't be below level 5 in normal gameplay.">None</abbr>}} | ||
|-<!-- | |-<!-- | ||
--> | --> | ||
| style="width:40%;font-size:105%;" | Duration | | style="width:40%;font-size:105%;" colspan="4" | Duration | ||
| style="width:60%;text-align:center;" colspan=" | | style="width:60%;text-align:center;" colspan="6" | {{{duration}}} seconds | ||
|-<!-- | |-<!-- | ||
--> | --> | ||
|{{#if: {{{skill|}}}| style="width:50%;" colspan=" | |{{#if: {{{skill|}}}| style="width:50%;" colspan="5" {{!}} | colspan="10" }}<div style="inline-size:min-content; margin:auto; white-space:nowrap;">'''Success'''<br><!-- | ||
########################### Success | ########################### Success | ||
Line 182: | Line 182: | ||
--> | --> | ||
{{#if: {{{skill|}}}|{{!}} style="width:50%;" colspan=" | {{#if: {{{skill|}}}|{{!}} style="width:50%;" colspan="5" {{!}}<div style="inline-size:min-content; margin:auto; white-space:nowrap;">'''Failure'''<br><!-- | ||
########################### Failure | ########################### Failure | ||
Line 222: | Line 222: | ||
--> | --> | ||
|- | |- | ||
! class="infobox3 responsive-table" colspan=" | ! class="infobox3 responsive-table" colspan="10" {{!}} [[Medical Fabricator|Crafting]] | ||
{{#if: {{#ifeq: {{lc:{{{medicalfabricator|}}}}} | yes | yes |}} {{{fabricatormaterials|}}} | | <!-- | {{#if: {{#ifeq: {{lc:{{{medicalfabricator|}}}}} | yes | yes |}} {{{fabricatormaterials|}}} | | <!-- | ||
-->{{!}}- | -->{{!}}- | ||
{{!}} style="width:40%;font-size:105%;" {{!}} Constructible? | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} Constructible? | ||
{{!}} style="width:60%;text-align:center;" colspan=" | {{!}} style="width:60%;text-align:center;" colspan="6" {{!}} No}} | ||
|-<!-- | |-<!-- | ||
--> | --> | ||
{{#if:{{{talent|}}}| | {{#if:{{{talent|}}}| | ||
{{!}} style="width:40%;font-size:105%;" {{!}} Required [[Talent]] | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} Required [[Talent]] | ||
{{!}} style="width:60%;text-align:center;" colspan=" | {{!}} style="width:60%;text-align:center;" colspan="6" {{!}} {{{talent}}} | ||
{{!}}- | {{!}}- | ||
|}}<!-- | |}}<!-- | ||
Line 239: | Line 239: | ||
{{#if:{{{fabricatorskill|}}}| | {{#if:{{{fabricatorskill|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:40%;font-size:105%;" {{!}} <abbr title="Below this medical skill level, fabrication will take longer depending on level gap">Fabricator Skill</abbr> | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} <abbr title="Below this medical skill level, fabrication will take longer depending on level gap">Fabricator Skill</abbr> | ||
{{!}} style="width:60%;text-align:center;" colspan=" | {{!}} style="width:60%;text-align:center;" colspan="6" {{!}} [[Skills#Medical|Medical]]<!-- | ||
-->{{space}}{{{fabricatorskill}}} | -->{{space}}{{{fabricatorskill}}} | ||
|}}<!-- | |}}<!-- | ||
Line 247: | Line 247: | ||
{{#if:{{{fabricatormaterials|}}}| | {{#if:{{{fabricatormaterials|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:40%;font-size:105%;" {{!}} {{#ifeq:{{lc:{{{fabricator|}}}}}|yes|[[Fabricator]] '''or'''<br>[[Medical Fabricator]]<br>Requirements|[[Medical Fabricator]]<br>Requirements}}{{#if: {{{fabricatedamount|}}}|<br>(produces {{{fabricatedamount}}} items)|}} | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} {{#ifeq:{{lc:{{{fabricator|}}}}}|yes|[[Fabricator]] '''or'''<br>[[Medical Fabricator]]<br>Requirements|[[Medical Fabricator]]<br>Requirements}}{{#if: {{{fabricatedamount|}}}|<br>(produces {{{fabricatedamount}}} items)|}} | ||
{{!}} style="width:60%;" colspan=" | {{!}} style="width:60%;" colspan="6" {{!}} <div style="inline-size:min-content; margin:auto; white-space:nowrap;">{{{fabricatormaterials}}}<br>[[File:time.png]] {{{fabricatortime|N/A}}}s</div> | ||
}}<!-- | }}<!-- | ||
Line 254: | Line 254: | ||
{{#if: {{#ifeq: {{lc:{{{deconstructor|}}}}} | yes | yes |}} {{{deconstructormaterials|}}} | | <!-- | {{#if: {{#ifeq: {{lc:{{{deconstructor|}}}}} | yes | yes |}} {{{deconstructormaterials|}}} | | <!-- | ||
-->{{!}}- | -->{{!}}- | ||
{{!}} style="width:40%;font-size:105%;" {{!}} Deconstructible? | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} Deconstructible? | ||
{{!}} style="width:60%;text-align:center;" colspan=" | {{!}} style="width:60%;text-align:center;" colspan="6" {{!}} No}} | ||
|-<!-- | |-<!-- | ||
Line 261: | Line 261: | ||
{{#if: {{{deconstructormaterials|}}}| | {{#if: {{{deconstructormaterials|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:40%;font-size:105%;" {{!}} [[Deconstructor]] Yield | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} [[Deconstructor]] Yield | ||
{{!}} style="width:60%;" colspan=" | {{!}} style="width:60%;" colspan="6" {{!}} <div style="inline-size:min-content; margin:auto; white-space:nowrap;">{{{deconstructormaterials}}}<br>[[File:time.png]] {{{deconstructortime|N/A}}}s</div> | ||
|}}<!-- | |}}<!-- | ||
--------------------------------------------------------------------------- STORE | --------------------------------------------------------------------------- STORE | ||
Line 274: | Line 274: | ||
{{#if: {{{nostore|}}}|| | {{#if: {{{nostore|}}}|| | ||
{{#if: {{{baseprice|}}}| | {{#if: {{{baseprice|}}}| | ||
! class="infobox3 responsive-table" colspan=" | ! class="infobox3 responsive-table" colspan="10" {{!}} [[Store]] | ||
{{!}}- | {{!}}- | ||
{{!}} style="width:{{#if: {{{unbuyable|}}}|5|4}}0%;font-size:105%;" {{!}} [[File:Outpost.png|32px|Outpost|link=Campaign#Location]][[Campaign#Location|Outpost]] | {{!}} style="width:{{#if: {{{unbuyable|}}}|5|4}}0%;font-size:105%;" colspan="{{#if: {{{unbuyable|}}}|5|4}} {{!}} [[File:Outpost.png|32px|Outpost|link=Campaign#Location]][[Campaign#Location|Outpost]] | ||
{{#if: {{{unbuyable|}}} | | {{!}} style="width:30%;font-size:105%;text-align:center;vertical-align:middle;" colspan=" | {{#if: {{{unbuyable|}}} | | {{!}} style="width:30%;font-size:105%;text-align:center;vertical-align:middle;" colspan="3" {{!}} Buy }} | ||
{{!}} style="width:{{#if: {{{unbuyable|}}}|5|3}}0%;font-size:105%;text-align:center;vertical-align:middle;" colspan="{{#if: {{{unbuyable|}}}| | {{!}} style="width:{{#if: {{{unbuyable|}}}|5|3}}0%;font-size:105%;text-align:center;vertical-align:middle;" colspan="{{#if: {{{unbuyable|}}}|5|3}}" {{!}} Sell | ||
{{!}}- | {{!}}- | ||
{{!}} style="height:0;padding:0;" colspan=" | {{!}} style="height:0;padding:0;" colspan="10" {{!}} <div style="margin: 0 auto;width:95%;float:center;border-bottom: 1px #E2D9A4 dotted;"></div> | ||
{{!}}- | {{!}}- | ||
{{#if:{{{outpostmultiplier|}}}|{{Items_infobox/store|outpost|{{{baseprice}}}|{{{outpostmultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{outpostunbuyable|{{#ifeq:{{{outpostsold}}}|no|true|}}}}} }} | | {{#if:{{{outpostmultiplier|}}}|{{Items_infobox/store|outpost|{{{baseprice}}}|{{{outpostmultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{outpostunbuyable|{{#ifeq:{{{outpostsold}}}|no|true|}}}}} }} |10columns=yes }} | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
{{#if:{{{citymultiplier|}}}|{{Items_infobox/store|city|{{{baseprice}}}|{{{citymultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{cityunbuyable|{{#ifeq:{{{citysold}}}|no|true|}}}}} }} | | {{#if:{{{citymultiplier|}}}|{{Items_infobox/store|city|{{{baseprice}}}|{{{citymultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{cityunbuyable|{{#ifeq:{{{citysold}}}|no|true|}}}}} }} |10columns=yes }} | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
{{#if:{{{researchmultiplier|}}}|{{Items_infobox/store|research|{{{baseprice}}}|{{{researchmultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{researchunbuyable|{{#ifeq:{{{researchsold}}}|no|true|}}}}} }} | | {{#if:{{{researchmultiplier|}}}|{{Items_infobox/store|research|{{{baseprice}}}|{{{researchmultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{researchunbuyable|{{#ifeq:{{{researchsold}}}|no|true|}}}}} }} |10columns=yes }} | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
{{#if:{{{militarymultiplier|}}}|{{Items_infobox/store|military|{{{baseprice}}}|{{{militarymultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{militaryunbuyable|{{#ifeq:{{{militarysold}}}|no|true|}}}}} }} | | {{#if:{{{militarymultiplier|}}}|{{Items_infobox/store|military|{{{baseprice}}}|{{{militarymultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{militaryunbuyable|{{#ifeq:{{{militarysold}}}|no|true|}}}}} }} |10columns=yes }} | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
{{#if:{{{minemultiplier|}}}|{{Items_infobox/store|mine|{{{baseprice}}}|{{{minemultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{mineunbuyable|{{#ifeq:{{{minesold}}}|no|true|}}}}} }} | | {{#if:{{{minemultiplier|}}}|{{Items_infobox/store|mine|{{{baseprice}}}|{{{minemultiplier}}}|{{#if: {{{unbuyable|}}}|all|{{{mineunbuyable|{{#ifeq:{{{minesold}}}|no|true|}}}}} }} |10columns=yes }} | ||
|}}|}}}} | |}}|}}}} | ||
|}<!-- | |}<!-- |