Template:Medical infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
(cargo documentation was lying, you do need to store everything FFS)
(improved autocat and type display)
Line 22: Line 22:


-->
-->
| 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]]|}}
| 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]]|}}
|-<!--
|-<!--


Line 224: Line 224:
|}<!--
|}<!--
--------------------------------------------------------------------------- CATEGORIES
--------------------------------------------------------------------------- CATEGORIES
-->{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}}|equipment=Medical Equipment|basic=Basic Chemicals|medicine=Medicines|stimulant=Stimulants|poison=Poisons|antidote=Antidotes|#default=Items Needing Categorization}}]][[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: {{{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|}}} | |<!--

Revision as of 17:06, 23 November 2021

Template:Medical infobox/doc

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