Template:Itembox: Difference between revisions
Template page
More actions
Emilgardis (talk | contribs) fix food |
Emilgardis (talk | contribs) add flashpoint and autoignition, and move them and stacks + paintable to a new header Properties |
||
| Line 3: | Line 3: | ||
| title = {{{name|}}} | | title = {{{name|}}} | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
| | |||
| | | header19 = {{ #if: {{{stacks|}}}{{{autoignition|}}}{{{flashpoint|}}}{{{paintable|}}} | Properties | ||
{{Infobox | decat = yes | child = yes | |||
| label1 = Stacks | |||
| data1 = {{#if: {{{stacks|}}} | | |||
{{#iferror: | |||
{{#expr: {{{stacks|}}}+1 }} | |||
| {{{stacks|}}} | | |||
{{#ifexpr: {{{stacks|}}} = 1 | No | Yes ({{{stacks|}}}) }} | |||
}} | |||
}} | |||
| label2 = Paintable | |||
| data2 = {{{paintable|}}} | |||
| label3 = Autoignition | |||
| data3 = {{{autoignition|}}} | |||
| label4 = Flashpoint | |||
| data4 = {{{flashpoint|}}} | |||
}} | }} | ||
| label6 = Constructing Options | | label6 = Constructing Options | ||
| data6 = {{{constructs|}}} | | data6 = {{{constructs|}}} | ||
Revision as of 11:51, 19 May 2024
{{Infobox | name = Itembox | title = | image =
| header19 = label6 = Constructing Options
{{Infobox | name = Itembox | title = item's name | image = item's image
| header19 = Properties
Stacks item's stacks (number only)Paintable item is paintableExample
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 =
}}
| The above documentation is transcluded from Template:Itembox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |