Template:Medical infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
m (chance = risk)
(added option to specify organicmaterial = yes)
Line 22: Line 22:


-->
-->
| style="text-align:center;" colspan="10"  | {{#switch: {{{type}}} |equipment=[[:Category:Medical Items|Medical Item]], [[:Category:Medical Equipment|Medical Equipment]]|basic=[[:Category:Medical Items|Medical Item]], [[:Category:Basic Chemicals|Basic Chemical]]|medicine=[[:Category:Medical Items|Medical Item]], [[:Category:Medicines|Medicine]]|stimulant=[[:Category:Medical Items|Medical Item]], [[:Category:Stimulants|Stimulant]]|poison=[[:Category:Medical Items|Medical Item]], [[:Category:Poisons|Poison]]|antidote=[[:Category:Medical Items|Medical Item]], [[:Category:Antidotes|Antidote]]|#default=[[:Category:Medical Items|Medical Item]]}}{{#if: {{{talent|}}}|, [[:Category:Talent Items|Talent Item]]|}}
| style="text-align:center;" colspan="10"  | {{#switch: {{{type}}} |equipment=[[:Category:Medical Items|Medical Item]], [[:Category:Medical Equipment|Medical Equipment]]|basic=[[:Category:Medical Items|Medical Item]], [[:Category:Basic Chemicals|Basic Chemical]]|medicine=[[:Category:Medical Items|Medical Item]], [[:Category:Medicines|Medicine]]|stimulant=[[:Category:Medical Items|Medical Item]], [[:Category:Stimulants|Stimulant]]|poison=[[:Category:Medical Items|Medical Item]], [[:Category:Poisons|Poison]]|antidote=[[:Category:Medical Items|Medical Item]], [[:Category:Antidotes|Antidote]]|#default=[[:Category:Medical Items|Medical Item]]}}{{#if:{{{organicmaterial|}}}|, [[:Category:Organic Crafting Materials|Organic]] [[:Category:Crafting Materials|Crafting Material]]|}}{{#if: {{{talent|}}}|, [[:Category:Talent Items|Talent Item]]|}}
|-<!--
|-<!--


Line 259: Line 259:
|}<!--
|}<!--
--------------------------------------------------------------------------- CATEGORIES
--------------------------------------------------------------------------- CATEGORIES
-->{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}}|equipment=Medical Equipment|basic=Basic Chemicals|medicine=Medicines|stimulant=Stimulants|poison=Poisons|antidote=Antidotes|#default=Medical Items}}]][[Category:Small Items]]{{#if: {{{talent|}}}|[[Category:Talent Items]]|}}{{#if: {{{medicalfabricator|}}}|[[Category:Medical Fabricator Items]][[Category:Craftable Items]]|[[Category:Non-Craftable Items]]}}{{#ifeq: {{lc:{{{fabricator|}}}}}|yes|[[Category:Fabricator Items]][[Category:Craftable Items]]|}}{{#if: {{{deconstructormaterials|}}}|[[Category:Deconstructible Items]]|[[Category:Non-Deconstructible Items]]}}[[Category:Items]][[Category:Medical Items]]}}<!--
-->{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}}|equipment=Medical Equipment|basic=Basic Chemicals|medicine=Medicines|stimulant=Stimulants|poison=Poisons|antidote=Antidotes|#default=Medical Items}}]][[Category:Small Items]]{{#if: {{{talent|}}}|[[Category:Talent Items]]|}}{{#if:{{{organicmaterial|}}}|[[Category:Organic Crafting Materials]][[Category:Crafting Materials|Crafting Material]]|}}{{#if: {{{medicalfabricator|}}}|[[Category:Medical Fabricator Items]][[Category:Craftable Items]]|[[Category:Non-Craftable Items]]}}{{#ifeq: {{lc:{{{fabricator|}}}}}|yes|[[Category:Fabricator Items]][[Category:Craftable Items]]|}}{{#if: {{{deconstructormaterials|}}}|[[Category:Deconstructible Items]]|[[Category:Non-Deconstructible Items]]}}[[Category:Items]][[Category:Medical Items]]}}<!--


-->{{#if: {{{nocat|}}} | |<!--
-->{{#if: {{{nocat|}}} | |<!--
Line 270: Line 270:
| type = {{{type|}}}
| type = {{{type|}}}
| description = {{{description|}}}
| description = {{{description|}}}
| organicmaterial = {{{organicmaterial|}}}<!-- this is handled differently than type because it's only meant for covering cases of medical items also being organic materials. storing in cargo to be able to call all organic materials, using both 'type' and 'organicmaterial' "where"s -->
<!-- afflictions -->
<!-- afflictions -->
| damage = {{{damage|}}}
| damage = {{{damage|}}}

Revision as of 16:28, 24 December 2021

Template:Medical infobox/doc

This template adds rows to the table "Items", which is declared by the template Items infobox. View table.