Template:Installations infobox: Difference between revisions
From Official Barotrauma Wiki
BTGamepedia>Hawk7777 (Fix units of measure; *energy* is measured in joules (i.e. watt-seconds) or kilowatt-hours IRL and kilowatt-minutes in-game; *power* is in watts or kilowatts both IRL and in-game (the documentation on the template even agrees, but the rendered output was wrong)) |
(default values for power, O2 generation, engine force etc are less common than custom values on default subs, clarified tooltip) |
||
Line 20: | Line 20: | ||
{{!}}- | {{!}}- | ||
{{#if: {{{powerconsumption|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Power Consumption | {{#if: {{{powerconsumption|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Power Consumption | ||
{{!}} style="width:55%;" {{!}} <span class="explain" title="Default value | {{!}} style="width:55%;" {{!}} <span class="explain" title="Default value. All default submarines have various custom values depending a number of factors such as their size. These values can be changed in the Submarine Editor">{{{powerconsumption}}} kW</span>|}} | ||
{{!}}- | {{!}}- | ||
{{#if: {{{itemslots|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Item Slots | {{#if: {{{itemslots|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Item Slots | ||
Line 26: | Line 26: | ||
{{!}}- | {{!}}- | ||
{{#if: {{{powercapacity|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Power Capacity | {{#if: {{{powercapacity|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Power Capacity | ||
{{!}} style="width:55%;" {{!}} <span class | {{!}} style="width:55%;" {{!}} <span class="Default value. All default submarines have various custom values depending a number of factors such as their size. These values can be changed in the Submarine Editor">{{{powercapacity}}} kW⋅min</span>|}} | ||
{{!}}- | {{!}}- | ||
{{#if: {{{maxoutput|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Power Output | {{#if: {{{maxoutput|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Power Output | ||
Line 32: | Line 32: | ||
{{!}}- | {{!}}- | ||
{{#if: {{{maxrechargespeed|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Recharge Speed | {{#if: {{{maxrechargespeed|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Recharge Speed | ||
{{!}} style="width:55%;" {{!}} <span class="explain" title="Default value | {{!}} style="width:55%;" {{!}} <span class="explain" title="Default value. All default submarines have various custom values depending a number of factors such as their size. These values can be changed in the Submarine Editor">{{{maxrechargespeed}}} kW</span>|}} | ||
{{!}}- | {{!}}- | ||
{{#if: {{{maxforce|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Thrust | {{#if: {{{maxforce|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Thrust | ||
{{!}} style="width:55%;" {{!}} <span class="explain" title="Default value | {{!}} style="width:55%;" {{!}} <span class="explain" title="Default value. All default submarines have various custom values depending a number of factors such as their size. These values can be changed in the Submarine Editor">{{{maxforce}}}</span>|}} | ||
{{!}}- | {{!}}- | ||
{{#if: {{{maxflow|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Pump Speed | {{#if: {{{maxflow|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Max Pump Speed | ||
Line 41: | Line 41: | ||
{{!}}- | {{!}}- | ||
{{#if: {{{o2generatedamount|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Oxygen Amount Generated | {{#if: {{{o2generatedamount|}}}|{{!}} style="width:45%;font-size:105%;" {{!}} Oxygen Amount Generated | ||
{{!}} style="width:55%;" {{!}} <span class="explain" title="Default value | {{!}} style="width:55%;" {{!}} <span class="explain" title="Default value. All default submarines have various custom values depending a number of factors such as their size. These values can be changed in the Submarine Editor">{{{o2generatedamount}}}</span>|}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{repair|}}} |! class="infobox3" colspan="2" {{!}} Repair Requirements{{#switch: {{{repair}}} |mechanical=<br /> | {{#if: {{{repair|}}} |! class="infobox3" colspan="2" {{!}} Repair Requirements{{#switch: {{{repair}}} |mechanical=<br /> |
Revision as of 18:46, 28 October 2020
Installations infobox | |
---|---|
Stats |
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 | |
---|---|
Stats | |
Category | Machine |
Power Consumption | 10 + 500 kW |
Item Slots | 5 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 }}
The above documentation is transcluded from Template:Installations infobox/doc. (edit | history)