Template:Installations infobox: Difference between revisions
From Official Barotrauma Wiki
Jade Harley (talk | contribs) mNo edit summary |
Jade Harley (talk | contribs) mNo edit summary |
||
Line 5: | Line 5: | ||
| identifier = String | | identifier = String | ||
| description = String | | description = String | ||
| categories = List (,) of String (allowed values=Structure,Decorative,Machine,Medical,Weapon,Diving,Equipment,Fuel,Electrical,Material,Alien,Wrecked,Legacy,Misc) | |||
| subcategory = String (allowed values=Thalamus,Abandoned Outposts,Abandoned Outpost (Human),Abandoned Outpost (Monster),Exterior submarine walls,Exterior shuttle pieces,Labels,Background wall,Outpost) | |||
| tags = List (,) of String | |||
| powerconsumption = Integer | | powerconsumption = Integer | ||
| reload = Float | | reload = Float | ||
Line 22: | Line 22: | ||
| repairskill = Integer | | repairskill = Integer | ||
}}</noinclude> | }}</noinclude> | ||
<includeonly>{| class="infobox responsive-table" align=right | <includeonly><onlyinclude>{| class="infobox responsive-table" align=right | ||
|- | |- | ||
! colspan="2" class="infobox2 responsive-table" | {{{name|{{PAGENAME}}}}} | ! colspan="2" class="infobox2 responsive-table" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
| colspan="2" style="padding:0.5em;text-align:center !important | | colspan="2" style="padding:0.5em;text-align:center !important" | {{ImageHandler|file={{{image|{{{name|{{PAGENAME}}}}}.png}}}|imagewidth={{{imagewidth|180}}}px}}<!-- | ||
-->{{#if:{{{identifier|}}}|<br><span style="margin:auto;text-align:center;color:#808080 | -->{{#if:{{{identifier|}}}|<br><span style="margin:auto;text-align:center;color:#808080"><small>ID: <code>{{{identifier|}}}</code></small></span>}}<!-- | ||
-->{{#if:{{{description|}}}|<div style="margin:0 auto;width:50%;float:center;border-bottom:1px #E2D9A4 dotted | -->{{#if:{{{description|}}}|<div style="margin:0 auto;width:50%;float:center;border-bottom:1px #E2D9A4 dotted"></div>''<small>{{{description}}}</small>''}} | ||
|- | |||
| style="text-align:center" colspan="2" | [[:Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category2|}}}|, [[:Category:{{{category2}}}|{{{category2}}}]]}}{{#if:{{{subcategory|}}}|<br>[[:Category:{{{subcategory}}}|{{{subcategory}}}]]}} | |||
|- | |||
! class="infobox3 responsive-table" colspan="2" {{!}} <span title="Default values. Some values can be changed in the Submarine Editor, and might not exactly match the values for specific submarines.">Statistics*</span><!-- | |||
-->{{#if:{{{powerconsumption|}}}| | -->{{#if:{{{powerconsumption|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Power Consumption | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{powerconsumption}}} kW}}<!-- | ||
-->{{#if:{{{reload|}}}| | -->{{#if:{{{reload|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Firerate | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{#expr:({{{reload}}})^-1}} <span class="explain" title="Rounds per Second">RPS</span>}}<!-- | ||
-->{{#if:{{{itemslots|}}}| | -->{{#if:{{{itemslots|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Item Slots | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{itemslots}}}}}<!-- | ||
-->{{#if:{{{powercapacity|}}}| | -->{{#if:{{{powercapacity|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Power Capacity | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{powercapacity}}} kWm}}<!-- | ||
-->{{#if:{{{maxoutput|}}}| | -->{{#if:{{{maxoutput|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Max Power Output | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{maxoutput}}} kW}}<!-- | ||
-->{{#if:{{{maxrechargespeed|}}}| | -->{{#if:{{{maxrechargespeed|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Max Recharge Speed | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{maxrechargespeed}}} kW}}<!-- | ||
-->{{#if:{{{maxforce|}}}| | -->{{#if:{{{maxforce|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Max Force | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{maxforce}}}}}<!-- | ||
-->{{#if:{{{maxflow|}}}| | -->{{#if:{{{maxflow|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Max Pumping Speed | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{maxflow}}}}}<!-- | ||
-->{{#if:{{{o2generatedamount|}}}| | -->{{#if:{{{o2generatedamount|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Generated Oxygen | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{o2generatedamount}}}}}<!-- | ||
-->{{#if:{{{repairtype|}}}| | -->{{#if:{{{repairtype|}}}| | ||
{{!}}- | {{!}}- | ||
! class="infobox3 responsive-table" colspan="2" {{!}} Repairable | ! class="infobox3 responsive-table" colspan="2" {{!}} Repairable | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Required Skill | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{#switch:{{lc:{{{repairtype}}}}}|mechanical=[[Skills#Mechanical_Engineering|Mechanical Engineering]]|electrical=[[Skills#Electrical Engineering|Electrical Engineering]]}} {{{repairskill}}} | ||
{{!}}- | {{!}}- | ||
{{!}} style="width: | {{!}} style="width:50%; font-size:105%" {{!}} Required Item | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{#switch:{{lc:{{{repairtype}}}}}|mechanical={{hl|Wrench|x16}}|electrical={{hl|Screwdriver|x16}}}}}} | ||
|}{{TEX|2={{#if:{{{nocat|}}}||[[Category:Installations]][[Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category2|}}}|[[Category:{{{category2}}}|{{{category2}}}]]}}{{#if:{{{subcategory|}}}|[[Category:{{{subcategory}}}]]}}}}<!-- | |}{{TEX|2={{#if:{{{nocat|}}}||[[Category:Installations]][[Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category2|}}}|[[Category:{{{category2}}}|{{{category2}}}]]}}{{#if:{{{subcategory|}}}|[[Category:{{{subcategory}}}]]}}}}<!-- | ||
-->{{#cargo_store:_table=Installations | -->{{#cargo_store:_table=Installations | ||
Line 85: | Line 84: | ||
| identifier = {{{identifier|}}} | | identifier = {{{identifier|}}} | ||
| description = {{{description|}}} | | description = {{{description|}}} | ||
| categories = {{{category|Misc}}}{{#if:{{{category2|}}}|,{{{category2}}}}} | |||
| subcategory = {{{subcategory|}}} | |||
| tags = {{{tags|}}} | |||
| powerconsumption = {{{powerconsumption|}}} | | powerconsumption = {{{powerconsumption|}}} | ||
| reload = {{{reload|}}} | | reload = {{{reload|}}} | ||
| itemslots = {{{itemslots|}}} | | itemslots = {{{itemslots|}}} | ||
| powercapacity = {{{powercapacity|}}} | | powercapacity = {{{powercapacity|}}} | ||
| maxoutput = {{{maxoutput|}}} | | maxoutput = {{{maxoutput|}}} | ||
| maxrechargespeed = {{{maxrechargespeed|}}} | | maxrechargespeed = {{{maxrechargespeed|}}} | ||
| maxforce = {{{maxforce|}}} | | maxforce = {{{maxforce|}}} | ||
| maxflow = {{{maxflow|}}} | | maxflow = {{{maxflow|}}} | ||
| o2generatedamount = {{{o2generatedamount|}}} | | o2generatedamount = {{{o2generatedamount|}}} | ||
| repairtype = {{{repairtype|}}} | | repairtype = {{{repairtype|}}} | ||
| repairskill = {{{repairskill|}}} | | repairskill = {{{repairskill|}}} | ||
}}}}</includeonly> | }}}}</onlyinclude></includeonly> |
Revision as of 22:06, 18 September 2022
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 | |
---|---|
ID: fabricator A machine capable of manufacturing a wide range of items out of basic raw materials.
| |
Machine | |
Statistics* | |
Power Consumption | 10 + 500 kW |
Item Slots | 5 input slots and 1 output slot |
Repairable | |
Required Skill | Mechanical Engineering 55 |
Required Item | Wrench |
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)
This template defines the table "Installations". View table.