Template:Installations infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
BTGamepedia>Telyak
m (Testing.)
(New stuff, whole thing rewritten in generic html and mediawiki)
Line 1: Line 1:
{| class="infobox"
<table class="infobox">
|-
<tr><th class="infobox2" colspan="2" style="margin:2px;">{{{name|{{PAGENAME}}}}}</th></tr>
! class="infobox2" colspan="2" | {{{name|{{PAGENAME}}}}}
<tr><td colspan="2" style="padding:0.5em;text-align:center !important;">{{ImageHandler
|-
| file  = {{#if: {{{image|}}} | {{{image}}} | {{PAGENAME}}.png }}
| colspan="2" style="padding:0.5em;text-align:center !important;" | {{ImageHandler
| file  = {{#if: {{{image|}}} | {{{image}}} | {{PAGENAMEE}}.png }}
| imagewidth  = {{#if: {{{imagewidth|}}} | {{{imagewidth}}}px | }}
| imagewidth  = {{#if: {{{imagewidth|}}} | {{{imagewidth}}}px | }}
}}
}}
Line 13: Line 11:
[[File:{{{image3|}}}|{{{imagewidth3|180}}}px]] |}}{{#if: {{{caption3|}}} |<br />
[[File:{{{image3|}}}|{{{imagewidth3|180}}}px]] |}}{{#if: {{{caption3|}}} |<br />
<small>{{{caption3}}}</small>|}}
<small>{{{caption3}}}</small>|}}
|-
</td></tr>
! class="infobox3" colspan="2" | Stats
<tr><th class="infobox3" colspan="2" style="margin:2px;">Stats</th></tr>
|-
{{#if: {{{category|}}}|<tr><td style="width:45%;font-size:105%;">Category</td><td style="width:55%;">[[:Category:Installations|{{{category|}}} ]]</td></tr>|}}
| style="width:45%;font-size:105%;" | Power Consumption
{{#if: {{{powerconsumption|}}}|<tr><td style="width:45%;font-size:105%;">Power Consumption</td><td style="width:55%;"><span class="explain" title="Default value, can be changed in the Submarine Editor">{{{powerconsumption|}}} kW *</span></tr>|}}
| style="width:55%;" | {{{powerconsumption}}}{{#if: {{{cost|}}} |<br />
{{#if: {{{itemslots|}}}|<tr><th style="width:45%;font-size:105%;">Item Slots</th><th style="width:55%;">{{{itemslots|}}}</th></tr>|}}
{{!}}-
{{#if: {{{powercapacity|}}}|<tr><th style="width:45%;font-size:105%;">Power Capacity</th><th style="width:55%;"><span class="explain" title="Default value, can be changed in the Submarine Editor">{{{powercapacity|}}} kW *</span></th></tr>|}}
{{!}} style="font-size:105%;" {{!}} Cost
{{#if: {{{maxoutput|}}}|<tr><th style="width:45%;font-size:105%;">Max Power Output</th><th style="width:55%;"><span class="explain" title="Default value, can be changed in the Submarine Editor">{{{maxoutput|}}} kW *</span></th></tr>|}}
{{!}} {{{cost}}} Credits|}}
{{#if: {{{maxrechargespeed|}}}|<tr><th style="width:45%;font-size:105%;">Max Recharge Speed</th><th style="width:55%;">{{{maxrechargespeed|}}} kW *</span></th></tr>|}}
|-
{{#if: {{{maxforce|}}}|<tr><th style="width:45%;font-size:105%;">Max Thrust</th><th style="width:55%;"><span class="explain" title="Default value, can be changed in the Submarine Editor">{{{maxforce|}}} *</span></th></tr>|}}
{{#if: {{{repair|}}} |! class="infobox3" colspan="2" {{!}} Repair Requirements{{#switch: {{{repair}}} |mechanical=<br />
{{#if: {{{maxflow|}}}|<tr><th style="width:45%;font-size:105%;">Max Pump Speed</th><th style="width:55%;">{{{maxflow|}}}</th></tr>|}}
{{!}}-
{{#if: {{{o2generatedamount|}}}|<tr><th style="width:45%;font-size:105%;">Oxygen Amount Generated</th><th style="width:55%;"><span class="explain" title="Default value, can be changed in the Submarine Editor">{{{o2generatedamount|}}} *</span></th></tr>|}}
{{!}} colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;" {{!}} '''[[Maintenance#Mechanical Repairs|Mechanical Repairs]]'''{{#if: {{{construction|}}} | <br />
{{#if: {{{repair|}}}|<tr><th class="infobox3" colspan="2">Repair Requirements</th></tr>||}}
{{!}}-
{{#switch: {{{repair|}}}
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Construction|Construction]]'''
|electrical={{#if: {{{electrical engineering|}}}|<tr><td colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;">[[Maintenance#Electrical Repairs|Electrical Repairs]]</td></tr>
{{!}} style="width:45%;" {{!}} '''{{{construction}}}%'''|}}{{#if: {{{repairitems|}}} | <br />
<tr><td style="width:55%;font-size:105%;">[[Skills#Electrical Engineering|Electrical Engineering]]</td><td style="width:45%;">{{{electrical engineering|}}}%</td></tr>
{{!}}-
{{#if: {{{repairitems|}}}|<tr><td style="width:55%;font-size:105%;">Items Needed</td><td style="width:45%;">{{{repairitems|}}}</td></tr>|}}|}}
{{!}} style="width:55%;font-size:105%;" {{!}} '''Items Needed'''
|mechanical={{#if: {{{construction|}}}|<tr><td colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;">[[Maintenance#Mechanical Repairs|Mechanical Repairs]]</td></tr>
{{!}} style="width:45%;" {{!}} '''{{{repairitems}}}'''
<tr><td style="width:55%;font-size:105%;">[[Skills#Construction|Construction]]</td><td style="width:45%;">{{{construction|}}}%</td></tr>
|}}|electrical=<br />
{{#if: {{{repairitems|}}}|<tr><td style="width:55%;font-size:105%;">Items Needed</td><td style="width:45%;">{{{repairitems|}}}</td></tr>|}}|}}
{{!}}-
|both=<tr><td colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;">[[Maintenance#Electrical Repairs|Electrical Repairs]]</td></tr>
{{!}} colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;" {{!}} '''[[Maintenance#Electrical Repairs|Electrical Repairs]]'''{{#if: {{{electrical engineering|}}} | <br />
<tr><td style="width:55%;font-size:105%;">[[Skills#Electrical Engineering|Electrical Engineering]]</td><td style="width:45%;">{{{electrical engineering|}}}%</td></tr>
{{!}}-
{{#if: {{{electricalitems|}}}|<tr><td style="width:55%;font-size:105%;">Items Needed</td><td style="width:45%;">{{{electricalitems|}}}</td></tr>|}}
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Electrical Engineering|Electrical Engineering]]'''
<tr><td colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;">[[Maintenance#Mechanical Repairs|Mechanical Repairs]]</td></tr>
{{!}} style="width:45%;" {{!}} '''{{{electrical engineering}}}%'''
<tr><td style="width:55%;font-size:105%;">[[Skills#Construction|Construction]]</td><td style="width:45%;">{{{construction|}}}%</td></tr>
|}}{{#if: {{{repairitems|}}} | <br />
{{#if: {{{mechanicalitems|}}}|<tr><td style="width:55%;font-size:105%;">Items Needed</td><td style="width:45%;">{{{mechanicalitems|}}}</td></tr>|}}}}
{{!}}-
</table>
{{!}} style="width:55%;font-size:105%;" {{!}} '''Items Needed'''
{{!}} style="width:45%;" {{!}} '''{{{repairitems}}}'''
|}}|both=<br />
{{!}}-
{{!}} colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;" {{!}} '''[[Maintenance#Mechanical Repairs|Mechanical Repairs]]'''{{#if: {{{construction|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Construction|Construction]]'''
{{!}} style="width:45%;" {{!}} '''{{{construction}}}%'''|}}{{#if: {{{mechanicalitems|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''Items Needed'''
{{!}} style="width:45%;" {{!}} '''{{{mechanicalitems}}}'''|}}
{{!}}-
{{!}} colspan="2" style="text-align:center;border-bottom:1px dotted #aaa;" {{!}} '''[[Maintenance#Electrical Repairs|Electrical Repairs]]'''{{#if: {{{electrical engineering|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Electrical Engineering|Electrical Engineering]]'''
{{!}} style="width:45%;" {{!}} '''{{{electrical engineering}}}%'''|}}{{#if: {{{electricalitems|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''Items Needed'''
{{!}} style="width:45%;" {{!}} '''{{{electricalitems}}}'''
|}}
}}
|}}
|}
<includeonly>{{#if: {{{nocat|}}} | |[[Category:Installations]]}}</includeonly>
<includeonly>{{#if: {{{nocat|}}} | |[[Category:Installations]]}}</includeonly>
<noinclude>{{clr}}
<noinclude>{{clr}}
{{doc}}</noinclude>
{{doc}}</noinclude>

Revision as of 22:01, 8 December 2018






Installations infobox
Click to upload a new image.Dummy link
Stats
Documentation

Basic

Field Note Example Expected Default
name The name of the installation. Fabricator {{PAGENAME}}
image An image of the installation. Fabricator.png {{{name|{{PAGENAME}}}}}.png
imagewidth Forces the width of the image to the specified value. 250 180
identifier Internal identifier of the item from game files (optional). fabricator
description In-game description. A machine capable of manufacturing a wide range of items out of basic raw materials.
category The category of the item, as defined in XML. Machine Structure, Decorative, Machine, Medical, Weapon, Diving, Equipment, Fuel, Electrical, Material, Alien, Wrecked, Legacy, Misc Misc
category2 The second category of the item, if applicable. Weapon Structure, Decorative, Machine, Medical, Weapon, Diving, Equipment, Fuel, Electrical, Material, Alien, Wrecked, Legacy, Misc
subcategory The subcategory of the item, as defined in XML. Labels Thalamus, Abandoned Outposts, Abandoned Outpost (Human), Abandoned Outpost (Monster), Exterior submarine walls, Exterior shuttle pieces, Labels, Background wall, Outpost
tags The tags of the item, as defined in XML. fabricator,donttakeitems,dontsellitems CSV list of the item's tags
nocat Removes page categories. yes yes

Statistics

Field Note Example Expected Default
powerconsumption The power consumption of the installation (in kW). 510 Numeric value
reload The reload time of the turret, as defined in XML. 5 Numeric value
itemslots The number of item slots the installation has. 6 Numeric value
powercapacity The amount of power that can be stored in the installation (in kWm). 100 Numeric value
maxoutput The maximum amount of power that the installation can output (in kW). 50 Numeric value
maxrechargespeed The maximum recharge speed of the installation (in kW). 50 Numeric value
maxforce The maximum amount of thrust that the installation can produce. 1000 Numeric value
maxflow The maximum rate of water intake/outtake that the installation can provide. 250 Numeric value
o2generatedamount The amount of oxygen generated by the installation. 5000 Numeric value

Repairable

Field Note Example Expected Default
repairtype The type of repair the installation requires. mechanical Mechanical, Electrical
repairskill The level of skill required for repairs. 40 Numeric value





Fabricator
Click to upload a new image.Dummy link
Stats
CategoryMachine
Power Consumption10 + 500 kW *
Item Slots5 input slots and 1 output slot


The example seen to the right is defined as follows:

{{Installations infobox
| name        = Fabricator
| imagewidth  = 100
| identifier  = fabricator
| description = A machine capable of manufacturing a wide range of items out of basic raw materials.
| category    = Machine
| tags        = fabricator,donttakeitems,dontsellitems
| nocat       = yes

| powerconsumption = <span class="explain" title="Lights">10</span> + <span class="explain" title="Fabrication">500</span>
| itemslots        = 5 input slots and 1 output slot

| repairtype  = Mechanical
| repairskill = 55
}}