Difference between revisions of "Itembox"
From Unofficial Stationeers Wiki
(New labels for furnace recipes) |
Emilgardis (talk | contribs) |
||
(36 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
+ | | name = Itembox | ||
| title = {{{name|}}} | | title = {{{name|}}} | ||
| image = {{{image|}}} | | image = {{{image|}}} | ||
| label2 = Stacks | | label2 = Stacks | ||
− | | data2 = {{{stacks|}}} | + | | data2 = {{#if: {{{stacks|}}} | |
+ | {{#iferror: | ||
+ | {{#expr: {{{stacks|}}}+1 }} | ||
+ | | {{{stacks|}}} | | ||
+ | {{#ifexpr: {{{stacks|}}} = 1 | No | Yes ({{{stacks|}}}) }} | ||
+ | }}}} | ||
| label4 = Paintable | | label4 = Paintable | ||
| data4 = {{{paintable|}}} | | data4 = {{{paintable|}}} | ||
| label6 = Constructing Options | | label6 = Constructing Options | ||
| data6 = {{{constructs|}}} | | data6 = {{{constructs|}}} | ||
− | | | + | | header60 = {{ #if: {{{createdwith|}}} | Recipe}} |
− | | | + | | label62 = Created With |
− | | | + | | data62 = {{{createdwith|}}} |
− | | | + | | label64 = Cost |
− | | | + | | data64 = {{{cost|}}} |
<!-- New recipe style --> | <!-- New recipe style --> | ||
− | | | + | | header65 = {{ #if: {{{recipe_machine1|}}} | Recipes}} |
− | | | + | | label67 = [[{{{recipe_machine1|}}}]] |
− | | | + | | data67 = {{{recipe_cost1|}}} |
− | | | + | | label70 = [[{{{recipe_machine2|}}}]] |
− | | | + | | data70 = {{{recipe_cost2|}}} |
− | | | + | | label72 = [[{{{recipe_machine3|}}}]] |
− | | | + | | data72 = {{{recipe_cost3|}}} |
| label30 = Used With | | label30 = Used With | ||
Line 36: | Line 42: | ||
| label39 = Temperature Range | | label39 = Temperature Range | ||
| data39 = {{{temprange|}}} | | data39 = {{{temprange|}}} | ||
− | | | + | | label47 = Logic Parameters |
− | | | + | | data47 = {{{logic|}}} |
| label42 = Volume | | label42 = Volume | ||
| data42 = {{{volume|}}} | | data42 = {{{volume|}}} | ||
− | |||
− | |||
| label44 = Prefab Hash | | label44 = Prefab Hash | ||
− | | data44 = {{{ | + | | data44 = {{#if: {{{prefabhash|}}} | <span style="font-family: monospace;">{{{prefabhash|}}}</span> | {{#if: {{{hashid|}}}| <span style="font-family: monospace;">{{{hashid|}}}</span> }}}} |
− | }} | + | | label45 = Prefab Name |
− | < | + | | data45 = {{#if: {{{prefabname|}}} | <span style="font-family: monospace;">{{{prefabname|}}}</span>}} |
− | {{/ | + | | label46 = Logic Classes |
− | </ | + | | data46 = {{#if: {{{slot_class|}}}| <div style="font-family: monospace;">{{{slot_class|}}}</div> }}{{#if: {{{sorting_class|}}}|<div style="font-family: monospace;">{{{sorting_class|}}}</div> }} |
− | <includeonly> | + | }}<includeonly>[[Category:Items]]</includeonly> |
− | [[Category:Items]] | + | <noinclude>{{Documentation}}</noinclude> |
− | </ |
Latest revision as of 07:54, 1 May 2024
item's image | |
Stacks | item's stacks (number only) |
---|---|
Paintable | item is paintable |
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 |
Prefab Hash | item's prefab. hash |
Prefab 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 |
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 |
Example[edit]
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) }}
Template[edit]
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 = }}
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. |