Template:Construction stage: Difference between revisions
Template page
More actions
F1r3w4rr10r (talk | contribs) Create the Construction stage template |
F1r3w4rr10r (talk | contribs) Rename the parameters to snake case and add item parameters |
||
| Line 3: | Line 3: | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
| header1 = {{ #if: {{{ | | header1 = {{ #if: {{{const_with_tool|}}}{{{const_with_item|}}} | Construction }} | ||
| label1 = Constructed with | | label1 = Constructed with tool | ||
| data1 = {{{ | | data1 = {{{const_with_tool|}}} | ||
| label2 = Constructed with item | |||
| data2 = {{{const_with_item|}}} | |||
| header2 = {{ #if: {{{ | | header2 = {{ #if: {{{decon_with_tool|}}}{{{item_rec|}}} | Deconstruction }} | ||
| label21 = Deconstructed with | | label21 = Deconstructed with | ||
| data21 = {{{ | | data21 = {{{decon_with_tool|}}} | ||
| label22 = Item received | |||
| data22 = {{{item_rec|}}} | |||
}}<noinclude> | }}<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> | ||
Revision as of 16:54, 1 July 2018
| Operation | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Construction | |||||||||||
| Placed with | 1x Kit (Autolathe) | ||||||||||
| Placed on | Small Grid | ||||||||||
| |||||||||||
| |||||||||||
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.
| 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 name | optional |
| Item | const_with_item | Item required for this stage
| Page name | optional |
| Deconstruction tool | decon_with_tool | Tool to deconstruct this stage
| Page name | optional |
| Deconstruction item | item_rec | Item received when deconstructing this stage
| Page name | optional |
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 =
}}
| The above documentation is transcluded from Template:Construction stage/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |

