Barotrauma Wiki
(minor fixes, added "notype", fixed "nostats" and removed some outdated stuff.)
(Undo revision 14149 by Drlloyd5 (talk))
Tag: Undo
Line 13: Line 13:
   
 
-->
 
-->
{{#if: {{{notype|}}}||
+
{{#if: {{{nostats|}}}||
{{!}} class="infobox3" colspan="3" {{!}} Type
+
! class="infobox3" colspan="3" {{!}} Stats
{{!}}-
 
{{!}} style="width:60%;text-align:center;" colspan="3" {{!}} {{#switch: {{{type}}} |weapon='''[[:Category:Weapons|Weapon]]'''|tool='''[[:Category:Tools|Tool]]'''|gear='''[[:Category:Gear|Gear]]'''|chemical='''[[:Category:Chemicals|Chemical]]'''|electrical='''[[:Category:Electrical Components|Electrical Component]]'''|container='''[[:Category:Containers|Container]]'''|ammo='''Ammunition'''|fuel='''Fuel'''|misc='''[[:Category:Misc Items|Misc]]''' Item|exotic='''Exotic Item'''|vehicle='''Vehicle'''|#default='''General [[:Category:Items|Item]]'''}}
 
 
}}<!--
 
}}<!--
  +
  +
-->
  +
|-
  +
| style="width:40%;font-size:105%;" | Type
 
| style="width:60%;text-align:center;" colspan="2" | {{#switch: {{{type}}} |weapon=[[:Category:Weapons|Weapon]]|tool=[[:Category:Tools|Tool]]|gear=[[:Category:Gear|Gear]]|chemical=[[:Category:Chemicals|Chemical]]|electrical=[[:Category:Electrical Components|Electrical Component]]|container=[[:Category:Containers|Container]]|ammo=Ammunition|fuel=Fuel|misc=[[:Category:Misc Items|Misc]] Item|exotic=Exotic Item|vehicle=Vehicle|#default=General [[:Category:Items|Item]]}}<!--
  +
  +
// Deprecated, use multipliers for price
  +
-->
  +
|-
 
{{#if: {{{cost|}}}|
 
{{!}}-
  +
{{!}} style="width:40%;font-size:105%;" {{!}} <span class="explain" title="Min - Max base price from selling outposts at 0 RP">Item Cost</span>
  +
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{cost}}} Marks
 
|}}<!--
  +
// Deprecated, use multipliers for price
  +
-->
  +
{{#if: {{{sellprice|}}}|
 
{{!}}-
  +
{{!}} style="width:40%;font-size:105%;" {{!}} Sell Price
  +
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{sellprice}}}
 
|}}<!--
   
 
// Display prices using multipliers
 
// Display prices using multipliers
Line 26: Line 45:
 
-->
 
-->
 
{{!}}-
 
{{!}}-
  +
{{#if: {{{cost|}}}||<!-- temporary -->
 
{{#if: {{{nostore|}}}||
 
{{#if: {{{nostore|}}}||
 
{{#if: {{{baseprice|}}}|
 
{{#if: {{{baseprice|}}}|
Line 52: Line 72:
 
|}}|}}}}}}<!--
 
|}}|}}}}}}<!--
   
  +
-->
-->{{#if: {{{nostats|}}}||
 
! class="infobox3" colspan="3" {{!}} Stats
 
{{!}}-
 
 
{{#if: {{{ammo|}}}|
 
{{#if: {{{ammo|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Ammunition
 
{{!}} style="width:40%;font-size:105%;" {{!}} Ammunition
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammo}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammo}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{ammocost|}}}|
 
{{#if: {{{ammocost|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Ammo Cost
 
{{!}} style="width:40%;font-size:105%;" {{!}} Ammo Cost
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammocost}}} Marks
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammocost}}} Marks
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{ammocount|}}}|
 
{{#if: {{{ammocount|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Ammo Capacity
 
{{!}} style="width:40%;font-size:105%;" {{!}} Ammo Capacity
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammocount}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{ammocount}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{fuel|}}}|
 
{{#if: {{{fuel|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel
 
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuel}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuel}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{fuelcost|}}}|
 
{{#if: {{{fuelcost|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel Cost
 
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel Cost
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuelcost}}} Marks
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuelcost}}} Marks
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{fuelcount|}}}|
 
