Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Itembox: Difference between revisions

Template page
Emilgardis (talk | contribs)
fix logic box
Letter Y (talk | contribs)
m move params into /doc instead
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Infobox
<includeonly>{{Infobox
| name = Itembox
| name = Itembox
| title = {{{name|}}}
| title = {{{name|{{PAGENAME}}}}}
| image =  {{{image|}}}
| image =  {{{image|}}}
 
| header19 = {{ #if: {{{stacks|}}}{{{autoignition|}}}{{{flashpoint|}}}{{{paintable|}}} | Properties <!--
| header19 = {{ #if: {{{stacks|}}}{{{autoignition|}}}{{{flashpoint|}}}{{{paintable|}}} | Properties
-->{{Infobox | decat = yes | child = yes
  {{Infobox | decat = yes | child = yes
     | label1 = Stacks
     | label1 = Stacks
     | data1 = {{#if: {{{stacks|}}} |
     | data1 = {{#if: {{{stacks|}}} |
Line 15: Line 14:
     }}
     }}
     | label2 = Paintable
     | label2 = Paintable
     | data2 = {{{paintable|}}}
     | data2 = {{Yesno|{{{paintable|}}}|yes=Yes|no=No|default=No}}
     | label3 = Autoignition
     | label3 = Autoignition
     | data3 = {{{autoignition|}}}
     | data3 = {{{autoignition|}}}
Line 40: Line 39:
| label14 = Volume
| label14 = Volume
| data14 = {{{volume|}}}
| data14 = {{{volume|}}}
| header20 = {{ #if: {{{createdwith|}}} | Recipe
| header20 = {{ #if: {{{createdwith|}}} | Recipe <!-- Old recipe style
  <!-- Old recipe style -->
-->{{Infobox | decat = yes | child = yes
  {{Infobox | decat = yes | child = yes
     | label1 = Created With
     | label1 = Created With
     | data1 = {{{createdwith|}}}
     | data1 = {{{createdwith|}}}
Line 49: Line 47:
     }}
     }}
   }}
   }}
| header21 = {{ #if: {{{recipe_machine1|}}} | Recipes
| header21 = {{ #if: {{{recipe_machine1|}}} | Recipes <!-- New recipe style
  <!-- New recipe style -->
-->{{Infobox | decat = yes | child = yes
  {{Infobox | decat = yes | child = yes
     | label1 = [[{{{recipe_machine1|}}}]]
     | label1 = [[{{{recipe_machine1|}}}]]
     | data1 = {{{recipe_cost1|}}}
     | data1 = {{{recipe_cost1|}}}
Line 60: Line 57:
   }}
   }}
}}
}}
 
| header22 = {{ #if: {{{logic|}}}{{{prefabhash|}}}{{{prefabname|}}}{{{slot_class|}}}{{{sorting_class|}}}{{{hashid|}}} | Logic <!--
| header22 = {{ #if: {{{logic|}}}{{{prefabhash|}}}{{{prefabname|}}}{{{slot_class|}}}{{{sorting_class|}}}{{{hashid|}}} | Logic  
-->{{Infobox | decat = yes | child = yes
  {{Infobox | decat = yes | child = yes
     | label1 = Item Hash
     | label1 = Prefab Hash
     | data1 = {{#if: {{{prefabhash|}}} | <span style="font-family: monospace;">{{{prefabhash|}}}</span> | {{#if: {{{hashid|}}}| <span style="font-family: monospace;">{{{hashid|}}}</span> }} }}
     | data1 = {{#if: {{{prefabhash|}}} | <span style="font-family: monospace;">{{{prefabhash|}}}</span> | {{#if: {{{hashid|}}}| <span style="font-family: monospace;">{{{hashid|}}}</span> }} }}
     | label2 = Prefab Name
     | label2 = Item Name
     | data2 = {{#if: {{{prefabname|}}} | <span style="font-family: monospace;">{{{prefabname|}}}</span>}}
     | data2 = {{#if: {{{prefabname|}}} | <span style="font-family: monospace;">{{{prefabname|}}}</span>}}
     | label3 = Logic Classes
     | label3 = Logic Classes
Line 73: Line 69:
   }}
   }}
}}
}}
| header23 = {{ #if: {{{nutrition|}}}{{{quality|}}}{{{growthtime|}}}{{{moodbonus|}}} | Food  
| header23 = {{ #if: {{{nutrition|}}}{{{quality|}}}{{{growthtime|}}}{{{moodbonus|}}} | Food <!--
  {{Infobox | decat = yes | child = yes
-->{{Infobox | decat = yes | child = yes
     | label1 = Food Nutrition
     | label1 = Food Nutrition
     | data1 = {{{nutrition|}}}
     | data1 = {{{nutrition|}}}
Line 85: Line 81:
   }}
   }}
}}
}}
}}
| header60={{{module|}}}
<includeonly>
| header61={{{module2|}}}
[[Category:Items]]
| header62={{{module3|}}}
{{ #if: {{{nutrition|}}}{{{quality|}}}{{{moodbonus|}}} | [[Category:Food]] }}
| header63={{{module4|}}}
{{ #if: {{{constructs|}}} | [[Category:Kits]] }}
}} [[Category:Items]] {{ #if: {{{nutrition|}}}{{{quality|}}}{{{moodbonus|}}} | [[Category:Food]] }} {{ #if: {{{constructs|}}} | [[Category:Kits]] }} {{ #if: {{{createdwith|}}}{{{cost|}}} | [[Category:Itembox with old style recipe]] }} {{ #if: {{{prefabhash|}}}{{{hashid|}}} | | [[Category:Infobox without prefab data]] }} {{ #if: {{{prefabname|}}} | | [[Category:Infobox without prefab data]] }} {{ #if: {{{slot_class|}}}{{{sorting_class|}}} | | [[Category:Itembox without logic classes]] }} {{#ifeq: {{{slot_class}}}|SlotClass.Tool|[[Category:Tools]]|}} </includeonly>
{{ #if: {{{createdwith|}}}{{{cost|}}} | [[Category:Itembox with old style recipe]] }}
{{ #if: {{{prefabhash|}}}{{{hashid|}}} | | [[Category:Infobox without prefab data]] }}
{{ #if: {{{prefabname|}}} | | [[Category:Infobox without prefab data]] }}
</includeonly>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Latest revision as of 05:41, 13 September 2026

Template documentation[view] [edit] [history] [purge]
item's name
item's image
Constructing Options item's constructing variations
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
Pressure Range item's pressure range
Max Temperature item's maximum temperature
Temperature Range item's temperature range
Volume item's volume
Properties
Stacks item's stacks (number only)
Paintable Yes
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
Logic
Item Hash item's prefab. hash
Item Name item's prefab. name
Logic Classes
item's slot class when in a slot (SlotClass.None, etc)
item's sorting class (used in Logic Sorter) (SortingClass.Default, etc)
Logic Parameters item's logic parameter
Food
Food Nutrition item's nutrition
Food Quality item's quality
Growth Time item's growth time

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 =
}}

TemplateData

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

item's name

Stringoptional
Imageimage

item's image

Filesuggested
Stacksstacks

item's stacks (number only)

Numberoptional
autoignitionautoignition

no description

Unknownoptional
flashpointflashpoint

no description

Unknownoptional
Paintablepaintable

item is paintable

Example
true/false/yes/no
Booleanoptional
Constructsconstructs

item's constructing variations

Unknownoptional
usedwithusedwith

no description

Unknownoptional
maxinpowermaxinpower

no description

Unknownoptional
maxoutpowermaxoutpower

no description

Unknownoptional
maxpressuremaxpressure

no description

Unknownoptional
pressurerangepressurerange

no description

Unknownoptional
maxtempmaxtemp

no description

Unknownoptional
temprangetemprange

no description

Unknownoptional
volumevolume

no description

Unknownoptional
createdwithcreatedwith

no description

Stringdeprecated
costcost

no description

Unknowndeprecated
recipe_machine1recipe_machine1

no description

Stringsuggested
recipe_cost1recipe_cost1

no description

Unknownsuggested
recipe_machine2recipe_machine2

no description

Stringoptional
recipe_cost2recipe_cost2

no description

Unknownoptional
recipe_machine3recipe_machine3

no description

Stringoptional
recipe_cost3recipe_cost3

no description

Unknownoptional
logiclogic

no description

Unknownoptional
prefabhashprefabhash

no description

Numbersuggested
prefabnameprefabname

no description

Stringsuggested
Slot Classslot_class

item's slot class when in a slot (SlotClass.None, etc)

Example
SlotClass.None
Stringoptional
Sorting Classsorting_class

item's sorting class (used in Logic Sorter) (SortingClass.Default, etc)

Example
SortingClass.Default
Stringoptional
hashidhashid

no description

Unknowndeprecated
nutritionnutrition

no description

Unknownoptional
qualityquality

no description

Unknownoptional
growthtimegrowthtime

no description

Unknownoptional
moodbonusmoodbonus

no description

Unknownoptional
modulemodule

no description

Unknownoptional
module2module2

no description

Unknownoptional
module3module3

no description

Unknownoptional
module4module4

no description

Unknownoptional