Template:Medical infobox: Difference between revisions
From Official Barotrauma Wiki
(more copypasta from items infobox) |
(replaced technical info & automatic wiki categories with the technical section & automatic wiki categories for category, tags, and type from template:Items infobox.) |
||
Line 13: | Line 13: | ||
| file = {{#if: {{{icon|}}} | {{{icon}}} | {{PAGENAME}}.png }} | | file = {{#if: {{{icon|}}} | {{{icon}}} | {{PAGENAME}}.png }} | ||
| imagewidth = {{#if: {{{iconwidth|}}} | {{{iconwidth}}}px |}} | | imagewidth = {{#if: {{{iconwidth|}}} | {{{iconwidth}}}px |}} | ||
}} | }}{{#if: {{{caption|}}} |<div style="margin:auto;text-align:center;max-width:450px;word-wrap:break-word;"><small>{{{caption}}}</small></div>}}{{#if: {{{sprite|}}} |<br><br>[[File:{{{sprite|}}}|{{{spritewidth|64}}}px]] | ||
{{#if: {{{caption2|}}} |<br><small>{{{caption2}}}</small>}} | {{#if: {{{caption2|}}} |<br><small>{{{caption2}}}</small>}} | ||
|}} | |}} | ||
{{#if: {{{description|}}} |<div style="margin: 0 auto;width:50%;float:center;border-bottom: 1px #E2D9A4 dotted;"></div>''<small>{{{description}}}</small>''|}} | {{#if: {{{description|}}} |<div style="margin: 0 auto;width:50%;float:center;border-bottom: 1px #E2D9A4 dotted;"></div>''<small>{{{description}}}</small>''|}} | ||
|-<!-- | |-<!-- | ||
Line 242: | Line 227: | ||
{{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} Triggers | {{!}} style="width:40%;font-size:105%;" colspan="4" {{!}} Triggers | ||
{{!}} style="width:60%;text-align:center;" colspan="6" {{!}} {{{triggers}}} | {{!}} style="width:60%;text-align:center;" colspan="6" {{!}} {{{triggers}}} | ||
{{!}}- | |||
|}}<!-- | |||
--> | |||
{{#if: {{{maxstack|}}}| | |||
{{!}} style="width:40%;font-size:105%;" {{!}} Maximum stack | |||
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{maxstack}}} | |||
{{!}}- | {{!}}- | ||
|}}<!-- | |}}<!-- | ||
Line 368: | Line 360: | ||
{{Items_infobox/store|husk|{{{baseprice}}}|{{{huskmultiplier|1}}}|{{#if:{{{unbuyable|}}}|{{#if:{{{husksold|}}}||true}}|{{{huskunbuyable|{{#if:{{{husksold|}}}{{{huskmultiplier|}}}{{{huskminavailable|}}}||true|}}}}}}}||{{#var:sold}}|10columns=yes}}<!-- | {{Items_infobox/store|husk|{{{baseprice}}}|{{{huskmultiplier|1}}}|{{#if:{{{unbuyable|}}}|{{#if:{{{husksold|}}}||true}}|{{{huskunbuyable|{{#if:{{{husksold|}}}{{{huskmultiplier|}}}{{{huskminavailable|}}}||true|}}}}}}}||{{#var:sold}}|10columns=yes}}<!-- | ||
-->|}}|}} | -->|}}|}} | ||
|- | |||
| colspan="10" style="padding:0px" | | |||
{| class="responsive-table mw-collapsible mw-collapsed" style="width:100%" | |||
! colspan="2" class="infobox3 responsive-table" | Technical | |||
|- | |||
| style="width:40%;font-size:105%" | Identifier | |||
| width="60%" | {{{identifier}}} | |||
|- | |||
{{#if:{{{nameidentifier|}}}| | |||
{{!}} style="width:40%;font-size:105%" {{!}} Name Identifier | |||
{{!}} width="60%" {{!}} {{{nameidentifier}}}}} | |||
|- | |||
{{#if:{{{cargocontaineridentifier|}}}| | |||
{{!}} style="width:40%;font-size:105%" {{!}} Cargo Container Identifier | |||
{{!}} width="60%" {{!}} {{{cargocontaineridentifier}}}}} | |||
|- | |||
| style="font-size:105%" | Categories | |||
| <!-- | |||
-->{{#switch:{{#explode:{{{category}}}|,|0}}|Misc=[[:Category:Miscellaneous Items|Misc]]| | |||
Equipment=[[:Category:Equipment|Equipment]]| | |||
Material=[[:Category:Materials|Material]]| | |||
Medical=[[:Category:Medical Items|Medical]]| | |||
Weapon=[[:Category:Weapons|Weapon]]| | |||
Electrical=[[:Category:Electrical Items|Electrical]]| | |||
Diving=[[:Category:Diving Equipment|Diving]]| | |||
Alien=[[:Category:Alien Items|Alien]]| | |||
Fuel=[[:Category:Fuel Items|Fuel]]|}}<!-- | |||
-->{{#switch:{{#explode:{{{category}}}|,|1}}|Misc=[[:Category:Miscellaneous Items|Misc]]| | |||
Equipment=, [[:Category:Equipment|Equipment]]| | |||
Material=, [[:Category:Materials|Material]]| | |||
Medical=, [[:Category:Medical Items|Medical]]| | |||
Weapon=, [[:Category:Weapons|Weapon]]| | |||
Electrical=, [[:Category:Electrical Items|Electrical]]| | |||
Diving=, [[:Category:Diving Equipment|Diving]]| | |||
Alien=, [[:Category:Alien Items|Alien]]| | |||
Fuel=, [[:Category:Fuel Items|Fuel]]|}}<!-- | |||
-->{{#switch:{{#explode:{{{category}}}|,|2}}|Misc=[[:Category:Miscellaneous Items|Misc]]| | |||
Equipment=, [[:Category:Equipment|Equipment]]| | |||
Material=, [[:Category:Materials|Material]]| | |||
Medical=, [[:Category:Medical Items|Medical]]| | |||
Weapon=, [[:Category:Weapons|Weapon]]| | |||
Electrical=, [[:Category:Electrical Items|Electrical]]| | |||
Diving=, [[:Category:Diving Equipment|Diving]]| | |||
Alien=, [[:Category:Alien Items|Alien]]| | |||
Fuel=, [[:Category:Fuel Items|Fuel]]|}} | |||
|- | |||
{{#if:{{{tags|}}}| | |||
{{!}} style="font-size:105%" {{!}} Tags | |||
{{!}} {{{tags}}}}} | |||
|} | |||
|}<!-- | |}<!-- | ||
--------------------------------------------------------------------------- CATEGORIES | --------------------------------------------------------------------------- CATEGORIES | ||
-->{{TEX|2={{#if:{{{nocat|}}}||[[Category:{{#switch: {{{ | -->{{TEX|2={{#if:{{{nocat|}}}||[[Category:Items]]<!-- | ||
| | |||
| | -->{{#switch:{{#explode:{{{category}}}|,|0}}|Misc=[[Category:Miscellaneous Items]]| | ||
| | Equipment=[[Category:Equipment]]| | ||
| | Material=[[Category:Materials]]| | ||
| | Medical=[[Category:Medical Items]]| | ||
| | Weapon=[[Category:Weapons]]| | ||
|# | Electrical=[[Category:Electrical Items]]| | ||
[[Category:Small Items]] | Diving=[[Category:Diving Equipment]]| | ||
{{#if: {{{ | Alien=[[Category:Alien Items]][[Category:Alien]]| | ||
{{#if:{{{ | Fuel=[[Category:Fuel Items]]| | ||
{{#if: {{{ | Misc=[[Category:Miscellaneous Items]]| | ||
{{# | #default=[[Category:Item pages without a category]]| | ||
{{#if: {{{ | }}<!-- | ||
[[Category:Items]] | -->{{#if:{{#explode:{{{category|}}}|,|1}}|{{#switch:{{#explode:{{{category}}}|,|1}}|Misc=[[Category:Miscellaneous Items]]| | ||
[[Category: | Equipment=[[Category:Equipment]]| | ||
Material=[[Category:Materials]]| | |||
Medical=[[Category:Medical Items]]| | |||
Weapon=[[Category:Weapons]]| | |||
Electrical=[[Category:Electrical Items]]| | |||
Diving=[[Category:Diving Equipment]]| | |||
Alien=[[Category:Alien Items]][[Category:Alien]]| | |||
Fuel=[[Category:Fuel Items]]| | |||
Misc=[[Category:Miscellaneous Items]]| | |||
}}}}<!-- | |||
-->{{#if:{{#explode:{{{category|}}}|,|2}}|{{#switch:{{#explode:{{{category}}}|,|2}}|Misc=[[Category:Miscellaneous Items]]| | |||
Equipment=[[Category:Equipment]]| | |||
Material=[[Category:Materials]]| | |||
Medical=[[Category:Medical Items]]| | |||
Weapon=[[Category:Weapons]]| | |||
Electrical=[[Category:Electrical Items]]| | |||
Diving=[[Category:Diving Equipment]]| | |||
Alien=[[Category:Alien Items]][[Category:Alien]]| | |||
Fuel=[[Category:Fuel Items]]| | |||
Misc=[[Category:Miscellaneous Items]]| | |||
}}}}<!-- | |||
--------------------- tags CATEGORIES - Feel free to add/change these, there is a lot of tags we can use. | |||
-->{{#switch:{{#explode:{{{tags}}}|,|0}}|ore=[[Category:Gatherable]]| | |||
plant=[[Category:Gatherable]]| | |||
plantitem=[[Category:Gardening]]| | |||
tool=[[Category:Tools]]| | |||
container=[[Category:Containers]]| | |||
logic=[[Category:Electrical Components]]| | |||
wire=[[Category:Electrical Components]]| | |||
signal=[[Category:Electrical Components]]| | |||
button=[[Category:Electrical Components]]| | |||
switch=[[Category:Electrical Components]]| | |||
sound=[[Category:Electrical Components]]| | |||
skillbook=[[Category:Skill Books]]| | |||
smallitem=[[Category:Small Items]]| | |||
mediumitem=[[Category:Medium Items]]| | |||
instrument=[[Category:Instruments]]| | |||
huskcult=[[Category:The Church of Husk Items]]| | |||
clowns=[[Category:Children of The Honkmother Items]]| | |||
separatists=[[Category:Jovian Separatists Items]]| | |||
#default=[[Category:Item pages without tags]]| | |||
}}<!-- | |||
-->{{#if:{{#explode:{{{tags}}}|,|1}}|{{#switch:{{#explode:{{{tags}}}|,|1}}|ore=[[Category:Gatherable]]| | |||
plant=[[Category:Gatherable]]| | |||
plantitem=[[Category:Gardening]]| | |||
tool=[[Category:Tools]]| | |||
container=[[Category:Containers]]| | |||
logic=[[Category:Electrical Components]]| | |||
wire=[[Category:Electrical Components]]| | |||
signal=[[Category:Electrical Components]]| | |||
button=[[Category:Electrical Components]]| | |||
switch=[[Category:Electrical Components]]| | |||
sound=[[Category:Electrical Components]]| | |||
skillbook=[[Category:Skill Books]]| | |||
smallitem=[[Category:Small Items]]| | |||
mediumitem=[[Category:Medium Items]]| | |||
instrument=[[Category:Instruments]]| | |||
huskcult=[[Category:The Church of Husk Items]]| | |||
clowns=[[Category:Children of The Honkmother Items]]| | |||
separatists=[[Category:Jovian Separatists Items]]| | |||
}}}}<!-- | |||
-->{{#if:{{#explode:{{{tags}}}|,|2}}|{{#switch:{{#explode:{{{tags}}}|,|2}}|ore=[[Category:Gatherable]]| | |||
plant=[[Category:Gatherable]]| | |||
plantitem=[[Category:Gardening]]| | |||
tool=[[Category:Tools]]| | |||
container=[[Category:Containers]]| | |||
logic=[[Category:Electrical Components]]| | |||
wire=[[Category:Electrical Components]]| | |||
signal=[[Category:Electrical Components]]| | |||
button=[[Category:Electrical Components]]| | |||
switch=[[Category:Electrical Components]]| | |||
sound=[[Category:Electrical Components]]| | |||
skillbook=[[Category:Skill Books]]| | |||
smallitem=[[Category:Small Items]]| | |||
mediumitem=[[Category:Medium Items]]| | |||
instrument=[[Category:Instruments]]| | |||
huskcult=[[Category:The Church of Husk Items]]| | |||
clowns=[[Category:Children of The Honkmother Items]]| | |||
separatists=[[Category:Jovian Separatists Items]]| | |||
}}}}<!-- | |||
-->{{#if:{{#explode:{{{tags}}}|,|3}}|{{#switch:{{#explode:{{{tags}}}|,|3}}|ore=[[Category:Gatherable]]| | |||
plant=[[Category:Gatherable]]| | |||
plantitem=[[Category:Gardening]]| | |||
tool=[[Category:Tools]]| | |||
container=[[Category:Containers]]| | |||
logic=[[Category:Electrical Components]]| | |||
wire=[[Category:Electrical Components]]| | |||
signal=[[Category:Electrical Components]]| | |||
button=[[Category:Electrical Components]]| | |||
switch=[[Category:Electrical Components]]| | |||
sound=[[Category:Electrical Components]]| | |||
skillbook=[[Category:Skill Books]]| | |||
smallitem=[[Category:Small Items]]| | |||
mediumitem=[[Category:Medium Items]]| | |||
instrument=[[Category:Instruments]]| | |||
huskcult=[[Category:The Church of Husk Items]]| | |||
clowns=[[Category:Children of The Honkmother Items]]| | |||
separatists=[[Category:Jovian Separatists Items]]| | |||
}}}}<!-- | |||
-->{{#if:{{#explode:{{{tags}}}|,|4}}|{{#switch:{{#explode:{{{tags}}}|,|4}}|ore=[[Category:Gatherable]]| | |||
plant=[[Category:Gatherable]]| | |||
plantitem=[[Category:Gardening]]| | |||
tool=[[Category:Tools]]| | |||
container=[[Category:Containers]]| | |||
logic=[[Category:Electrical Components]]| | |||
wire=[[Category:Electrical Components]]| | |||
signal=[[Category:Electrical Components]]| | |||
button=[[Category:Electrical Components]]| | |||
switch=[[Category:Electrical Components]]| | |||
sound=[[Category:Electrical Components]]| | |||
skillbook=[[Category:Skill Books]]| | |||
smallitem=[[Category:Small Items]]| | |||
mediumitem=[[Category:Medium Items]]| | |||
instrument=[[Category:Instruments]]| | |||
huskcult=[[Category:The Church of Husk Items]]| | |||
clowns=[[Category:Children of The Honkmother Items]]| | |||
separatists=[[Category:Jovian Separatists Items]]| | |||
}}}}<!-- | |||
-->{{#if:{{#explode:{{{tags}}}|,|5}}|{{#switch:{{#explode:{{{tags}}}|,|5}}|ore=[[Category:Gatherable]]| | |||
plant=[[Category:Gatherable]]| | |||
plantitem=[[Category:Gardening]]| | |||
tool=[[Category:Tools]]| | |||
container=[[Category:Containers]]| | |||
logic=[[Category:Electrical Components]]| | |||
wire=[[Category:Electrical Components]]| | |||
signal=[[Category:Electrical Components]]| | |||
button=[[Category:Electrical Components]]| | |||
switch=[[Category:Electrical Components]]| | |||
sound=[[Category:Electrical Components]]| | |||
skillbook=[[Category:Skill Books]]| | |||
smallitem=[[Category:Small Items]]| | |||
mediumitem=[[Category:Medium Items]]| | |||
instrument=[[Category:Instruments]]| | |||
huskcult=[[Category:The Church of Husk Items]]| | |||
clowns=[[Category:Children of The Honkmother Items]]| | |||
separatists=[[Category:Jovian Separatists Items]]| | |||
}}}}<!-- | |||
----------------- "type" CATEGORIES | |||
-->{{#if:{{{weapontype|}}}|[[Category:Weapons]]{{#switch:{{{weapontype}}}|ranged=[[Category:Ranged Weapons]]| | |||
melee=[[Category:Melee Weapons]]| | |||
throwable=[[Category:Throwable Weapons]]| | |||
explosive=[[Category:Explosives]]| | |||
}}}}<!-- | |||
-->{{#if:{{{ammotype|}}}|[[Category:Ammunition]]{{#switch:{{{ammotype}}}|ranged=[[Category:Ranged Weapon Ammunition]]| | |||
turret=[[Category:Submarine Weapon Ammunition]]| | |||
largeturret=[[Category:Submarine Weapon Ammunition]]| | |||
submarineother=[[Category:Submarine Weapon Ammunition]]| | |||
}}}}<!-- | |||
-->{{#if:{{{geartype|}}}|[[Category:Gear]]{{#switch:{{{geartype}}}|outerwear=[[Category:Outerwear]]| | |||
innerwear=[[Category:Innerwear]]| | |||
headgear=[[Category:Headgear]]| | |||
toolbelt=[[Category:Toolbelt Items]]| | |||
headset=[[Category:Headsets]]| | |||
splicer=[[Category:Splicers]]| | |||
}}}}<!-- | |||
-->{{#if:{{{materialtype|}}}|[[Category:Crafting Materials]]{{#switch:{{{materialtype}}}|rare=[[Category:Rare Crafting Materials]]| | |||
processed=[[Category:Processed Crafting Materials]]| | |||
organic=[[Category:Organic Crafting Materials]]| | |||
mineral=[[Category:Mineral Crafting Materials]]| | |||
}}}}<!-- | |||
-->{{#if:{{{medicaltype|}}}|[[Category:Medical Items]]{{#switch:{{{medicaltype}}}|basic=[[Category:Basic Chemicals]]| | |||
stimulant=[[Category:Stimulants]]| | |||
poison=[[Category:Poisons]]| | |||
medicine=[[Category:Medicines]]| | |||
antidote=[[Category:Antidotes]]| | |||
}}}}<!-- | |||
--> | |||
{{#if:{{{talent|}}}|[[Category:Talent Items]]|}} | |||
{{#if:{{{medicalfabricator|}}}|[[Category:Medical Fabricator Items]][[Category:Craftable Items]] | |||
|{{#if:{{{fabricatormaterials|}}}|[[Category:Fabricator Items]][[Category:Craftable Items]] | |||
|[[Category:Non-Craftable Items]]}}}} | |||
{{#if:{{{deconstructormaterials|}}} | |||
|[[Category:Deconstructible Items]] | |||
|[[Category:Non-Deconstructible Items]]}} | |||
}}<!-- | |||
--------------------------------------------------------------------------- MAIN CARGO STORAGE | --------------------------------------------------------------------------- MAIN CARGO STORAGE | ||
-->{{#cargo_store:_table=Items | -->{{#cargo_store:_table=Items |
Revision as of 16:48, 29 March 2023
This template adds rows to the table "Items", which is declared by the template Items infobox. View table.