{{#if: {{{fuelcount|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel Capacity
 
{{!}} style="width:40%;font-size:105%;" {{!}} Fuel Capacity
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuelcount}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fuelcount}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{payload|}}}|
 
{{#if: {{{payload|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Payload
 
{{!}} style="width:40%;font-size:105%;" {{!}} Payload
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payload}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payload}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{payloadcost|}}}|
 
{{#if: {{{payloadcost|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Payload Cost
 
{{!}} style="width:40%;font-size:105%;" {{!}} Payload Cost
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payloadcost}}} Marks
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payloadcost}}} Marks
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{payloadcount|}}}|
 
{{#if: {{{payloadcount|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Payload Capacity
 
{{!}} style="width:40%;font-size:105%;" {{!}} Payload Capacity
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payloadcount}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{payloadcount}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{supplyname|}}}|
 
{{#if: {{{supplyname|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}}
 
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplyitems}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplyitems}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{supplycost|}}}|
 
{{#if: {{{supplycost|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}} Cost
 
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}} Cost
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplycost}}} Marks
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplycost}}} Marks
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if: {{{supplycount|}}}|
 
{{#if: {{{supplycount|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}} Capacity
 
{{!}} style="width:40%;font-size:105%;" {{!}} {{{supplyname}}} Capacity
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplycount}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{supplycount}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
  +
{{!}}-
 
  +
-->
 
{{#if:{{{itemcapacity|}}}|
 
{{#if:{{{itemcapacity|}}}|
 
{{!}} style="width:40%;font-size:105%;" {{!}} Storage Capacity
 
{{!}} style="width:40%;font-size:105%;" {{!}} Storage Capacity
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{itemcapacity}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{itemcapacity}}}
 
{{!}}-
 
{{!}}-
|}}
+
|}}<!--
}}<!--
 
   
 
-->{{#if: {{{noreq|}}}||
 
-->{{#if: {{{noreq|}}}||
Line 172: Line 201:
 
-->| yes = [[File:Checkmark True.png|16px]]| Yes = [[File:Checkmark True.png|16px]]<!--
 
-->| yes = [[File:Checkmark True.png|16px]]| Yes = [[File:Checkmark True.png|16px]]<!--
 
-->| no = [[File:Checkmark False.png|16px]]| No = [[File:Checkmark False.png|16px]]}}<!--
 
-->| no = [[File:Checkmark False.png|16px]]| No = [[File:Checkmark False.png|16px]]}}<!--
-->|[[File:Checkmark False.png|16px]]}}
+
-->| [[File:Checkmark False.png|16px]]}}
 
{{!}}-
 
{{!}}-
 
{{!}} style="width:40%;font-size:105%;" {{!}} Deconstructible?
 
{{!}} style="width:40%;font-size:105%;" {{!}} Deconstructible?
Line 178: Line 207:
 
-->| yes = [[File:Checkmark True.png|16px]]| Yes = [[File:Checkmark True.png|16px]]<!--
 
-->| yes = [[File:Checkmark True.png|16px]]| Yes = [[File:Checkmark True.png|16px]]<!--
 
-->| no = [[File:Checkmark False.png|16px]]| No = [[File:Checkmark False.png|16px]]}}<!--
 
-->| no = [[File:Checkmark False.png|16px]]| No = [[File:Checkmark False.png|16px]]}}<!--
-->|[[File:Checkmark False.png|16px]]}}
+
-->| [[File:Checkmark False.png|16px]]}}
 
{{!}}-
 
{{!}}-
  +
<!--
   
  +
-->
 
{{#if:{{{fabricatortime|}}}|
 
{{#if:{{{fabricatortime|}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} style="width:40%;font-size:105%;" {{!}} Crafting Time
 
{{!}} style="width:40%;font-size:105%;" {{!}} Crafting Time
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fabricatortime}}}|}}
+
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{fabricatortime}}}|}}<!--
   
  +
-->
 
{{#if:{{{deconstructortime|}}}|
 
{{#if:{{{deconstructortime|}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} style="width:40%;font-size:105%;" {{!}} Deconstructing Time
 
{{!}} style="width:40%;font-size:105%;" {{!}} Deconstructing Time
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{deconstructortime}}}|}}
+
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{deconstructortime}}}|}}<!--
   
  +
-->
{{#ifeq:{{{fabricator|}}}|Yes|
+
{{#ifeq:{{{fabricator|}}}|Yes|<!--
   
  +
-->
 
{{#if:{{{fabricatorskill|}}}|
 
{{#if:{{{fabricatorskill|}}}|
 
{{!}}-
 
{{!}}-
Line 202: Line 236:
 
-->| weapons = [[Skills#Weapons|Weapons]]<!--
 
-->| weapons = [[Skills#Weapons|Weapons]]<!--
 
-->| {{{fabricatorskill}}}}}<!--
 
-->| {{{fabricatorskill}}}}}<!--
-->{{space}}{{{fabricatorskilllevel}}}
+
-->{{space}}{{{fabricatorskilllevel}}}|}}<!--
|}}
 
   
  +
-->
 
{{#if: {{{fabricatormaterials|}}}|
 
{{#if: {{{fabricatormaterials|}}}|
 
{{!}}-
 
{{!}}-
Line 212: Line 246:
 
{{!}}-
 
{{!}}-
 
{{!}} style="width:40%;font-size:105%;" {{!}} [[Fabricator]] Materials
 
{{!}} style="width:40%;font-size:105%;" {{!}} [[Fabricator]] Materials
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} N/A}}
+
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} N/A}}<!--
   
  +
-->
 
{{#if: {{{medicalfabricatormaterials|}}}|
 
{{#if: {{{medicalfabricatormaterials|}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} style="width:40%;font-size:105%;" {{!}} [[Medical Fabricator]] Materials
 
{{!}} style="width:40%;font-size:105%;" {{!}} [[Medical Fabricator]] Materials
 
{{!}} colspan="3" {{!}} {{{medicalfabricatormaterials}}}|}}
 
{{!}} colspan="3" {{!}} {{{medicalfabricatormaterials}}}|}}
|}}
+
|}}|}}<!--
|}}
 
   
  +
-->
 
{{#ifeq: {{{deconstructor|}}}|Yes|
 
{{#ifeq: {{{deconstructor|}}}|Yes|
 
{{!}}-
 
{{!}}-
Line 226: Line 261:
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{deconstructormaterials|N/A}}}
 
{{!}} style="width:60%;text-align:center;" colspan="2" {{!}} {{{deconstructormaterials|N/A}}}
 
|}}
 
|}}
|}}
+
}}
|}<!--
+
|}
{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}}|weapon=Weapons|tool=Tools|gear=Gear|medical=Medical Items|electrical=Electrical Components|container=Containers|misc=Misc Items|vehicle|exotic|#default=Items}}]]}}</includeonly>
+
{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}}|weapon=Weapons|tool=Tools|gear=Gear|medical=Medical Items|electrical=Electrical Components|container=Containers|misc=Misc Items|vehicle|exotic|#default=Items}}]]}}</includeonly><noinclude>{{clr}}{{doc}}</noinclude>
 
<noinclude>
 
{{clr}}
 
{{doc}}
 
</noinclude>
 

Revision as of 14:11, 8 December 2020

Template-info Documentation
Wrench
Wrench
Stats
Type Tool
Store
OutpostOutpost Buy Sell
Habitation OutpostHabitation 10 mk 8 mk
ColonyColony 9 mk 7 mk
Research OutpostResearch 12 mk 10 mk
Military OutpostMilitary 12 mk 10 mk
Mining OutpostMining 10 mk 8 mk
Crafting
Constructible? Checkmark True
Deconstructible? Checkmark True
Crafting Time 10
Deconstructing Time 10
Fabricator Materials IronIron
Deconstructor Materials IronIron

Basic

Field Note Example Default
name Item name Wrench {{PAGENAME}}
image Image of item Wrench.png {{PAGENAME}}.png
imagewidth Forced image width (px) 250 180
caption Caption under image Inventory icon
image2 Image of item Wrench.png
imagewidth2 Forced image width (px) 90 180
caption2 Caption under image Inventory icon

Stats

