Actions

Template

Difference between revisions of "Structurebox"

From Unofficial Stationeers Wiki

(Fix the operation rows not showing up)
(add category for missing prefab info)
 
(25 intermediate revisions by 9 users not shown)
Line 3: Line 3:
  
 
  | title    = {{{name}}}
 
  | title    = {{{name}}}
  | image    = {{{image|}}}
+
  | image1  = {{{image|}}}
 +
| data2   = {{{other|}}}
 +
| label4 = Paintable
 +
| data4  = {{{paintable|}}}
  
  | header1  = Operation
+
  | header10 = {{ #if: {{{power_usage|}}}{{{burst_pressure|}}} | Operation }}
 
  |  label11 = Power Usage
 
  |  label11 = Power Usage
  |  data11  = {{{power_usage}}}
+
  |  data11  = {{{power_usage|}}}
 +
|  label12 = Burst Pressure
 +
|  data12  = {{{burst_pressure|}}}
 +
| label13 = Prefab Hash
 +
| data13 = {{#if: {{{prefab_hash|}}} | <span style="font-family: monospace;">{{{prefab_hash|}}}</span>}}
 +
| label14 = Prefab Name
 +
| data14 = {{#if: {{{prefab_name|}}} | <span style="font-family: monospace;">{{{prefab_name|}}}</span>}}
  
  | header2  = Construction
+
  | header20 = Construction
 
  |  label21 = Placed with
 
  |  label21 = Placed with
 
  |  data21  = {{{placed_with_item}}}
 
  |  data21  = {{{placed_with_item}}}
Line 15: Line 24:
 
  |  data22  = {{{placed_on_grid}}}
 
  |  data22  = {{{placed_on_grid}}}
  
  | header3 = {{ #if: {{{stage_image1|}}}{{{const_with_tool1|}}}{{{const_with_item1|}}}{{{decon_with_tool1|}}}{{{item_rec1|}}}
+
  | header30 = {{ #if: {{{slot_1|}}}{{{slot_2|}}} | Slots }}
 +
  |  label31 = Slot 0
 +
|  data31 = {{{slot_0|}}}
 +
|  label32 = Slot 1
 +
|  data32 = {{{slot_1|}}}
 +
|  label33 = Slot 2
 +
|  data33 = {{{slot_2|}}}
 +
|  label34 = Slot 3
 +
| data34 = {{{slot_3|}}}
 +
 
 +
| header40 = {{ #if: {{{stage_image1|}}}{{{const_with_tool1|}}}{{{const_with_item1|}}}{{{decon_with_tool1|}}}{{{item_rec1|}}}
 
               | {{Construction stage
 
               | {{Construction stage
 
                   | number          = 1
 
                   | number          = 1
Line 26: Line 45:
 
               }}
 
               }}
  
  | header4  = {{ #if: {{{stage_image2|}}}{{{const_with_tool2|}}}{{{const_with_item2|}}}{{{decon_with_tool2|}}}{{{item_rec2|}}}
+
  | header50 = {{ #if: {{{stage_image2|}}}{{{const_with_tool2|}}}{{{const_with_item2|}}}{{{decon_with_tool2|}}}{{{item_rec2|}}}
 
               | {{Construction stage
 
               | {{Construction stage
 
                   | number          = 2
 
                   | number          = 2
Line 37: Line 56:
 
               }}
 
               }}
  
  | header5  = {{ #if: {{{stage_image3|}}}{{{const_with_tool3|}}}{{{const_with_item3|}}}{{{decon_with_tool3|}}}{{{item_rec3|}}}
+
  | header60 = {{ #if: {{{stage_image3|}}}{{{const_with_tool3|}}}{{{const_with_item3|}}}{{{decon_with_tool3|}}}{{{item_rec3|}}}
 
               | {{Construction stage
 
               | {{Construction stage
 
                   | number          = 3
 
                   | number          = 3
Line 47: Line 66:
 
                 }}
 
                 }}
 
               }}
 
               }}
}}<includeonly>[[Category:Structures]]</includeonly><noinclude>
+
 
 +
| header70 = {{ #if: {{{stage_image4|}}}{{{const_with_tool4|}}}{{{const_with_item4|}}}{{{decon_with_tool4|}}}{{{item_rec4|}}}
 +
              | {{Construction stage
 +
                  | number          = 4
 +
                  | image          = {{{stage_image4|}}}
 +
                  | const_with_tool = {{{const_with_tool4|}}}
 +
                  | const_with_item = {{{const_with_item4|}}}
 +
                  | decon_with_tool = {{{decon_with_tool4|}}}
 +
                  | item_rec        = {{{item_rec4|}}}
 +
                }}
 +
              }}
 +
 
 +
| header80 = {{ #if: {{{stage_image5|}}}{{{const_with_tool5|}}}{{{const_with_item5|}}}{{{decon_with_tool5|}}}{{{item_rec5|}}}
 +
              | {{Construction stage
 +
                  | number          = 5
 +
                  | image          = {{{stage_image5|}}}
 +
                  | const_with_tool = {{{const_with_tool5|}}}
 +
                  | const_with_item = {{{const_with_item5|}}}
 +
                  | decon_with_tool = {{{decon_with_tool5|}}}
 +
                  | item_rec        = {{{item_rec5|}}}
 +
                }}
 +
              }}
 +
| header90 = {{ #if: {{{stage_image6|}}}{{{const_with_tool6|}}}{{{const_with_item6|}}}{{{decon_with_tool6|}}}{{{item_rec6|}}}
 +
              | {{Construction stage
 +
                  | number          = 6
 +
                  | image          = {{{stage_image6|}}}
 +
                  | const_with_tool = {{{const_with_tool6|}}}
 +
                  | const_with_item = {{{const_with_item6|}}}
 +
                  | decon_with_tool = {{{decon_with_tool6|}}}
 +
                  | item_rec        = {{{item_rec6|}}}
 +
                }}
 +
              }}
 +
}}
 +
<includeonly>
 +
[[Category:Structures]]
 +
{{ #if: {{{prefab_hash|}}} | | [[Category:Infobox without prefab data]] }}
 +
{{ #if: {{{prefab_name|}}} | | [[Category:Infobox without prefab data]] }}
 +
</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 15:35, 14 May 2024

{{{name}}}
Construction
Placed with {{{placed_with_item}}}
Placed on {{{placed_on_grid}}}
Template documentation[view] [edit] [history] [purge]

Summary[edit]

This template should be used for placed structures.

It will create an Infobox on the right hand side, at the top of the article. It has some parameters, that are useful for documenting the most important features of a Structure.

When included, it will also add the page, it is included in, to Category:Structures.

Parameters[edit]

The following, optional parameters can be supplied:

Parameter Name Description
name The name of the structure.
image An image of the completely built structure.
other Any other remarks, that can be placed before the subsections.
power_usage The power required to operate the structure.
burst_pressure The maximum pressure the structure can withstand before breaking.
prefab_hash The prefab hash for the structure
prefab_name The prefab name for the structure
placed_with_item The item, that is used to place the initial stage of the structure.
placed_on_grid The grid size, the structure is placed on. This should be either "Small Grid", "Large Grid" or "Dynamic".
stage_image1 The image for the first construction stage.
const_with_tool1 The tool, that the next stage is constructed with, from the first stage.
const_with_item1 The item, that the next stage is constructed with, from the first stage.
decon_with_tool1 The tool, that the first stage is deconstructed with.
item_rec1 The item, that the player receives, on deconstructing the first stage.
stage_image2 The image for the second construction stage.
const_with_tool2 The tool, that the next stage is constructed with, from the second stage.
const_with_item2 The item, that the next stage is constructed with, from the second stage.
decon_with_tool2 The tool, that the second stage is deconstructed with.
item_rec2 The item, that the player receives, on deconstructing the second stage.
stage_image3 The image for the third construction stage.
const_with_tool3 The tool, that the next stage is constructed with, from the third stage.
const_with_item3 The item, that the next stage is constructed with, from the third stage.
decon_with_tool3 The tool, that the third stage is deconstructed with.
item_rec3 The item, that the player receives, on deconstructing the third stage.

Editing[edit]

Most of the template can be edited on the Template:Structurebox page.

The stage sections need to be edited on the Template:Construction stage page.

Blank[edit]

This is the blank template code, that can be copy-pasted into a page to use it there.

{{Structurebox
| name             = 
| image            = 
| other            = 
| power_usage      = 
| burst_pressure   =
| prefab_hash      =
| prefab_name      =
| placed_with_item = 
| placed_on_grid   = 
| stage_image1     = 
| const_with_tool1 = 
| const_with_item1 = 
| decon_with_tool1 = 
| item_rec1        = 
| stage_image2     = 
| const_with_tool2 = 
| const_with_item2 = 
| decon_with_tool2 = 
| item_rec2        = 
| stage_image3     = 
| const_with_tool3 = 
| const_with_item3 = 
| decon_with_tool3 = 
| item_rec3        = 
}}