Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Construction stage: Difference between revisions

Template page
Add the decat and child parameters to the Infobox template call
Mallaco (talk | contribs)
Add includeonly tags for the template
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox | decat = yes | child = yes
<includeonly>{{Infobox | decat = yes | child = yes
  | title    = Stage {{{number|}}}
  | title    = Stage {{{number|}}}
  | image    = {{{image|}}}
  | image1  = {{{image|}}}


  | header1  = {{ #if: {{{const_with_tool|}}}{{{const_with_item|}}} | Construction }}
  | data10  = {{ #if: {{{const_with_tool|}}}{{{const_with_item|}}} | Next Stage Construction }}
  |  label1  = Constructed with tool
  |  label11 = Constructed with tool
  |  data1  = {{{const_with_tool|}}}
  |  data11  = {{{const_with_tool|}}}
  |  label2  = Constructed with item
  |  label12 = Constructed with item
  |  data2  = {{{const_with_item|}}}
  |  data12  = {{{const_with_item|}}}


  | header2  = {{ #if: {{{decon_with_tool|}}}{{{item_rec|}}} | Deconstruction }}
  | data20  = {{ #if: {{{decon_with_tool|}}}{{{item_rec|}}} | Deconstruction }}
  |  label21 = Deconstructed with
  |  label21 = Deconstructed with
  |  data21  = {{{decon_with_tool|}}}
  |  data21  = {{{decon_with_tool|}}}
  |  label22 = Item received
  |  label22 = Item received
  |  data22  = {{{item_rec|}}}
  |  data22  = {{{item_rec|}}}
}}<noinclude>
}}</includeonly>
{{Documentation}}
<noinclude>{{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 16:44, 26 November 2025

Template documentation[view] [edit] [history] [purge]
Example
Operation
Construction
Placed with 1x Kit (Autolathe)
Placed on Small Grid
Stage 1
Autolathe build state 0
Next Stage Construction
Constructed with tool Welding Torch
Constructed with item 2x Iron Sheets
Deconstruction
Deconstructed with Wrench
Stage 2
Autolathe build state 1
Next Stage Construction
Constructed with item 4x Cable Coil
Deconstruction
Deconstructed with Angle Grinder
Item received 2x Iron Sheets

Summary

This template is meant to be used as a child template in the Template:Structurebox.

One instance can be used to represent a build stage of a Structure.

Parameters

Parameter regarding a construction stage of a structure.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Stage numbernumber

The stage number

Example
1, 2, ...
Numberrequired
Imageimage

Image of this stage

Fileoptional
Toolconst_with_tool

Stage constructed with this tool

Example
[[Wrench]]
Page nameoptional
Itemconst_with_item

Item required for this stage

Example
2x [[Cable Coil]]
Page nameoptional
Deconstruction tooldecon_with_tool

Tool to deconstruct this stage

Example
[[Hand Drill]]
Page nameoptional
Deconstruction itemitem_rec

Item received when deconstructing this stage

Example
2x [[Plastic Sheet]]
Page nameoptional

Example

The structurebox on the right side is obtained with the following code:

{{Structurebox
| name             = Example
| placed_with_item = 1x [[Kit (Autolathe)]]
| placed_on_grid   = Small Grid
| stage_image1     = [[File:StructureAutolathe BuildState0.png|Autolathe build state 0]]
| const_with_tool1 = [[Welding Torch]]
| const_with_item1 = 2x [[Iron Sheets]]
| decon_with_tool1 = [[Wrench]]
| item_rec2        = 1x [[Kit (Autolathe)]]
| stage_image2     = [[File:StructureAutolathe BuildState1.png|Autolathe build state 1]]
| const_with_item2 = 4x [[Cable Coil]]
| decon_with_tool2 = [[Angle Grinder]]
| item_rec2        = 2x [[Iron Sheets]]
}}


Blank

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

{{Construction stage
| number          = 
| image           = 
| const_with_tool = 
| const_with_item = 
| decon_with_tool = 
| item_rec        = 
}}