Template:Recipes/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 16: Line 16:
|-
|-
|'''exclude'''||excludes a string from the query. This is useful in case the current item's name is also contained in another item's name, such as "Diving Suit" is contained in "Combat Diving Suit".
|'''exclude'''||excludes a string from the query. This is useful in case the current item's name is also contained in another item's name, such as "Diving Suit" is contained in "Combat Diving Suit".
|-
|'''exclude2'''||same as above, useful if one exclusion isn't enough.
|}
|}
==Examples==
==Examples==

Revision as of 01:03, 20 November 2021

Documentation

This template is used to display a list of items, and their crafting requirements / deconstruction yields.

Syntax

{{ Recipes | fabricator OR medicalfabricator OR deconstructor | width = <customwidth> (default 70) | everything = yes | material = <Custom Material> | exclude = <Term to exclude>}}

everything If this is set to yes (or any non-null value), then all the items are displayed. This is meant to be used on the main fabricator/deconstructor pages for example. For individual pages, this parameter shouldn't be specified.
fabricator displays the list of items that can be fabricated in the standard fabricator with the current item (or all items if "everything=yes" is set).
medicalfabricator displays the list of items that can be fabricated in the medical fabricator with the current item (or all items if "everything=yes" is set).
deconstructor displays the list of items that can deconstructed into the current item (or all items if "everything=yes" is set), AND that cannot be crafted (since those recipes are listed in the previous tables already).
material sets a custom material to be listed. If omitted, it will default to the page name. Note that all items which have this term in their name will be listed, so the "exclude" parameter may be necessary as well.
exclude excludes a string from the query. This is useful in case the current item's name is also contained in another item's name, such as "Diving Suit" is contained in "Combat Diving Suit".
exclude2 same as above, useful if one exclusion isn't enough.

Examples

In the following examples, "material" is always specified because it would otherwise default to the page name. On an item's page, it can be omitted.

{{Recipes|fabricator|material=Diving Suit|exclude=Combat}}
gives:

Fabricator Items
Crafting Materials Crafting Talent, Skill, Time Item Deconstruction Time Deconstruction Yield
Diving Suit
Titanium-Aluminum Alloy (x2)
Rubber
Mechanical 60
  45

Abyss Diving Suit
30 Titanium-Aluminum Alloy (x3)
Rubber
Diving Suit
Ballistic Fiber
Titanium-Aluminum Alloy
Rubber
(produces 1 items)
Mechanical 60
  45

Combat Diving Suit
30 Ballistic Fiber
Titanium-Aluminum Alloy x2
Rubber x2
(for 1 deconstructed item)


{{Recipes|fabricator|material=Diving Suit}}
gives:

Fabricator Items
Crafting Materials Crafting Talent, Skill, Time Item Deconstruction Time Deconstruction Yield
Diving Suit
Titanium-Aluminum Alloy (x2)
Rubber
Mechanical 60
  45

Abyss Diving Suit
30 Titanium-Aluminum Alloy (x3)
Rubber
Diving Suit
Ballistic Fiber
Titanium-Aluminum Alloy
Rubber
(produces 1 items)
Mechanical 60
  45

Combat Diving Suit
30 Ballistic Fiber
Titanium-Aluminum Alloy x2
Rubber x2
(for 1 deconstructed item)


{{Recipes|deconstructor|material=Plastic|width=40}}
gives:

         
Deconstructor Items
Crafting Materials Crafting Talent, Skill, Time Item Deconstruction Time Deconstruction Yield
Iron (x2)
Sonar Beacon
Weapons 25
  20

Depth Decoy Shell
10 Iron
Copper
Plastic (x2)
FPGA Circuit
Tin
Silicon
Electrical 50
  30

Text Display
10 Copper
Tin
Silicon
Plastic
FPGA Circuit
Tin
Silicon
Electrical 50
  30

Terminal
10 Plastic
Copper
Tin
Silicon
FPGA Circuit
Tin
Electrical 30
  10

Alarm Buzzer
10 Plastic
Copper
Tin
FPGA Circuit
Steel Bar
Electrical 30
  10

Emergency Siren
10 Plastic
Copper
Steel Bar
FPGA Circuit
Silicon
Electrical 30
  10

Water Detector
10 Plastic
Copper
Silicon
FPGA Circuit
Silicon
Electrical 30
  10

Smoke Detector
10 Plastic
Copper
Silicon
FPGA Circuit
Silicon
Electrical 30
  10

Oxygen Detector
10 Plastic
Copper
Silicon
FPGA Circuit
Silicon
Electrical 30
  10

Motion Detector
10 Plastic
Copper
Silicon
FPGA Circuit
Lead (x2)
Titanium-Aluminum Alloy (x3)
Mechanical 65
Talent: Iron Storm
70

Scrap Cannon
10 Copper
Plastic
Lead
Titanium-Aluminum Alloy (x2)
FPGA Circuit
Lead (x2)
Titanium-Aluminum Alloy (x2)
Fulgurium Chunk (x2)
Electrical 65
Talent: Nuclear Option
70

Rapid Fissile Accelerator
10 Copper
Plastic
Lead
Titanium-Aluminum Alloy
Fulgurium Chunk
Dementonite Cluster x2
Steel Bar x2
FPGA Circuit
Mechanical 50
Talent: Let it Drain
30

Portable Pump
20 Copper
Plastic
Dementonite Cluster
Steel Bar
Aluminum x2
FPGA Circuit
Tin x2
Mechanical 30
  30

Underwater Scooter
20 Aluminum
Copper
Tin
Plastic

Radio Jammer
15 Copper (x2)
Plastic (x2)

Alien Flare
10 Flash Powder (>90%)
Plastic (>90%)

Prototype Steam Cannon
10 Steel Bar
Plastic

Machine Pistol
10 Steel Bar
Plastic

Deadeye Carbine
10 Steel Bar
Plastic


{{Recipes|deconstructor|material=Titanium|width=40}}
gives:

           
Deconstructor Items
Crafting Materials Crafting Talent, Skill, Time Item Deconstruction Time Deconstruction Yield
Combat Diving Suit
Rubber
(produces 1 items)
Mechanical 20
Talent: Boarding Party
45

Slipsuit
30 Ballistic Fiber
Titanium-Aluminum Alloy (x2)
Rubber (x2)
(for 1 deconstructed item)
Combat Diving Suit
Lead
Physicorium Bar
(produces 1 items)
Electrical 60
Talent: Ph.D in Nuclear Physics
80

PUCS
45 Titanium-Aluminum Alloy (x2)
Rubber
Lead
Physicorium Bar
(for 1 deconstructed item)

Grenade Launcher
10 Steel Bar
Titanium-Aluminum Alloy

Boom Stick
10 Steel Bar
Titanium-Aluminum Alloy

Ilmenite
5 1 Titanium

Titanite
5 3 Titanium
1 Iron

Broken Diving Suit
15 One of the following:
Titanium
Rubber
Aluminum
Titanium-Aluminum Alloy

Scrap
10 Two of the following:
Iron
Copper
Lead
Steel Bar
Aluminum
Carbon
Rubber
Titanium-Aluminum Alloy
Thorium


{{Recipes|deconstructor|material=Titanium|exclude=Alloy|width=40}}
gives:

   
Deconstructor Items
Crafting Materials Crafting Talent, Skill, Time Item Deconstruction Time Deconstruction Yield

Ilmenite
5 1 Titanium

Titanite
5 3 Titanium
1 Iron


This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.