Difference between revisions of "Construction stage/doc"
From Unofficial Stationeers Wiki
< Template:Construction stage
F1r3w4rr10r (talk | contribs) (Create the Construction stage template documentation) |
(Fix example section) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| + | {{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]] | ||
| + | }} | ||
== Summary == | == Summary == | ||
This template is meant to be used as a child template in the [[Template:Structurebox]]. | This template is meant to be used as a child template in the [[Template:Structurebox]]. | ||
| Line 7: | Line 21: | ||
== Parameters == | == Parameters == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | < | + | <templatedata> |
| − | < | + | { |
| + | "params": { | ||
| + | "number": { | ||
| + | "label": "Stage number", | ||
| + | "description": "The stage number", | ||
| + | "example": "1, 2, ...", | ||
| + | "type": "number", | ||
| + | "required": true | ||
| + | }, | ||
| + | "image": { | ||
| + | "label": "Image", | ||
| + | "description": "Image of this stage", | ||
| + | "type": "wiki-file-name" | ||
| + | }, | ||
| + | "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 == | ||
| + | The structurebox on the right side is obtained with the following code: | ||
| + | |||
| + | <pre>{{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]] | ||
| + | }}</pre> | ||
| + | |||
| + | |||
| + | == Blank == | ||
This is the blank template code, that can be copy-pasted into a page to use it there. | This is the blank template code, that can be copy-pasted into a page to use it there. | ||
| − | {{ | + | <pre style="overflow: auto;" pad="yes">{{Construction stage |
| + | | number = | ||
| + | | image = | ||
| + | | const_with_tool = | ||
| + | | const_with_item = | ||
| + | | decon_with_tool = | ||
| + | | item_rec = | ||
| + | }}</pre> | ||
<noinclude>[[Category:Template Documentation]]</noinclude><includeonly>{{sandbox other|| | <noinclude>[[Category:Template Documentation]]</noinclude><includeonly>{{sandbox other|| | ||
Latest revision as of 11:03, 26 November 2025
| This is a documentation subpage for Template:Construction stage. It contains usage information, categories and other content that is not part of the original template page. |
| Operation | |
|---|---|
| Construction | |
| Placed with | 1x Kit (Autolathe) |
| Placed on | Small Grid |
| Stage 1 | |
![]() | |
| Next Stage Construction | |
| Constructed with tool | Welding Torch |
| Constructed with item | 2x Iron Sheets |
| Deconstruction | |
| Deconstructed with | Wrench |
| Stage 2 | |
![]() | |
| Next Stage Construction | |
| Constructed with item | 4x Cable Coil |
| Deconstruction | |
| Deconstructed with | Angle Grinder |
| Item received | 2x Iron Sheets |
Contents
Summary[edit]
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[edit]
Parameter regarding a construction stage of a structure.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Stage number | number | The stage number
| Number | required |
| Image | image | Image of this stage
| File | optional |
| Tool | const_with_tool | Stage constructed with this tool
| Page | optional |
| Item | const_with_item | Item required for this stage
| Page | optional |
| Deconstruction tool | decon_with_tool | Tool to deconstruct this stage
| Page | optional |
| Deconstruction item | item_rec | Item received when deconstructing this stage
| Page | optional |
Example[edit]
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[edit]
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 =
}}


