Actions

Special

Difference between pages "Template:Itembox" and "Template:Itembox/sandbox"

(Difference between pages)
Page 1
Page 2
(fix logic box)
 
 
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| name = Itembox
+
| name = Itembox
| title = {{{name|}}}
+
| title = {{{name|}}}
| image =  {{{image|}}}
+
| image =  {{{image|}}}
 +
| label2 = Stacks
 +
| data2 = {{#if: {{{stacks|}}} |
 +
{{#iferror:
 +
  {{#expr: {{{stacks|}}}+1 }}
 +
  | {{{stacks|}}} |
 +
  {{#ifexpr: {{{stacks|}}} = 1 | No | Yes ({{{stacks|}}}) }}
 +
}}}}
 +
| label4 = Paintable
 +
| data4 = {{{paintable|}}}
 +
| label6 = Constructing Options
 +
| data6 = {{{constructs|}}}
 +
| header60 = {{ #if: {{{createdwith|}}} | Recipe}}
 +
| label62 = Created With
 +
| data62 = {{{createdwith|}}}
 +
| label64 = Cost
 +
| data64 = {{{cost|}}}
 +
<!-- 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|}}}
  
| header19 = {{ #if: {{{stacks|}}}{{{autoignition|}}}{{{flashpoint|}}}{{{paintable|}}} | Properties
+
| label30 = Used With
  {{Infobox | decat = yes | child = yes
+
| data30 = {{{usedwith|}}}
    | label1 = Stacks
+
| label32 = Max Input Power
    | data1 = {{#if: {{{stacks|}}} |
+
| data32 = {{{maxinpower|}}}
      {{#iferror:
+
| label34 = Max Output Power
        {{#expr: {{{stacks|}}}+1 }}
+
| data34 = {{{maxoutpower|}}}
        | {{{stacks|}}} |
+
| label36 = Max Pressure
        {{#ifexpr: {{{stacks|}}} = 1 | No | Yes ({{{stacks|}}}) }}
+
| data36 = {{{maxpressure|}}}
      }}
+
| label37 = Pressure Range
    }}
+
| data37 = {{{pressurerange|}}}
    | label2 = Paintable
+
| label38 = Max Temperature
    | data2 = {{{paintable|}}}
+
| data38 = {{{maxtemp|}}}
    | label3 = Autoignition
+
| label39 = Temperature Range
    | data3 = {{{autoignition|}}}
+
| data39 = {{{temprange|}}}
    | label4 = Flashpoint
+
| label47 = Logic Parameters
    | data4 = {{{flashpoint|}}}
+
| data47 = {{{logic|}}}
  }}
+
| label42 = Volume
}}
+
| data42 = {{{volume|}}}
| label6 = Constructing Options
+
| label44 = Prefab Hash
| data6 = {{{constructs|}}}
+
| data44 = {{#if: {{{prefabhash|}}} | <span style="font-family: monospace;">{{{prefabhash|}}}</span> | {{#if: {{{hashid|}}}| <span style="font-family: monospace;">{{{hashid|}}}</span> }}}}
| label7 = Used With
+
| label45 = Prefab Name
| data7 = {{{usedwith|}}}
+
| data45 = {{#if: {{{prefabname|}}} | <span style="font-family: monospace;">{{{prefabname|}}}</span>}}
| label8 = Max Input Power
+
| label46 = Logic Classes
| data8 = {{{maxinpower|}}}
+
| data46 = {{#if: {{{slot_class|}}}| <div style="font-family: monospace;">{{{slot_class|}}}</div> }}{{#if: {{{sorting_class|}}}|<div style="font-family: monospace;">{{{sorting_class|}}}</div> }}
| label9 = Max Output Power
+
| header50 = {{ #if: {{{nutrition|}}}{{{quality|}}}{{{growthtime|}}}{{{moodbonus|}}} | Food }}
| data9 = {{{maxoutpower|}}}
+
| label51 = Food Nutrition
| label10 = Max Pressure
+
| data51 = {{{nutrition|}}}
| data10 = {{{maxpressure|}}}
+
| label52 = Food Quality
| label11 = Pressure Range
+
| data52 = {{{quality|}}}
| data11 = {{{pressurerange|}}}
+
| label53 = Growth Time
| label12 = Max Temperature
+
| data53 = {{{growthtime|}}}
| data12 = {{{maxtemp|}}}
+
| label54 = Mood Bonus
| label13 = Temperature Range
+
| data54 = {{{moodbonus|}}}
| data13 = {{{temprange|}}}
+
}}<includeonly>[[Category:Items]]{{ #if: {{{nutrition|}}}{{{quality|}}}{{{moodbonus|}}} | [[Category:Food]] }}</includeonly>
| label14 = Volume
 
| data14 = {{{volume|}}}
 
| header20 = {{ #if: {{{createdwith|}}} | Recipe
 
  <!-- Old recipe style -->
 
  {{Infobox | decat = yes | child = yes
 
    | label1 = Created With
 
    | data1 = {{{createdwith|}}}
 
    | label2 = Cost
 
    | data2 = {{{cost|}}}
 
    }}
 
  }}
 
| header21 = {{ #if: {{{recipe_machine1|}}} | Recipes
 
  <!-- New recipe style -->
 
  {{Infobox | decat = yes | child = yes
 
    | label1 = [[{{{recipe_machine1|}}}]]
 
    | data1 = {{{recipe_cost1|}}}
 
    | label4 = [[{{{recipe_machine2|}}}]]
 
    | data4 = {{{recipe_cost2|}}}
 
    | label6 = [[{{{recipe_machine3|}}}]]
 
    | data6 = {{{recipe_cost3|}}}
 
  }}
 
}}
 
 
 
| header22 = {{ #if: {{{logic|}}}{{{prefabhash|}}}{{{prefabname|}}}{{{slot_class|}}}{{{sorting_class|}}}{{{hashid|}}} | Logic
 
  {{Infobox | decat = yes | child = yes
 
    | label1 = Prefab Hash
 
    | data1 = {{#if: {{{prefabhash|}}} | <span style="font-family: monospace;">{{{prefabhash|}}}</span> | {{#if: {{{hashid|}}}| <span style="font-family: monospace;">{{{hashid|}}}</span> }} }}
 
    | label2 = Prefab Name
 
    | data2 = {{#if: {{{prefabname|}}} | <span style="font-family: monospace;">{{{prefabname|}}}</span>}}
 
    | label3 = Logic Classes
 
    | data3 = {{#if: {{{slot_class|}}}| <div style="font-family: monospace;">{{{slot_class|}}}</div> }}{{#if: {{{sorting_class|}}}|<div style="font-family: monospace;">{{{sorting_class|}}}</div> }}
 
    | label4 = Logic Parameters
 
    | data4 = {{{logic|}}}
 
  }}
 
}}
 
| header23 = {{ #if: {{{nutrition|}}}{{{quality|}}}{{{growthtime|}}}{{{moodbonus|}}} | Food  
 
  {{Infobox | decat = yes | child = yes
 
    | label1 = Food Nutrition
 
    | data1 = {{{nutrition|}}}
 
    | label2 = Food Quality
 
    | data2 = {{{quality|}}}
 
    | label3 = Growth Time
 
    | data3 = {{{growthtime|}}}
 
    | label4 = Mood Bonus
 
    | data4 = {{{moodbonus|}}}
 
  }}
 
}}
 
}}
 
<includeonly>
 
[[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]] }}
 
</includeonly>
 
 
<noinclude>{{Documentation}}</noinclude>
 
<noinclude>{{Documentation}}</noinclude>