Template:Itembox: Difference between revisions
Template page
More actions
No edit summary |
Added "paintable" field, re-numbered the fields, will revert if fudges things up |
||
| Line 2: | Line 2: | ||
| title = {{{name|}}} | | title = {{{name|}}} | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
| | | label2 = Stacks | ||
| | | data2 = {{{stacks|}}} | ||
| | | label4 = Paintable | ||
| | | data4 = {{{paintable|}}} | ||
| | | label6 = Constructing Options | ||
| | | data6 = {{{constructs|}}} | ||
| | | header8 = {{ #if: {{{createdwith|}}} | Recipe}} | ||
| | | label10 = Created With | ||
| | | data10 = {{{createdwith|}}} | ||
| label12 = Cost | |||
| data12 = {{{cost|}}} | |||
<!-- New recipe style --> | <!-- New recipe style --> | ||
| | | header15 = {{ #if: {{{recipe_machine1|}}} | Recipes}} | ||
| | | label17 = [[{{{recipe_machine1|}}}]] | ||
| | | data17 = {{{recipe_cost1|}}} | ||
| | | label20 = [[{{{recipe_machine2|}}}]] | ||
| | | data20 = {{{recipe_cost2|}}} | ||
| | | label22 = [[{{{recipe_machine3|}}}]] | ||
| | | data22 = {{{recipe_cost3|}}} | ||
| | | label30 = Used With | ||
| | | data30 = {{{usedwith|}}} | ||
| | | label32 = Max Input Power | ||
| | | data32 = {{{maxinpower|}}} | ||
| | | label34 = Max Output Power | ||
| | | data34 = {{{maxoutpower|}}} | ||
| | | label36 = Max Pressure | ||
| | | data36 = {{{maxpressure|}}} | ||
| | | label38 = Max Temperature | ||
| | | data38 = {{{maxtemp|}}} | ||
| | | label40 = Logic Parameters | ||
| | | data40 = {{{logic|}}} | ||
| | | label42 = Volume | ||
| | | data42 = {{{volume|}}} | ||
| | | label43 = Hash ID | ||
| | | data43 = {{{hashid|}}} | ||
| | | label44 = Prefab Hash | ||
| | | data44 = {{{prefab_hash|}}} | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
Revision as of 02:33, 29 June 2022
| item's image | |
| Stacks | item's stacks (number only) |
|---|---|
| Paintable | item is paintable |
| Constructing Options | item's constructing variations |
| Recipe | |
| Created With | old style item's recipe machine |
| Cost | old style item's recipe cost |
| Recipes | |
| new style recipe machine (1) | new style recipe machine (1) cost |
| new style recipe machine (2) | new style recipe machine (2) cost |
| new style recipe machine (3) | new style recipe machine (3) cost |
| Used With | usedwith |
| Max Input Power | item's maximum input power |
| Max Output Power | item's maximum output power |
| Max Pressure | item's maximum pressure |
| Max Temperature | item's maximum temperature |
| Logic Parameters | item's logic parameter |
| Volume | item's volume |
Example
The following code produces the box presented on the right. All possible arguments are utilized in this example.
{{Itembox
| name = item's name
| image = item's image
| stacks = item's stacks (number only)
| paintable = item is paintable
| constructs = item's constructing variations
| createdwith = old style item's recipe machine
| cost = old style item's recipe cost
| recipe_machine1 = new style recipe machine (1)
| recipe_cost1 = new style recipe machine (1) cost
| recipe_machine2 = new style recipe machine (2)
| recipe_cost2 = new style recipe machine (2) cost
| recipe_machine3 = new style recipe machine (3)
| recipe_cost3 = new style recipe machine (3) cost
| usedwith = usedwith
| maxinpower = item's maximum input power
| maxoutpower = item's maximum output power
| maxpressure = item's maximum pressure
| pressurerange = item's pressure range
| maxtemp = item's maximum temperature
| temprange = item's temperature range
| logic = item's logic parameter
| volume = item's volume
| prefabhash = item's prefab. hash
| prefabname = item's prefab. name
| slot_class = item's slot class when in a slot (SlotClass.None, etc)
| sorting_class = item's sorting class (used in Logic Sorter) (SortingClass.Default, etc)
| nutrition = item's nutrition value (if food)
| quality = item's quality rating (if food)
| growthtime = item's growth time (if plant)
}}
Template
Here's a blank example you can copy to fill in the data
{{Itembox
| name =
| image =
| stacks =
| paintable =
| constructs =
| createdwith =
| cost =
| recipe_machine1 =
| recipe_cost1 =
| recipe_machine2 =
| recipe_cost2 =
| recipe_machine3 =
| recipe_cost3 =
| usedwith =
| maxinpower =
| maxoutpower =
| maxpressure =
| pressurerange =
| maxtemp =
| temprange =
| logic =
| volume =
| prefabhash =
| prefabname =
| slot_class =
| sorting_class =
| nutrition =
| quality =
| growthtime =
}}