Actions

Template

Difference between revisions of "ItemboxTest"

From Unofficial Stationeers Wiki

Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{Infobox
+
{{ Infobox
 
| name = Itembox
 
| name = Itembox
 
| title = {{{name|}}}
 
| title = {{{name|}}}
 
| image =  {{{image|}}}
 
| image =  {{{image|}}}
| header19 = {{ #if: {{{stacks|}}}{{{autoignition|}}}{{{flashpoint|}}}{{{paintable|}}} | Properties
+
| header19 = {{ #if: {{{stacks|}}} {{{autoignition|}}} {{{flashpoint|}}} {{{paintable|}}}
  {{Infobox | decat = yes | child = yes
+
            | Properties <!--
    | label1 = Stacks
+
            -->{{ Infobox
    | data1 = {{#if: {{{stacks|}}} |
+
              | decat = yes
      {{#iferror:
+
              | child = yes
        {{#expr: {{{stacks|}}}+1 }}
+
              | label1 = Stacks
        | {{{stacks|}}} |
+
              | data1 = {{#if: {{{stacks|}}}
        {{#ifexpr: {{{stacks|}}} = 1 | No | Yes ({{{stacks|}}}) }}
+
                        | {{#iferror: {{#expr: {{{stacks|}}}+1 }}
      }}
+
                        | {{{stacks|}}}
    }}
+
                        | {{#ifexpr: {{{stacks|}}} = 1
    | label2 = Paintable
+
                          | No
    | data2 = {{{paintable|}}}
+
                          | Yes ({{{stacks|}}})
    | label3 = Autoignition
+
                          }}
    | data3 = {{{autoignition|}}}
+
                        }}
    | label4 = Flashpoint
+
              | label2 = Paintable
    | data4 = {{{flashpoint|}}}
+
              | data2 = {{{paintable|}}}
  }}
+
              | label3 = Autoignition
}}
+
              | data3 = {{{autoignition|}}}
 +
              | label4 = Flashpoint
 +
              | data4 = {{{flashpoint|}}}
 +
              }}
 +
            }}
 
| label6 = Constructing Options
 
| label6 = Constructing Options
| data6 = {{{constructs|}}}
+
| data6 = {{#if: {{{constructs|}}} | {{{constructs|}}}[[Category:Kits]] }}
 
| label7 = Used With
 
| label7 = Used With
 
| data7 = {{{usedwith|}}}
 
| data7 = {{{usedwith|}}}
Line 40: Line 44:
 
| label14 = Volume
 
| label14 = Volume
 
| data14 = {{{volume|}}}
 
| data14 = {{{volume|}}}
| header20 = {{ #if: {{{createdwith|}}} | Recipe
+
| header20 = {{ #if: {{{createdwith|}}} {{{cost|}}}
  {{Infobox | decat = yes | child = yes
+
            | Recipe <!--
    | label1 = Created With
+
            -->{{Infobox
    | data1 = {{{createdwith|}}}
+
              | decat = yes
    | label2 = Cost
+
              | child = yes
    | data2 = {{{cost|}}}
+
              | label1 = Created With
    }}
+
              | data1 = {{{createdwith|}}}
  }}
+
              | label2 = Cost
| header21 = {{ #if: {{{recipe_machine1|}}} | Recipes
+
              | data2 = {{{cost|}}}
  {{Infobox | decat = yes | child = yes
+
              }} [[Category:Itembox with old style recipe]]
    | label1 = [[{{{recipe_machine1|}}}]]
+
            }}
    | data1 = {{{recipe_cost1|}}}
+
| header21 = {{ #if: {{{recipe_machine1|}}} {{{recipe_machine2|}}} {{{recipe_machine3|}}}
    | label4 = [[{{{recipe_machine2|}}}]]
+
            | Recipes <!--
    | data4 = {{{recipe_cost2|}}}
+
            -->{{Infobox
    | label6 = [[{{{recipe_machine3|}}}]]
+
              | decat = yes
    | data6 = {{{recipe_cost3|}}}
+
              | child = yes
  }}
+
              | label1 = [[{{{recipe_machine1|}}}]]
}}
+
              | data1 = {{{recipe_cost1|}}}
| header22 = {{ #if: {{{logic|}}}{{{prefabhash|}}}{{{prefabname|}}}{{{slot_class|}}}{{{sorting_class|}}}{{{hashid|}}} | Logic  
+
              | label4 = [[{{{recipe_machine2|}}}]]
  {{Infobox | decat = yes | child = yes
+
              | data4 = {{{recipe_cost2|}}}
    | label1 = Prefab Hash
+
              | label6 = [[{{{recipe_machine3|}}}]]
    | data1 = {{#if: {{{prefabhash|}}} | <span style="font-family: monospace;">{{{prefabhash|}}}</span> | {{#if: {{{hashid|}}}| <span style="font-family: monospace;">{{{hashid|}}}</span> }} }}
+
              | data6 = {{{recipe_cost3|}}}
    | label2 = Prefab Name
+
              }}
    | data2 = {{#if: {{{prefabname|}}} | <span style="font-family: monospace;">{{{prefabname|}}}</span>}}
+
            }}
    | label3 = Logic Classes
+
| header22 = {{ #if: {{{logic|}}} {{{prefabhash|}}} {{{prefabname|}}} {{{slot_class|}}} {{{sorting_class|}}} {{{hashid|}}}  
    | data3 = {{#if: {{{slot_class|}}}| <div style="font-family: monospace;">{{{slot_class|}}}</div> }}{{#if: {{{sorting_class|}}}|<div style="font-family: monospace;">{{{sorting_class|}}}</div> }}
+
            | Logic <!--
    | label4 = Logic Parameters
+
            -->{{Infobox | decat = yes | child = yes
    | data4 = {{{logic|}}}
+
              | label1 = Prefab Hash
  }}
+
              | data1 = {{#if: {{{prefabhash|}}}
}}
+
                        | <span style="font-family: monospace;">{{{prefabhash}}}</span>
| header23 = {{ #if: {{{nutrition|}}}{{{quality|}}}{{{growthtime|}}}{{{moodbonus|}}} | Food  
+
                        | {{#if: {{{hashid|}}}
  {{Infobox | decat = yes | child = yes
+
                          | <span style="font-family: monospace;">{{{hashid}}}</span>
    | label1 = Food Nutrition
+
                          | [[Category:Infobox without prefab data]]
    | data1 = {{{nutrition|}}}
+
                          }}
    | label2 = Food Quality
+
                        }}
    | data2 = {{{quality|}}}
+
              | label2 = Prefab Name
    | label3 = Growth Time
+
              | data2 = {{#if: {{{prefabname|}}}
    | data3 = {{{growthtime|}}}
+
                        | <span style="font-family: monospace;">{{{prefabname}}}</span>
    | label4 = Mood Bonus
+
                        | [[Category:Infobox without prefab data]]
    | data4 = {{{moodbonus|}}}
+
                        }}
  }}
+
              | label3 = Logic Classes
}}
+
              | data3 = {{#if: {{{slot_class|}}}
}}
+
                        | <div style="font-family: monospace;">{{{slot_class|}}}</div>
[[Category:Items]]
+
                        }}<!--
{{ #if: {{{nutrition|}}}{{{quality|}}}{{{moodbonus|}}} | [[Category:Food]] }}
+
                      -->{{#if: {{{sorting_class|}}}
{{ #if: {{{constructs|}}} | [[Category:Kits]] }}
+
                        | <div style="font-family: monospace;">{{{sorting_class|}}}</div>
{{ #if: {{{createdwith|}}}{{{cost|}}} | [[Category:Itembox with old style recipe]] }}
+
                        }}
{{ #if: {{{prefabhash|}}}{{{hashid|}}} | | [[Category:Infobox without prefab data]] }}
+
              | label4 = Logic Parameters
{{ #if: {{{prefabname|}}} | | [[Category:Infobox without prefab data]] }}
+
              | data4 = {{{logic|}}}
</includeonly>
+
              }}
<noinclude>{{Documentation}}</noinclude>
+
            }}
 +
| header23 = {{ #if: {{{nutrition|}}}{{{quality|}}}{{{growthtime|}}}{{{moodbonus|}}}  
 +
            | Food [[Category: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|}}}
 +
              }}
 +
            }}
 +
}}[[Category:Items]]<noinclude>{{Documentation}}</noinclude>

Revision as of 13:25, 25 June 2024