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/doc: Difference between revisions

Template page
Reformat blank code
Mallaco (talk | contribs)
Add example section for autolathe build stage 1
Line 7: Line 7:


== Parameters ==
== Parameters ==
<!-- Replace this, once we have the "Parameters" Mediawiki module installed -->
 
The following, optional parameters can be supplied:
<templatedata>
{| class="wikitable"
{
|-
"params": {
! Parameter Name  !! Description
"number": {
|-
"label": "Stage number",
| number          || The stage number, that will be used in the title of the box.
"description": "The stage number",
|-
"example": "1, 2, ...",
| image          || An image of the build stage.
"type": "number",
|-
"required": true
| const_with_tool || The tool, that the next stage is constructed with.
},
|-
"image": {
| const_with_item || The item, that the next stage is constructed with.
"label": "Image",
|-
"description": "Image of this stage",
| decon_with_tool || The tool, that the stage is deconstructed with.
"type": "wiki-file-name"
|-
},
| item_rec        || The item, that the player receives, on stage deconstruction.
"const_with_tool": {
|}
"label": "Tool",
"description": "Stage constructed with this tool",
"example": "[[Wrench]]",
"type": "wiki-page-name"
},
"const_with_item": {
"label": "Item",
"description": "Item required for this stage",
"example": "2x [[Cable Coil]]",
"type": "wiki-page-name"
},
"decon_with_tool": {
"label": "Deconstruction tool",
"description": "Tool to deconstruct this stage",
"example": "[[Hand Drill]]",
"type": "wiki-page-name"
},
"item_rec": {
"label": "Deconstruction item",
"description": "Item received when deconstructing this stage",
"example": "2x [[Plastic Sheet]]",
"type": "wiki-page-name"
}
},
"description": "Parameter regarding a construction stage of a structure."
}
</templatedata>
 
== Example ==
{{Construction stage
| number          = 1
| image          = [[File:StructureAutolathe BuildState1.png|Autolathe build state 1]]
| const_with_tool = [[Welding Torch]]
| const_with_item = 2x [[Iron Sheets]]
| decon_with_tool = [[Angle Grinder]]
| item_rec        = 2x [[Iron Sheets]]
}}
<pre>{{Construction stage
| number          = 1
| image          = [[File:StructureAutolathe BuildState1.png|Autolathe build state 1]]
| const_with_tool = [[Welding Torch]]
| const_with_item = 2x [[Iron Sheets]]
| decon_with_tool = [[Angle Grinder]]
| item_rec        = 2x [[Iron Sheets]]
}}</pre>


== Blank ==
== Blank ==

Revision as of 16:42, 26 November 2025

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

Stage 1 Autolathe build state 1 Next Stage ConstructionConstructed with tool Welding TorchConstructed with item 2x Iron Sheets DeconstructionDeconstructed with Angle GrinderItem received 2x Iron Sheets

{{Construction stage
| number          = 1
| image           = [[File:StructureAutolathe BuildState1.png|Autolathe build state 1]]
| const_with_tool = [[Welding Torch]]
| const_with_item = 2x [[Iron Sheets]]
| decon_with_tool = [[Angle Grinder]]
| item_rec        = 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        = 
}}