Template:Submarines Infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
m (Added cargo capacity for ships.)
mNo edit summary
 
(86 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="infobox responsive-table" align=right
{{doc}}
|-
{{#cargo_declare:_table=Submarines
! class="infobox2 responsive-table" colspan="1" | {{{name|{{PAGENAME}}}}}
| name = String
|-
| image = File
| colspan="1" style="width:100%;padding:0.5em;text-align:center" | {{#if: {{{customtext|}}} | {{{customtext}}} | {{ImageHandler
 
| file = {{#if: {{{image|}}} | {{{image}}} | {{PAGENAME}}.png }}
| class = String (allowed values=Undefined,Scout,Attack,Transport,Deep diver,Shuttle)
| imagewidth = {{#if: {{{imagewidth|}}} | {{{imagewidth}}}px | 350px}}
| type = String (allowed values=Wreck,Beacon Station,Pirate)
| drone = Wikitext string
| mainsub = Wikitext string
| price = Integer
| tier = Integer (allowed values=1,2,3)
| crew = String
| experience = String (allowed values=Beginner,Intermediate,Experienced)
| dimensions = String
| volume = Integer
 
| horizontalspeed = Float
| descentspeed = Float
 
| fabricator = Boolean
| medfabricator = Boolean
| deconstructor = Boolean
| researchstation = Boolean
| cargo = Integer
 
| hardpoints = Integer
| coilguns = Integer
| chainguns = Integer
| pulselasers = Integer
| largehardpoints = Integer
| doublecoilguns = Integer
| flakcannons = Integer
| railguns = Integer
| edcs = Integer
| depthchargetubes = Integer
 
| fuelrate = Float
| poweroutput = Integer
| meltdowndelay = Integer
| firedelay = Integer
| overloadvoltage = Float
}}
}}
|}}
<includeonly><onlyinclude>{| class="infobox responsive-table" align=right
! class="infobox2 responsive-table" colspan="2" | {{{name|{{PAGENAME}}}}}
|-
|-
|
| colspan="2" style="padding:0.5em; text-align:center" | {{ImageHandler|file={{{image|{{PAGENAME}}.png}}}|imagewidth=360px}}
{| style="width:100%"
|-
|-
! class="infobox3 responsive-table" colspan="2" | General Information
! class="infobox3 responsive-table" colspan="2" | General Information
|-
|-
| style="width:50%;" class="roundytl"| Class
| style="width:50%" {{#if:{{{drone|}}}{{{mainsub|}}}||rowspan="2"}} | '''{{#if:{{{type|}}}|{{#ifeq:{{{type|}}}|Submarine|Class|Type}}|Class}}'''{{#if:{{{drone|{{{mainsub|}}}}}}|<nowiki>: </nowiki>|<br>}}{{#if:{{{type|}}}|{{#ifeq:{{{type|}}}|Submarine|{{{class|<span style="color:#808080">Undefined</span>}}}|{{{type|}}}}}|{{{class|}}}}}
{{{class|N/A}}}
{{#switch:{{{type|}}}|Pirate|Wreck|Beacon Station=|#default={{!}} style="width:50%" {{!}} '''Price:''' {{formatnum:{{{price|1000}}}}} mk
| style="width:50%;" class="roundytr"| Price
{{!}}-
{{{price|N/A}}}
{{#if:{{{drone|}}}|&nbsp;
|-
{{!}}'''Drone:''' {{{drone}}}}}<!--
| style="width:50%;"| Recommended Crew
-->{{#if:{{{mainsub|}}}|&nbsp;
{{{crew|N/A}}}
{{!}}'''Main Submarine:''' {{{mainsub}}}}}
| style="width:50%;"| Recommended Experience
{{!}}'''Tier:''' {{{tier|1}}}
{{{experience|N/A}}}
{{!}}-
|-
{{!}} style="width:50%" {{!}} '''Crew Size'''<br>{{{crew|<span style="color:#808080">N/A</span>}}}
| style="width:50%;"| Cargo Capacity
{{!}} style="width:50%" {{!}} '''Experience'''<br>{{{experience|<span style="color:#808080">N/A</span>}}}
{{{cargo|N/A}}}
{{!}}-}}
| style="width:50%;" class="roundybl"| Dimensions
| style="width:50%" | '''Dimensions'''{{#switch:{{{type|}}}|Pirate|Wreck|Beacon Station=<nowiki>: </nowiki>|#default=<br>}}{{{dimensions|<span style="color:#808080">N/A</span>}}} m
{{{dimensions|N/A}}}
{{#switch:{{{type|}}}|Pirate|Wreck|Beacon Station={{!}}-}}
|-
| style="width:50%" | '''Hull Volume'''{{#switch:{{{type|}}}|Pirate|Wreck|Beacon Station=<nowiki>: </nowiki>|#default=<br>}}{{formatnum:{{{volume|<span style="color:#808080">N/A</span>}}}}} cm<sup>2</sup>
| style="width:50%;" class="roundybr"| Hull Volume
{{#switch:{{{type|}}}|Wreck|Beacon Station=|#default={{!}}-
{{{volume|N/A}}}
! class="infobox3 responsive-table" colspan="2" {{!}} <span class="explain" title="Values obtained with no upgrades, Helm 50 and manual steering.">Mobility</span>
{{!}}-
{{!}} style="width:50%" {{!}} '''Max Horizontal Speed'''<br>{{{horizontalspeed|<span style="color:#808080">N/A</span>}}} km/h
{{!}} style="width:50%" {{!}} '''Max Descent Speed'''<br>{{{descentspeed|<span style="color:#808080">N/A</span>}}} km/h}}
{{#switch:{{{type|}}}|Wreck|Beacon Station=|#default={{!}}-
! class="infobox3 responsive-table" colspan="2" {{!}} Fabrication{{#ifeq:{{{type|}}}|Pirate||&nbsp;& Storage}}
{{!}}-
{{!}} style="width:50%" {{!}} '''[[Fabricator]]'''<br>{{#ifeq:{{{fabricator|}}}|yes|Yes|<span style="color:#808080">No</span>}}
{{!}} style="width:50%" {{!}} '''[[Deconstructor]]'''<br>{{#ifeq:{{{deconstructor|}}}|yes|Yes|<span style="color:#808080">No</span>}}
{{!}}-
{{!}} style="width:50%" {{!}} '''[[Medical Fabricator]]'''<br>{{#ifeq:{{{medfabricator|}}}|yes|Yes|<span style="color:#808080">No</span>}}
{{!}} style="width:50%" {{!}} '''[[Research Station]]'''<br>{{#ifeq:{{{researchstation|}}}|yes|Yes|<span style="color:#808080">No</span>}}
{{#ifeq:{{{type|}}}|Pirate||{{!}}-
{{!}} style="text-align:center" colspan="2" {{!}} '''Cargo Capacity'''<br>{{#ifeq:{{{cargo|0}}}|0|<span style="color:#808080">0</span>|{{{cargo}}}}} [[Crates]]}}}}
{{#ifeq:{{{type|}}}|Beacon Station||{{!}}-
! class="infobox3 responsive-table" colspan="2" {{!}} Weaponry
{{#switch:{{{type|}}}|Pirate|Wreck=|#default={{!}}-
{{!}} style="width:50%" {{!}} '''[[Turret Hardpoint]]s'''<br>{{#ifeq:{{{hardpoints|0}}}|0|<span style="color:#808080">None</span>|{{{hardpoints}}}}}
{{!}} style="width:50%" {{!}} '''[[Large Turret Hardpoint]]s'''<br>{{#ifeq:{{{largehardpoints|0}}}|0|<span style="color:#808080">None</span>|{{{largehardpoints}}}}}}}
{{!}}-
{{!}} style="width:50%" {{!}} '''[[Coilgun]]s'''<br>{{#ifeq:{{{coilguns|0}}}|0|<span style="color:#808080">None</span>|{{{coilguns}}}}}
{{!}} style="width:50%" {{!}} '''[[Double Coilgun]]s'''<br>{{#ifeq:{{{doublecoilguns|0}}}|0|<span style="color:#808080">None</span>|{{{doublecoilguns}}}}}
{{!}}-
{{!}} style="width:50%" {{!}} '''[[Chaingun]]s'''<br>{{#ifeq:{{{chainguns|0}}}|0|<span style="color:#808080">None</span>|{{{chainguns}}}}}
{{!}} style="width:50%" {{!}} '''[[Flak Cannon]]s'''<br>{{#ifeq:{{{flakcannons|0}}}|0|<span style="color:#808080">None</span>|{{{flakcannons}}}}}
{{!}}-
{{!}} style="width:50%" {{!}} '''[[Pulse Laser]]s'''<br>{{#ifeq:{{{pulselasers|0}}}|0|<span style="color:#808080">None</span>|{{{pulselasers}}}}}
{{!}} style="width:50%" {{!}} '''[[Railgun]]s'''<br>{{#ifeq:{{{railguns|0}}}|0|<span style="color:#808080">None</span>|{{{railguns}}}}}
{{#switch:{{{type|}}}|Pirate|Wreck=|#default={{!}}-
{{!}} colspan="2" {{!}} '''[[Electrical Discharge Coil]]s:'''<div style="width:50%;float:right;text-align:left">{{#ifeq:{{{edcs|0}}}|0|<span style="color:#808080">None</span>|{{{edcs}}}}}</div>
{{!}}-
{{!}} colspan="2" {{!}} '''[[Depth Charge Tube]]s:'''<div style="width:50%;float:right;text-align:left">{{#ifeq:{{{depthchargetubes|0}}}|0|<span style="color:#808080">None</span>|{{{depthchargetubes}}}}}</div>}}}}
{{#switch:{{{type|}}}|Wreck=|#default={{#switch:{{{class|}}}|Shuttle=|#default={{!}}-
! class="infobox3 responsive-table" colspan="2" {{!}} [[Nuclear Reactor|Reactor]]
{{#switch:{{{type|}}}|Pirate=|#default={{!}}-
{{!}} style="width:50%;"  {{!}} '''Fuel Consumption Rate'''<br>{{{fuelrate|<span style="color:#808080">N/A</span>}}} %/s
{{!}} style="width:50%;"  {{!}} '''Max Power Output'''<br>{{formatnum:{{{poweroutput|<span style="color:#808080">N/A</span>}}}}} kW}}
{{!}}-
{{!}} style="width:50%;"  {{!}} '''Meltdown Delay'''<br>{{{meltdowndelay|<span style="color:#808080">N/A</span>}}} seconds
{{!}} style="width:50%;" {{!}} '''Fire Delay'''<br>{{{firedelay|<span style="color:#808080">N/A</span>}}} seconds}}}}
|}{{TEX|2={{#if:{{{nocat|}}}||[[Category:Submarines]]}}
{{#cargo_store:_table=Submarines
| name = {{{name|{{PAGENAME}}}}}
| image = {{{image|{{PAGENAME}}.png}}}
 
| class = {{#if:{{{type|}}}|Undefined|{{{class|Undefined}}}}}
| type = {{#if:{{{class|}}}|Submarine|{{{type|Submarine}}}}}
| drone = {{{drone|}}}
| mainsub = {{{mainsub|}}}
| price = {{{price|1000}}}
| tier = {{{tier|1}}}
| crew = {{{crew|}}}
| experience = {{{experience|Beginner}}}
| dimensions = {{{dimensions|}}}
| volume = {{{volume|}}}
 
| horizontalspeed = {{{horizontalspeed|}}}
| descentspeed = {{{descentspeed|}}}
 
| fabricator = {{#ifeq:{{{fabricator|}}}|yes|1|0}}
| medfabricator = {{#ifeq:{{{medfabricator|}}}|yes|1|0}}
| deconstructor = {{#ifeq:{{{deconstructor|}}}|yes|1|0}}
| researchstation = {{#ifeq:{{{researchstation|}}}|yes|1|0}}
| cargo = {{{cargo|0}}}
 
| hardpoints = {{{hardpoints|0}}}
| coilguns = {{{coilguns|0}}}
| chainguns = {{{chainguns|0}}}
| pulselasers = {{{pulselasers|0}}}
| largehardpoints = {{{largehardpoints|0}}}
| doublecoilguns = {{{doublecoilguns|0}}}
| flakcannons = {{{flakcannons|0}}}
| railguns = {{{railguns|0}}}
| edcs = {{{edcs|0}}}
| depthchargetubes = {{{depthchargetubes|0}}}
 
| fuelrate = {{{fuelrate|}}}
| poweroutput = {{{poweroutput|}}}
| meltdowndelay = {{{meltdowndelay|}}}
| firedelay = {{{firedelay|}}}


|-
| overloadvoltage = {{{overloadvoltage|}}}
! class="infobox3 responsive-table" colspan="2"| Mobility
}}}}
|-
</onlyinclude></includeonly>
| style="width:50%;" class="roundyleft" | <span class="explain" title="Max forward or reverse speed with no upgrades, a Helm skill of 50 and manual steering">Max Horizontal Speed</span>
{{{horizontalspeed|N/A}}}
| style="width:50%;" class="roundyright"| Max Descent Speed
{{{descentspeed|N/A}}}
|-
! class="infobox3 responsive-table" colspan="2"| Weaponry
|-
| style="width:50%;b" class="roundytl" | Coilguns
{{{coilguns|None}}}
| style="width:50%;" class="roundytr" | Railguns
{{{railguns|None}}}
|-
| style="width:50%;" class="roundybl" | Electrical Discharge Coils
{{{edc|None}}}
| style="width:50%;" class="roundybr"| Depth Charge Tubes
{{{depthcharge|None}}}
|-
! class="infobox3 responsive-table" colspan="2"| Reactor
|-
| style="width:50%;" class="roundyleft" | <span class="explain" title="How fast the condition of the contained fuel rods deteriorates per second">Fuel Consumption Rate</span>
{{{fuelrate|None}}}
| style="width:50%;" class="roundyright" | Max Power Output
{{{poweroutput|None}}}
|-
|}
|-
|}
<includeonly>{{#if: {{{nocat|}}} | |[[Category:Submarines]]}}</includeonly>
<noinclude>{{clr}}
{{doc}}</noinclude>

Latest revision as of 09:57, 11 February 2024

Documentation
| name = ...
| image = ...

General Information:
| class = The class of the submarine (Scout, Attack, Transport, Deep diver, Shuttle). Use "type" if the submarine is not one of these.
| type = The type of submarine (Pirate, Wreck, Beacon Station). Use "class" if the submarine is not one of these.
| drone = The name of the submarine's drone, if it has one.
| mainsub = The name of the drone's main submarine.
| price = ...
| tier = ...
| crew = Recommended crew sizes.
| experience = Recommended player experience.
| dimensions = Hull dimensions.
| volume = Hull volume.

Mobility:
| horizontalspeed = Maximum horizontal speed with no upgrades, Helm 50 and manual steering.
| descentspeed = Max descent speed.

Fabrication & Storage:
| fabricator = yes
| medfabricator= yes
| deconstructor = yes
| researchstation = yes
| cargo = Crate capacity.

Weaponry:
| hardpoints = ...
| coilguns = ...
| chainguns = ...
| pulselasers = ...
| largehardpoints = ...
| doublecoilguns = ...
| flakcannons = ...
| railguns = ...
| edcs = Electrical Discharge Coils.
| depthchargetubes = ...

Reactor:
| fuelrate = Reactor fuel consumption rate, as shown in the editor.
| poweroutput = Maximum power output, as shown in the editor.
| meltdowndelay = How long the temperature has to stay critical until a meltdown occurs, as shown in the editor.
| firedelay = How long the temperature has to stay critical until the reactor catches fire, as shown in the editor.

Junction Box:
| overloadvoltage = How much power has to be supplied to the grid relative to the load before the item starts taking damage, as shown in the editor.
Azimuth
General Information
Class
Scout
Price: 6,000 mk
Tier: 1
Crew Size
3 - 5
Experience
Beginner
Dimensions
34 x 8 m
Hull Volume
1,824,832 cm2
Mobility
Max Horizontal Speed
22 km/h
Max Descent Speed
12 km/h
Fabrication & Storage
Fabricator
No
Deconstructor
No
Medical Fabricator
No
Research Station
No
Cargo Capacity
8 Crates
Weaponry
Turret Hardpoints
1
Large Turret Hardpoints
None
Coilguns
2
Double Coilguns
None
Chainguns
None
Flak Cannons
None
Pulse Lasers
None
Railguns
None
Electrical Discharge Coils:
None
Depth Charge Tubes:
None
Reactor
Fuel Consumption Rate
0.2 %/s
Max Power Output
3,000 kW
Meltdown Delay
30 seconds
Fire Delay
10 seconds

This template defines the table "Submarines". View table.