Field Note Example Expected Default
nostats Skips Stats section if true yes whitespace/empty or string
type Sets category of item depending on the type weapon weapon/tool/gear/chemical/electrical/container/ammo/fuel/misc/exotic/vehicle General Item
ammo Ammo used by an item Revolver RoundRevolver Round item
ammocost Cost of ammo 100 Marks number
ammocount Amount of ammo a item can hold 4 number
fuel Fuel used by item Revolver RoundRevolver Round item
fuelcost Cost of fuel 100 Marks number
fuelcount Amount of fuel an item can hold 4 number
payload Payload used by an item Revolver RoundRevolver Round item
payloadcost Cost of payload 100 Marks number
payloadcount Amount of payloads an item can hold 1 number
supplyname Name of item that fits no other field Food text
supplycost Cost of supply item 100 Marks number
supplycount Amount of supply items an item can hold 4 number
itemcapacity Amount of generic items a storage item can hold (for containers) 4 number

Store

Field Note Example Expected
nostore Skips Store section if true yes whitespace/empty or string
unbuyable If item can't be bought anywhere true
  • whitespace/empty - Both sections appear
  • true - Hides Buy column
unsellable If item can't be sold anywhere true
  • whitespace/empty - Both sections appear
  • true - Hides Sell column
baseprice Base price of item 200 number
outpostmultiplier Price multiplier of item at the Habitation Outpost 1.25 number
outpostminavailable Minimum amout of stock available at the Habitation Outpost 3 number
outpostunbuyable If item is unbuyable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets buy price to N/A
  • all - Hides buy price
outpostunsellable If item is unsellable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets sell price to N/A
  • all - Hides sell price
citymultiplier Price multiplier of item at a Colony 1.25 number
cityminavailable Minimum amout of stock available at a Colony 3 number
cityunbuyable If item is unbuyable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets buy price to N/A
  • all - Hides buy price
cityunsellable If item is unsellable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets sell price to N/A
  • all - Hides sell price
researchmultiplier Price multiplier of item at the Research Outpost 1.25 number
researchminavailable Minimum amout of stock available at the Research Outpost 3 number
researchunbuyable If item is unbuyable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets buy price to N/A
  • all - Hides buy price
researchunsellable If item is unsellable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets sell price to N/A
  • all - Hides sell price
militarymultiplier Price multiplier of item at the Military Outpost 1.25 number
militaryminavailable Minimum amout of stock available at the Military Outpost 3 number
militaryunbuyable If item is unbuyable only in this outpost, or all outposts true
  • whitespace/empty - Both prices appear
  • true - Sets buy price to N/A
  • all - Hides buy price
militaryunsellable If item is unsellable only in this outpost, or all outposts all
  • whitespace/empty - Both prices appear
  • true - Sets sell price to N/A
  • all - Hides sell price
minemultiplier Price multiplier of item at the Mining Outpost 1.25 number
mineminavailable Minimum amout of stock available at the Mining Outpost 3 number
mineunbuyable If item is unbuyable only in this outpost, or all outposts all
  • whitespace/empty - Both prices appear
  • true - Sets buy price to N/A
  • all - Hides buy price
mineunsellable If item is unsellable only in this outpost, or all outposts all
  • whitespace/empty - Both prices appear
  • true - Sets sell price to N/A
  • all - Hides sell price

Skill Requirements

Field Note Example Expected
noreq Skips Skill Requirements section if true yes whitespace/empty or string
weapons Weapons skill required to handle item without penalty 10 number
mechanical Mechanical skill required to handle item without penalty 10 number
electrical Electrical skill required to handle item without penalty 10 number
medical Medical skill required to handle item without penalty 10 number
handicap Penalty for not having the correct level for this item 10 number

Crafting

Field Note Example Expected
nocraft Skips Crafting section if true yes whitespace/empty or string
fabricator Is the item constructible yes yes/no
fabricatortime Time required to craft item (seconds) 10 number
fabricatorskill Skill required to craft item medical mechanical/electrical/medical/weapons
fabricatorskilllevel Skill level required to craft item 20 number
fabricatormaterials Items required to craft item IronIron item
deconstructor Is the item deconstructible yes yes/no
deconstructortime Time required to deconstruct item (seconds) 10 number
deconstructormaterials Items recieved after deconstructing IronIron item
medicalfabricatormaterials Items required to craft item Stabilozine iconStabilozine item

Other

Field Note Example Expected
nocat Doesn't display category if true yes whitespace/empty or string