Template:Installations infobox: Difference between revisions
From Official Barotrauma Wiki
BTGamepedia>QuaternionMark No edit summary |
m (Rounding RPS to two decimals) |
||
(90 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox" | <noinclude>{{doc}}[[Category:Templates]][[Category:Cargo Declaration Templates]][[Category:Cargo Storage Templates]][[Category:Infobox Templates]] | ||
{{#cargo_declare:_table = Installations | |||
| name = String | |||
| image = File | |||
| identifier = 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 | |||
| reload = Float | |||
| itemslots = Wikitext | |||
| powercapacity = Integer | |||
| maxoutput = Integer | |||
| maxrechargespeed = Integer | |||
| maxforce = Integer | |||
| maxflow = Integer | |||
| o2generatedamount = Integer | |||
| weapons = Integer | |||
| handicap = Wikitext | |||
| repairtype = String (allowed values=Mechanical, Electrical) | |||
| repairskill = Integer | |||
| weapontype = String | |||
| loader = String | |||
| ammo = Wikitext | |||
| ammocount = Integer | |||
| afflictions = Wikitext | |||
| note = Wikitext | |||
}}</noinclude> | |||
<includeonly><onlyinclude>{| class="infobox responsive-table" align="right" | |||
|- | |- | ||
! | ! 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:{{{description|}}}|<hr>''{{{description}}}''}} | ||
|- | |- | ||
! class=" | {{#if:{{{afflictions|}}}{{{weapons|}}}{{{handicap|}}}{{{powerconsumption|}}}{{{reload|}}}{{{itemslots|}}}{{{powercapacity|}}}{{{maxoutput|}}}{{{maxrechargespeed|}}}{{{maxforce|}}}{{{maxflow|}}}{{{o2generatedamount|}}}| | ||
! 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:{{{afflictions|}}}| | |||
{{!}} style="width:50%; text-align:right" {{!}} '''Afflictions''' | |||
{{!}}- | {{!}} style="width:50%" {{!}} {{AfflictionParser|afflictions={{{afflictions|}}}}}}} | ||
{{!}} style=" | |||
{{ | |||
|- | |- | ||
{{# | {{#if:{{{weapons|}}}| | ||
{{ | {{!}} style="width:50%; text-align:right" {{!}} '''Skill Requirement''' | ||
{{!}} | {{!}} style="width:50%" {{!}} {{hl|Weapons|20|Security Officer Job Icon|Skills#Weapons}}: {{{weapons}}}}} | ||
{{ | |- | ||
{{!}} style="width: | {{#if:{{{handicap|}}}| | ||
{{!}} style="width: | {{!}} style="width:50%; text-align:right" {{!}} '''<abbr title="Penalty applied if the above skill requirements are not met">Handicap</abbr>''' | ||
{{!}} style="width:50%" {{!}} {{{handicap}}}}} | |||
{{!}} style="width: | |- | ||
{{!}} style="width: | {{#if:{{{powerconsumption|}}}| | ||
{{!}} style="width:50%; text-align:right" {{!}} '''Power Consumption''' | |||
{{ | {{!}} style="width:50%" {{!}} {{{powerconsumption}}} kW}} | ||
{{!}} | |- | ||
{{ | {{#if:{{{reload|}}}| | ||
{{!}} style="width: | {{!}} style="width:50%; text-align:right" {{!}} '''Firerate''' | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{#expr:({{{reload}}})^-1 round 2}} <span class="explain" title="Rounds per Second">RPS</span>}} | ||
| | |- | ||
{{#if:{{{itemslots|}}}| | |||
{{!}} style="width: | {{!}} style="width:50%; text-align:right" {{!}} '''Item Slots''' | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{itemslots}}}}} | ||
|}}| | |- | ||
{{ | {{#if:{{{powercapacity|}}}| | ||
{{!}} | {{!}} style="width:50%; text-align:right" {{!}} '''Power Capacity''' | ||
{{ | {{!}} style="width:50%" {{!}} {{{powercapacity}}} kWm}} | ||
{{!}} style="width: | |- | ||
{{!}} style="width: | {{#if:{{{maxoutput|}}}| | ||
{{!}}- | {{!}} style="width:50%; text-align:right" {{!}} '''Max Power Output''' | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{maxoutput}}} kW}} | ||
{{!}} style="width: | |- | ||
{{ | {{#if:{{{maxrechargespeed|}}}| | ||
{{!}} | {{!}} style="width:50%; text-align:right" {{!}} '''Max Recharge Speed''' | ||
{{ | {{!}} style="width:50%" {{!}} {{{maxrechargespeed}}} kW}} | ||
{{ | |- | ||
{{ | {{#if:{{{maxforce|}}}| | ||
{{ | {{!}} style="width:50%; text-align:right" {{!}} '''Max Force''' | ||
{{!}} style="width: | {{!}} style="width:50%" {{!}} {{{maxforce}}}}} | ||
{{!}} | |- | ||
{{#if:{{{maxflow|}}}| | |||
}} | {{!}} style="width:50%; text-align:right" {{!}} '''Max Pumping Speed''' | ||
{{!}} style="width:50%" {{!}} {{{maxflow}}}}} | |||
|- | |||
{{#if:{{{o2generatedamount|}}}| | |||
{{!}} style="width:50%; text-align:right" {{!}} '''Generated Oxygen''' | |||
{{!}} style="width:50%" {{!}} {{{o2generatedamount}}}}} | |||
|- | |||
{{#if:{{{repairtype|}}}| | |||
! class="infobox3 responsive-table" colspan="2" {{!}} Repairable}} | |||
|- | |||
{{#if:{{{repairtype|}}}| | |||
{{!}} style="width:50%; text-align:right" {{!}} '''Required Skill''' | |||
{{!}} style="width:50%" {{!}} {{#switch:{{lc:{{{repairtype}}}}}|mechanical=[[Skills#Mechanical_Engineering|Mechanical Engineering]]|electrical=[[Skills#Electrical Engineering|Electrical Engineering]]}} {{{repairskill}}}}} | |||
|- | |||
{{#if:{{{repairtype|}}}| | |||
{{!}} style="width:50%; text-align:right" {{!}} '''Required Item''' | |||
{{!}} style="width:50%" {{!}} {{#switch:{{lc:{{{repairtype}}}}}|mechanical={{hl|Wrench|x16}}|electrical={{hl|Screwdriver|x16}}}}}} | |||
|- | |||
| colspan="3" style="padding:0px" | | |||
{| class="responsive-table mw-collapsible mw-collapsed" style="width:100%" | |||
! colspan="2" class="infobox3 responsive-table" | Technical | |||
|- | |||
| style="width:50%; text-align:right" | '''Identifier''' | |||
| width="50%" | {{{identifier}}} | |||
|- | |||
| style="width:50%; text-align:right" | '''Categories''' | |||
| width="50%" | [[:Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category|}}}|{{#if:{{{category2|}}}|, [[:Category:{{{category2}}}|{{{category2}}}]]}}}}{{#if:{{{subcategory|}}}|, [[:Category:{{{subcategory}}}|{{{subcategory}}}]]}} | |||
|- | |||
{{#if:{{{tags|}}}| | |||
{{!}} style="width:50%; text-align:right" {{!}} '''Tags''' | |||
{{!}} width="50%" {{!}} {{{tags}}}}} | |||
|} | |} | ||
|}{{#if:{{NAMESPACE}}||{{#if:{{{nocat|}}}||[[Category:Installations]][[Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category2|}}}|[[Category:{{{category2}}}|{{{category2}}}]]}}{{#if:{{{subcategory|}}}|[[Category:{{{subcategory}}}]]}}}}<!-- | |||
-->{{#cargo_store:_table = Installations | |||
{{ | | name = {{{name|{{PAGENAME}}}}} | ||
| image = {{{image|{{{name|{{PAGENAME}}}}}.png}}} | |||
| identifier = {{{identifier|}}} | |||
| description = {{{description|}}} | |||
| categories = {{{category|Misc}}}{{#if:{{{category2|}}}|,{{{category2}}}}} | |||
| subcategory = {{{subcategory|}}} | |||
| tags = {{{tags|}}} | |||
| powerconsumption = {{{powerconsumption|}}} | |||
| reload = {{{reload|}}} | |||
| itemslots = {{{itemslots|}}} | |||
| powercapacity = {{{powercapacity|}}} | |||
| maxoutput = {{{maxoutput|}}} | |||
| maxrechargespeed = {{{maxrechargespeed|}}} | |||
| maxforce = {{{maxforce|}}} | |||
| maxflow = {{{maxflow|}}} | |||
| o2generatedamount = {{{o2generatedamount|}}} | |||
| weapons = {{{weapons|}}} | |||
| handicap = {{{handicap|}}} | |||
| repairtype = {{{repairtype|}}} | |||
| repairskill = {{{repairskill|}}} | |||
| weapontype = {{{weapontype|}}} | |||
| loader = {{{loader|}}} | |||
| ammo = {{{ammo|}}} | |||
| ammocount = {{{ammocount|}}} | |||
| afflictions = {{{afflictions|}}} | |||
| note = {{{note|}}} | |||
}}}}</onlyinclude></includeonly> |
Latest revision as of 18:14, 24 April 2024
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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A machine capable of manufacturing a wide range of items out of basic raw materials. | ||||||||||
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.