Template:GearTable: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
No edit summary
Line 5: Line 5:
<!--
<!--
--------------Outerwear
--------------Outerwear
-->{{#ifeq:{{{Tabletype|Outerwear}}}|Outerwear|
-->{{#ifeq:{{{tabletype|outerwear}}}|outerwear|
! Protected Limbs
! Protected Limbs
! [[Armor_Mechanics|Damage Resistances]]
! [[Armor_Mechanics|Damage Resistances]]
Line 12: Line 12:
}}<!--
}}<!--
--------------Innerwear
--------------Innerwear
-->{{#ifeq:{{{Tabletype|}}}|Innerwear|
-->{{#ifeq:{{{tabletype|}}}|innerwear|
! Protected Limbs
! Protected Limbs
! [[Armor_Mechanics|Damage Resistances]]
! [[Armor_Mechanics|Damage Resistances]]
Line 18: Line 18:
}}<!--
}}<!--
--------------Headgear
--------------Headgear
-->{{#ifeq:{{{Tabletype|}}}|Headgear|
-->{{#ifeq:{{{tabletype|}}}|headgear|
! Protected Limbs
! Protected Limbs
! [[Armor_Mechanics|Damage Resistances]]
! [[Armor_Mechanics|Damage Resistances]]
Line 24: Line 24:
}}<!--
}}<!--
--------------Toolbelt
--------------Toolbelt
-->{{#ifeq:{{{Tabletype|}}}|Toolbelt|  
-->{{#ifeq:{{{tabletype|}}}|toolbelt|  
}}<!--
}}<!--
--------------Headset
--------------Headset
-->{{#ifeq:{{{Tabletype|}}}|Headset|
-->{{#ifeq:{{{tabletype|}}}|headset|
}}<!--
}}<!--
--------------Splicer
--------------Splicer
-->{{#ifeq:{{{Tabletype|}}}|Splicer|
-->{{#ifeq:{{{tabletype|}}}|splicer|
! Gene Capacity
! Gene Capacity
}}<!--
}}<!--
Line 39: Line 39:
tables = Items
tables = Items
| fields = Items.name, Items.identifier, Items.icon, Items.geartype, Items.talent, Items.gearskillmodifiers, Items.gearspeedmodifiers, Items.gearstatmodifiers, Items.protects, Items.pressureprotection, Items.genecapacity, Items.bitewounds, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.organdamage, Items.burn, Items.bleeding, Items.oxygenlow, Items.huskinfection, Items.huskinfectionchance, Items.psychosis, Items.radiationsickness, Items.stun, Items.concussion, Items.minleveldifficulty, Items.unbuyable, Items.outpostsold, Items.citysold, Items.researchsold, Items.militarysold, Items.minesold, Items.medicalsold, Items.engineeringsold, Items.armorysold, Items.outpostmultiplier, Items.citymultiplier, Items.researchmultiplier, Items.militarymultiplier, Items.minemultiplier, Items.medicalmultiplier, Items.engineeringmultiplier, Items.armorymultiplier, Items.note,
| fields = Items.name, Items.identifier, Items.icon, Items.geartype, Items.talent, Items.gearskillmodifiers, Items.gearspeedmodifiers, Items.gearstatmodifiers, Items.protects, Items.pressureprotection, Items.genecapacity, Items.bitewounds, Items.bluntforcetrauma, Items.lacerations, Items.gunshotwound, Items.deeptissueinjury, Items.organdamage, Items.burn, Items.bleeding, Items.oxygenlow, Items.huskinfection, Items.huskinfectionchance, Items.psychosis, Items.radiationsickness, Items.stun, Items.concussion, Items.minleveldifficulty, Items.unbuyable, Items.outpostsold, Items.citysold, Items.researchsold, Items.militarysold, Items.minesold, Items.medicalsold, Items.engineeringsold, Items.armorysold, Items.outpostmultiplier, Items.citymultiplier, Items.researchmultiplier, Items.militarymultiplier, Items.minemultiplier, Items.medicalmultiplier, Items.engineeringmultiplier, Items.armorymultiplier, Items.note,
| where = {{#if: {{{1|}}}{{{id|}}}|Items.name = "{{{1}}}" OR Items.name = "{{{2}}}" OR Items.name = "{{{3}}}" OR Items.name = "{{{4}}}" OR Items.name = "{{{5}}}" OR Items.name = "{{{6}}}" OR Items.name = "{{{7}}}" OR Items.name = "{{{8}}}" OR Items.name = "{{{9}}}" OR Items.name = "{{{10}}}" OR Items.identifier = "{{{id}}}" OR Items.identifier = "{{{id2}}}" OR Items.identifier = "{{{id3}}}"|Items.geartype="{{#switch: {{{Tabletype|Outerwear}}}|Toolbelt=toolbelt|Outerwear=outerwear|Innerwear=innerwear|Headgear=headgear|Headset=headset|Card=card|Splicer=splicer}}"}}
| where = {{#if: {{{1|}}}{{{id|}}}|Items.name = "{{{1}}}" OR Items.name = "{{{2}}}" OR Items.name = "{{{3}}}" OR Items.name = "{{{4}}}" OR Items.name = "{{{5}}}" OR Items.name = "{{{6}}}" OR Items.name = "{{{7}}}" OR Items.name = "{{{8}}}" OR Items.name = "{{{9}}}" OR Items.name = "{{{10}}}" OR Items.identifier = "{{{id}}}" OR Items.identifier = "{{{id2}}}" OR Items.identifier = "{{{id3}}}"|Items.geartype="{{#switch: {{{tabletype|outerwear}}}|toolbelt=toolbelt|outerwear=outerwear|innerwear=innerwear|headgear=headgear|headset=headset|card=card|splicer=splicer}}"}}
| order by = Items.pressureprotection, Items.protects, Items.bitewounds, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.lacerations, Items.bluntforcetrauma, Items.bleeding, Items.name
| order by = Items.pressureprotection, Items.protects, Items.bitewounds, Items.gunshotwound, Items.deeptissueinjury, Items.burn, Items.lacerations, Items.bluntforcetrauma, Items.bleeding, Items.name
| format = template
| format = template
| template = {{#switch: {{{Tabletype|Outerwear}}}|Toolbelt=GearTable/Toolbelt|Outerwear=GearTable/Outerwear|Innerwear=GearTable/Innerwear|Headgear=GearTable/Headgear|Headset=GearTable/Headset|Headset=GearTable/Card|Splicer=GearTable/Splicer}}
| template = {{#switch: {{{tabletype|outerwear}}}|toolbelt=GearTable/Toolbelt|outerwear=GearTable/Outerwear|innerwear=GearTable/Innerwear|headgear=GearTable/Headgear|headset=GearTable/Headset|headset=GearTable/Card|splicer=GearTable/Splicer}}
| named args = yes
| named args = yes
}}
}}
|}</includeonly>
|}</includeonly>

Revision as of 19:20, 20 March 2023

Documentation
Main article: Boilerplate:Gear


Table displaying Gear for the Gear page.

Instructions

Field Note Example Expected Default
Tabletype Type of the table Outerwear Outerwear / Innerwear / Headgear / Toolbelt / Headset / Splicer Outerwear
width Width of the table 50% / 1000px % / px auto

When you only specify the Tabletype, all items of that Gear Type are displayed.

  • Tabletype is Outerwear by default.


You can make a custom table by writing out any Item names (Currently max 10) separated by pipes |, only those items will be shown.

  • Tabletype can be set to change how the table is displayed.
  • Custom Items can be anything, they don't need to be Gear.

Sub Templates

Template in use

Outerwear

To show up here items must have:

  • geartype defined as outerwear.
{{GearTable|tabletype=outerwear}}
Gear Name Sources Protected Limbs Damage Resistances Effects when worn Pressure Protection Notes
Error: No field named "bitewounds" found for the database table "Items".




Innerwear

To show up here items must have:

  • geartype defined as innerwear.
{{GearTable|tabletype=innerwear}}
Gear Name Sources Protected Limbs Damage Resistances Effects when worn Notes
Error: No field named "bitewounds" found for the database table "Items".




Headgear

To show up here items must have:

  • geartype defined as headgear.
{{GearTable|tabletype=headgear}}
Gear Name Sources Protected Limbs Damage Resistances Effects when worn Notes
Error: No field named "bitewounds" found for the database table "Items".




Toolbelt

To show up here items must have:

  • geartype defined as toolbelt.
{{GearTable|tabletype=toolbelt}}
Gear Name Sources Notes
Error: No field named "bitewounds" found for the database table "Items".




Headset

To show up here items must have:

  • geartype defined as headset.
{{GearTable|tabletype=headset}}
Gear Name Sources Notes
Error: No field named "bitewounds" found for the database table "Items".




Splicer

To show up here items must have:

  • geartype defined as splicer.
{{GearTable|tabletype=splicer}}
Gear Name Sources Gene Capacity Notes
Error: No field named "bitewounds" found for the database table "Items".




Custom Table Examples

Captain's Clothes Table

{{GearTable|Veteran's Jacket|Renegade's Jacket|Admiral's Uniform|Veteran's Cap|Renegade's Hat|Admiral's Hat|Tabletype=Innerwear}}
Gear Name Sources Protected Limbs Damage Resistances Effects when worn Notes
Error: No field named "bitewounds" found for the database table "Items".


Diving Suit Table

{{GearTable|Diving Suit|Combat Diving Suit|Slipsuit|PUCS|Abyss Diving Suit|Exosuit|Disposable Diving Suit|Tabletype=Outerwear}}
Gear Name Sources Protected Limbs Damage Resistances Effects when worn Pressure Protection Notes
Error: No field named "bitewounds" found for the database table "Items".


Stuff Table

{{GearTable|Poop|Clown Diving Mask|Europan Handshake|Body Armor|Tabletype=Headgear}}
Gear Name Sources Protected Limbs Damage Resistances Effects when worn Notes
Error: No field named "bitewounds" found for the database table "Items".