Difference between revisions of "Template:Recipe draw/sandbox"

From Captain of Industry Wiki
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><templatestyles src="Template:Recipe draw/styles.css" /><!--


   ** Clear variables in case of multiple uses on one page **
   ** Clear variables in case of multiple uses on one page **
Line 7: Line 6:
-->{{#vardefine: accepts | no}}<!--
-->{{#vardefine: accepts | no}}<!--
-->{{#vardefine: provides | no}}<!--
-->{{#vardefine: provides | no}}<!--
-->{{#vardefine: special_output | no}}<!--
   
   
   ** Set up variables to specify desired settings and reuse code **
   ** Set up variables to specify desired settings and reuse code **
Line 16: Line 16:
-->{{#vardefine: imgsz_reg | 48x48px }}<!--
-->{{#vardefine: imgsz_reg | 48x48px }}<!--


  ** List of pollution: must input in small latter **
-->{{#vardefine: pollution_1 | air pollution }}<!--
-->{{#vardefine: pollution_2 | water pollution }}<!--
-->{{#vardefine: pollution_3 | }}<!--
-->{{#vardefine: pollution_4 | }}<!--
  ** Apply style **
--><templatestyles src="Template:Recipe draw/styles.css" /><!--
--><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!--
--><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!--


   ** Special output for when `Mining = yes` **
   ** Special output for when `Mining = yes` **


-->{{#if: {{{Mining|}}} |<!--
-->{{#ifeq: {{lc:{{{Input1Name|}}}}} | mining |<!--
   --><div class="block">[[File:Mining.png{{!}}{{#var: imgsz_large}}{{!}}link=Mining]]</div><!--
   --><div class="block">[[File:Mining.png{{!}}{{#var: imgsz_large}}{{!}}link=Designations#Mining]]</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">[[File:{{{Output1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Output1Name}}}]]</div><!--
   --><div class="block">[[File:{{{Output1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Output1Name}}}]]</div><!--
  -->{{#vardefine: special_output | yes}}<!--
-->}}<!--
-->}}<!--


   ** Special output for when `Dumping = yes` **
   ** Special output for when `Dumping = yes` **


-->{{#if: {{{Dumping|}}} |<!--
-->{{#ifeq: {{lc:{{{Output1Name|}}}}} | dumping |<!--
   --><div class="block">[[File:{{{Input1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Input1Name}}}]]</div><!--
   --><div class="block">[[File:{{{Input1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Input1Name}}}]]</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">[[File:Dumping.png{{!}}{{#var: imgsz_large}}{{!}}link=Dumping]]</div><!--
   --><div class="block">[[File:Dumping.png{{!}}{{#var: imgsz_large}}{{!}}link=Designations#Dumping]]</div><!--
  -->{{#vardefine: special_output | yes}}<!--
-->}}<!--
-->}}<!--


   ** Stop output if we we drew Mining or Dumping **
   ** Stop output if we drew Mining or Dumping **


-->{{#if: {{{Mining|}}}{{{Dumping|}}} ||<!--
-->{{#ifeq: {{#var: special_output}} | no |<!--


   ** Check if Template:Infobox_machine already knows the building. If not, try the `Building` param. **
   ** Check if Template:Infobox_machine already knows the building. If not, try the `Building` param. **
Line 48: Line 60:
   -->}}<!--
   -->}}<!--
-->}}<!--
-->}}<!--
  ** Determine if we should display the "PROVIDES" or "ACCEPTS" text in the output **
-->{{#if: {{{Input1Name|}}}{{{Input2Name|}}}{{{Input3Name|}}}{{{Input4Name|}}}{{{Input5Name|}}}{{{Input6Name|}}} || {{#vardefine: provides | yes}} }} <!--
-->{{#vardefine: combined_output | {{lc:{{{Output1Name|}}}{{{Output2Name|}}}{{{Output3Name|}}}{{{Output4Name|}}}{{{Output5Name|}}}{{{Output6Name|}}} }} }}<!--
-->{{#ifeq: <!--
  -->{{#expr: <!--
    -->    {{#ifeq: {{#var: combined_output}} | {{#var: pollution_1}} | 1 | 0 }} <!--
    --> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_2}} | 1 | 0 }} <!--
    --> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_3}} | 1 | 0 }} <!--
    --> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_4}} | 1 | 0 }} <!--
    --> or {{#ifeq: {{#var: combined_output}} | | 1 | 0 }} <!--
  -->}} | 1 | <!--
  -->{{#vardefine: accepts| yes}} | <!--
-->}} <!--


   ** Main sequence starts here **
   ** Main sequence starts here **


-->{{#ifeq: {{#var: bldg}} | none ||<!--
-->{{#ifeq: {{#var: bldg}} | none ||<!--
  ** Determine if we should display the "PROVIDES" or "ACCEPTS" text in the output **
-->{{#switch: {{lc:{{#var: bldg}}}}
    | flare   
    | smoke stack
    | smoke stack (large)
    | burner (solid)
    | liquid dump
    | gas injection pump = {{#vardefine: accepts | yes}}
    | groundwater pump
    | air separator
    | seawater pump
    | seawater pump (tall)
    | oil pump = {{#vardefine: provides | yes}}
  }}<!--


   ** Draw the building (and colon) unless the user or Template:Infobox_machine set it to hidden. **
   ** Draw the building (and colon) unless the user or Template:Infobox_machine set it to hidden. **
Line 81: Line 93:
-->{{#ifeq: {{#var: provides}} | yes | <div class="block accepts-provides">PROVIDES</div> }}<!--
-->{{#ifeq: {{#var: provides}} | yes | <div class="block accepts-provides">PROVIDES</div> }}<!--


   ** Draw 1st input unless {{#var: provides}} is `yes`. **
   ** Draw outputs except pollution if {{#var: provides}} is `yes`. **
 
   ** Draw input unless {{#var: provides}} is `yes`. **
-->{{#ifeq: {{#var: provides}} | yes ||<!--
 
  -->{{#if: {{{Input1Name|}}} |<!--
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Input1Unit|}}} | &nbsp; | {{{Input1Qty|}}}&nbsp;{{{Input1Unit|}}} }}</div><!--
      -->[[File:{{{Input1Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Input1Name}}}]]<!--
      -->{{#if: {{{Input1Unit|}}} | <!--
        --><div class="lower">{{{Input1Qty|}}}&nbsp;{{{Input1Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Input1Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--
-->}}<!--
 
   ** Draw outputs instead if {{#var: provides}} is `yes`. **


-->{{#ifeq: {{#var: provides}} | yes |<!--
-->{{#ifeq: {{#var: provides}} | yes |<!--
 
   -->{{Recipe item | Name = {{{Output1Name|}}} | Quantity = {{{Output1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output1Unit|}}} | Pollution = hide }}<!--
  ** Draw the 1st output **
  -->{{Recipe item | Name = {{{Output2Name|}}} | Quantity = {{{Output2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output2Unit|}}} | Pollution = hide | Plus = yes }}<!--
 
   -->{{Recipe item | Name = {{{Output3Name|}}} | Quantity = {{{Output3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output3Unit|}}} | Pollution = hide | Plus = yes }}<!--
   -->{{#if: {{{Output1Name|}}} |<!--
  -->{{Recipe item | Name = {{{Output4Name|}}} | Quantity = {{{Output4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output4Unit|}}} | Pollution = hide | Plus = yes }}<!--
    --><div class="block"><!--
   -->{{Recipe item | Name = {{{Output5Name|}}} | Quantity = {{{Output5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output5Unit|}}} | Pollution = hide | Plus = yes }}<!--
      --><div class="upper">{{#if: {{{Output1Unit|}}} | &nbsp; | {{{Output1Qty|}}}&nbsp;{{{Output1Unit|}}} }}</div><!--
  -->{{Recipe item | Name = {{{Output6Name|}}} | Quantity = {{{Output6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output6Unit|}}} | Pollution = hide | Plus = yes }}<!--
      -->[[File:{{{Output1Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output1Name}}}]]<!--
   -->|<!--
      -->{{#if: {{{Output1Unit|}}} | <!--
   -->{{Recipe item | Name = {{{Input1Name|}}} | Quantity = {{{Input1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input1Unit|}}} }} <!--
        --><div class="lower">{{{Output1Qty|}}}&nbsp;{{{Output1Unit|}}}</div>|<!--
  -->{{Recipe item | Name = {{{Input2Name|}}} | Quantity = {{{Input2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input2Unit|}}} | Plus = yes }}<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output1Qty|}}} round 2 }}</div><!--
   -->{{Recipe item | Name = {{{Input3Name|}}} | Quantity = {{{Input3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input3Unit|}}} | Plus = yes }}<!--
      -->}}<!--
  -->{{Recipe item | Name = {{{Input4Name|}}} | Quantity = {{{Input4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input4Unit|}}} | Plus = yes }}<!--
    --></div><!--
   -->{{Recipe item | Name = {{{Input5Name|}}} | Quantity = {{{Input5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input5Unit|}}} | Plus = yes }}<!--
  -->}}<!--
  -->{{Recipe item | Name = {{{Input6Name|}}} | Quantity = {{{Input6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Input6Unit|}}} | Plus = yes }}<!--
 
  ** Draw 2nd output **
 
   -->{{#if: {{{Output2Name|}}} |<!--
    --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Output2Unit|}}} | &nbsp; | {{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}} }}</div><!--
      -->[[File:{{{Output2Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output2Name}}}]]<!--
      -->{{#if: {{{Output2Unit|}}} | <!--
        --><div class="lower">{{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output2Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--
 
  ** Draw 3rd output **
 
   -->{{#if: {{{Output3Name|}}} |<!--
    --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Output3Unit|}}} | &nbsp; | {{{Output3Qty|}}}&nbsp;{{{Output3Unit|}}} }}</div><!--
      -->[[File:{{{Output3Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output3Name}}}]]<!--
      -->{{#if: {{{Output3Unit|}}} | <!--
        --><div class="lower">{{{Output3Qty|}}}&nbsp;{{{Output3Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output3Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
   -->}}<!--
 
  ** Draw 4th output **
 
   -->{{#if: {{{Output4Name|}}} |<!--
    --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Output4Unit|}}} | &nbsp; | {{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}} }}</div><!--
      -->[[File:{{{Output4Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output4Name}}}]]<!--
      -->{{#if: {{{Output4Unit|}}} | <!--
        --><div class="lower">{{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output4Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--
 
  ** Draw 5th output **
 
   -->{{#if: {{{Output5Name|}}} |<!--
    --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Output5Unit|}}} | &nbsp; | {{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}} }}</div><!--
      -->[[File:{{{Output5Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output5Name}}}]]<!--
      -->{{#if: {{{Output5Unit|}}} | <!--
        --><div class="lower">{{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output5Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--
 
  ** Draw 6th output **
 
   -->{{#if: {{{Output6Name|}}} |<!--
    --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Output6Unit|}}} | &nbsp; | {{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}} }}</div><!--
      -->[[File:{{{Output6Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output6Name}}}]]<!--
      -->{{#if: {{{Output6Unit|}}} | <!--
        --><div class="lower">{{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output6Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--
 
-->}}<!--
-->}}<!--


  ** Draw 2nd input **
-->{{#if: {{{Input2Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="upper">{{#if: {{{Input2Unit|}}} | &nbsp; | {{{Input2Qty|}}}&nbsp;{{{Input2Unit|}}} }}</div><!--
    -->[[File:{{{Input2Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Input2Name}}}]]<!--
    -->{{#if: {{{Input2Unit|}}} | <!--
      --><div class="lower">{{{Input2Qty|}}}&nbsp;{{{Input2Unit|}}}</div>|<!--
      --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Input2Qty|}}} round 2 }}</div><!--
    -->}}<!--
  --></div><!--
-->}}<!--
  ** Draw 3rd input **
-->{{#if: {{{Input3Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="upper">{{#if: {{{Input3Unit|}}} | &nbsp; | {{{Input3Qty|}}}&nbsp;{{{Input3Unit|}}} }}</div><!--
    -->[[File:{{{Input3Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Input3Name}}}]]<!--
    -->{{#if: {{{Input3Unit|}}} | <!--
      --><div class="lower">{{{Input3Qty|}}}&nbsp;{{{Input3Unit|}}}</div>|<!--
      --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Input3Qty|}}} round 2 }}</div><!--
    -->}}<!--
  --></div><!--
-->}}<!--
  ** Draw 4th input **
-->{{#if: {{{Input4Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="upper">{{#if: {{{Input4Unit|}}} | &nbsp; | {{{Input4Qty|}}}&nbsp;{{{Input4Unit|}}} }}</div><!--
    -->[[File:{{{Input4Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Input4Name}}}]]<!--
    -->{{#if: {{{Input4Unit|}}} | <!--
      --><div class="lower">{{{Input4Qty|}}}&nbsp;{{{Input4Unit|}}}</div>|<!--
      --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Input4Qty|}}} round 2 }}</div><!--
    -->}}<!--
  --></div><!--
-->}}<!--
  ** Draw 5th input **
-->{{#if: {{{Input5Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="upper">{{#if: {{{Input5Unit|}}} | &nbsp; | {{{Input5Qty|}}}&nbsp;{{{Input5Unit|}}} }}</div><!--
    -->[[File:{{{Input5Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Input5Name}}}]]<!--
    -->{{#if: {{{Input5Unit|}}} | <!--
      --><div class="lower">{{{Input5Qty|}}}&nbsp;{{{Input5Unit|}}}</div>|<!--
      --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Input5Qty|}}} round 2 }}</div><!--
    -->}}<!--
  --></div><!--
-->}}<!--
  ** Draw 6th input **
-->{{#if: {{{Input6Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="upper">{{#if: {{{Input6Unit|}}} | &nbsp; | {{{Input6Qty|}}}&nbsp;{{{Input6Unit|}}} }}</div><!--
    -->[[File:{{{Input6Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Input6Name}}}]]<!--
    -->{{#if: {{{Input6Unit|}}} | <!--
      --><div class="lower">{{{Input6Qty|}}}&nbsp;{{{Input6Unit|}}}</div>|<!--
      --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Input6Qty|}}} round 2 }}</div><!--
    -->}}<!--
  --></div><!--
-->}}<!--


   ** Draw the recipe times unless it has a unit defined (KW, MW, etc). **
   ** Draw the recipe times unless it has a unit defined (KW, MW, etc). **
Line 268: Line 124:
     -->{{#ifeq: {{lc:{{{Time}}}}} | <!-- instant --> 0 | <div>{{#var: img_arrow}}</div> |<!--
     -->{{#ifeq: {{lc:{{{Time}}}}} | <!-- instant --> 0 | <div>{{#var: img_arrow}}</div> |<!--
       --><div class="upper"><!--
       --><div class="upper"><!--
         -->{{#ifeq: {{#var: provides}} | yes |<!--
         -->{{#ifeq: {{#var: provides}} | yes | /&nbsp; }}<!--
          -->/&nbsp; |<!--
        -->{{#ifeq: {{#var: accepts}} | yes | /&nbsp; }}<!--
          -->{{#ifeq: {{#var: accepts}} | yes |<!--
            -->/&nbsp;<!--
          -->}}<!--
        -->}}<!--
         -->{{{Time}}}&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
         -->{{{Time}}}&nbsp;[[File:Clock.png|link=Time|16x16px]]<!--
       --></div><!--
       --></div><!--
       --><div><!--
       --><div><!--
         -->{{#ifeq: {{#var: provides}} | yes |<!--
         -->{{#ifeq: {{#var: provides}} | yes | <br/> |<!--
          --><br/> |<!--
           -->{{#ifeq: {{#var: accepts}} | yes | <br/> |<!--
           -->{{#ifeq: {{#var: accepts}} | yes |<!--
            --><br/> |<!--
             -->{{#var: img_arrow}}<!--
             -->{{#var: img_arrow}}<!--
           -->}}<!--
           -->}}<!--
Line 286: Line 136:
       --></div><!--
       --></div><!--
       --><div class="lower blue"><!--
       --><div class="lower blue"><!--
         -->{{#ifeq: {{#var: provides}} | yes |<!--
         -->{{#ifeq: {{#var: provides}} | yes | /&nbsp; }}<!--
          -->/&nbsp; |<!--
        -->{{#ifeq: {{#var: accepts}} | yes | /&nbsp; }}<!--
          -->{{#ifeq: {{#var: accepts}} | yes |<!--
            -->/&nbsp;<!--
          -->}}<!--
        -->}}<!--
         -->60&nbsp;[[File:Clock 60s.png|link=Time|16x16px]]<!--
         -->60&nbsp;[[File:Clock 60s.png|link=Time|16x16px]]<!--
       --></div><!--
       --></div><!--
Line 298: Line 144:
-->}}<!--
-->}}<!--


   ** Draw outputs unless {{#var: provides}} is `yes` **
 
   ** Draw outputs except pollution unless {{#var: provides}} is `yes` **


-->{{#ifeq: {{#var: provides}} | yes ||<!--
-->{{#ifeq: {{#var: provides}} | yes ||<!--
 
   -->{{Recipe item | Name = {{{Output1Name|}}} | Quantity = {{{Output1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output1Unit|}}} | Pollution = hide }}<!--
  ** Draw 1st output **
  -->{{Recipe item | Name = {{{Output2Name|}}} | Quantity = {{{Output2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output2Unit|}}} | Pollution = hide | Plus = yes }}<!--
 
  -->{{Recipe item | Name = {{{Output3Name|}}} | Quantity = {{{Output3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output3Unit|}}} | Pollution = hide | Plus = yes }}<!--
   -->{{#if: {{{Output1Name|}}} |<!--
  -->{{Recipe item | Name = {{{Output4Name|}}} | Quantity = {{{Output4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output4Unit|}}} | Pollution = hide | Plus = yes }}<!--
 
  -->{{Recipe item | Name = {{{Output5Name|}}} | Quantity = {{{Output5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output5Unit|}}} | Pollution = hide | Plus = yes }}<!--
    ** If {{#var: accepts}} is `yes`, then draw a vertical line **
  -->{{Recipe item | Name = {{{Output6Name|}}} | Quantity = {{{Output6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output6Unit|}}} | Pollution = hide | Plus = yes }}<!--
 
    -->{{#ifeq: {{#var: accepts}} | yes |<!--
      --><div style="display: inline-block;
                    vertical-align: middle;
                    min-height: 90px;
                    border-left: 2px solid #6d6d6d;
                    margin-right: 12px"
        ></div><!--
    -->}}<!--
 
    --><div class="block"><!--
      --><div class="upper">{{#if: {{{Output1Unit|}}} | &nbsp; | {{{Output1Qty|}}}&nbsp;{{{Output1Unit|}}} }}</div><!--
      -->[[File:{{{Output1Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output1Name}}}]]<!--
      -->{{#if: {{{Output1Unit|}}} | <!--
        --><div class="lower">{{{Output1Qty|}}}&nbsp;{{{Output1Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output1Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
   -->}}<!--
   -->}}<!--
 
  ** Draw vertical line and pollution if pollution exists **


   ** Draw 2nd output **
-->{{#vardefine: all_pollutions |<!--
   -->{{Recipe item | Name = {{{Output1Name|}}} | Quantity = {{{Output1Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output1Unit|}}} | Pollution = only }}<!--
  -->{{Recipe item | Name = {{{Output2Name|}}} | Quantity = {{{Output2Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output2Unit|}}} | Pollution = only }}<!--
  -->{{Recipe item | Name = {{{Output3Name|}}} | Quantity = {{{Output3Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output3Unit|}}} | Pollution = only }}<!--
  -->{{Recipe item | Name = {{{Output4Name|}}} | Quantity = {{{Output4Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output4Unit|}}} | Pollution = only }}<!--
  -->{{Recipe item | Name = {{{Output5Name|}}} | Quantity = {{{Output5Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output5Unit|}}} | Pollution = only }}<!--
  -->{{Recipe item | Name = {{{Output6Name|}}} | Quantity = {{{Output6Qty|}}} | Time = {{{Time|}}} | Unit = {{{Output6Unit|}}} | Pollution = only }}<!--
-->}}<!--
-->{{#if: {{#var: all_pollutions}} |<!--
  -->&emsp;<!--
  --><div style="display: inline-block;
                vertical-align: middle;
                min-height: 90px;
                border-left: 2px solid #6d6d6d;
                margin-right: 11px"
  --></div><!--
  -->{{#var: all_pollutions}}<!--
-->}}<!--


  -->{{#if: {{{Output2Name|}}} |<!--
-->}}<!-- End of building check
    --><div class="block">{{#var: img_plus}}</div><!--
-->}}<!-- End of Mining/Dumping check
    --><div class="block"><!--
-->{{#if: {{{Unreleased|}}} | <div class="unreleased_label">UNRELEASED</div> }}<!-- Big ol' label for unreleased content
      --><div class="upper">{{#if: {{{Output2Unit|}}} | &nbsp; | {{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}} }}</div><!--
--></div></includeonly><noinclude>
      -->[[File:{{{Output2Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output2Name}}}]]<!--
      -->{{#if: {{{Output2Unit|}}} | <!--
        --><div class="lower">{{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output2Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--


  ** Draw 3rd output **


  -->{{#if: {{{Output3Name|}}} |<!--
{{Recipe draw/sandbox
    --><div class="block">{{#var: img_plus}}</div><!--
  | Input1Name  = Mining
    --><div class="block"><!--
  | Output1Name = Copper Ore
      --><div class="upper">{{#if: {{{Output3Unit|}}} | &nbsp; | {{{Output3Qty|}}}&nbsp;{{{Output3Unit|}}} }}</div><!--
}}
      -->[[File:{{{Output3Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output3Name}}}]]<!--
      -->{{#if: {{{Output3Unit|}}} | <!--
        --><div class="lower">{{{Output3Qty|}}}&nbsp;{{{Output3Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output3Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--


   ** Draw 4th output **
{{Recipe draw/sandbox
   | Output1Name = Dumping
  | Input1Name  = Rock
}}


  -->{{#if: {{{Output4Name|}}} |<!--
{{Recipe draw/sandbox
    --><div class="block">{{#var: img_plus}}</div><!--
  | Building    = Rotary Kiln
    --><div class="block"><!--
  | Input1Name  = Limestone
      --><div class="upper">{{#if: {{{Output4Unit|}}} | &nbsp; | {{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}} }}</div><!--
  | Input1Qty  = 12
      -->[[File:{{{Output4Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output4Name}}}]]<!--
  | Input2Name  = Coal
      -->{{#if: {{{Output4Unit|}}} | <!--
  | Input2Qty  = 2
        --><div class="lower">{{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}}</div>|<!--
  | Time        = 10
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output4Qty|}}} round 2 }}</div><!--
  | Output1Name = Cement
      -->}}<!--
  | Output1Qty  = 4
    --></div><!--
  | Output2Name = Exhaust
  -->}}<!--
  | Output2Qty  = 8
}}


   ** Draw 5th output **
{{Recipe draw/sandbox
   | Building    = Air Separator
  | Time        = 20
  | Output1Name = Oxygen
  | Output1Qty  = 12
  | Output2Name = Nitrogen
  | Output2Qty  = 12
}}


  -->{{#if: {{{Output5Name|}}} |<!--
{{Recipe draw/sandbox
    --><div class="block">{{#var: img_plus}}</div><!--
  | Building    = Smoke Stack
    --><div class="block"><!--
  | Input1Name  = Oxygen
      --><div class="upper">{{#if: {{{Output5Unit|}}} | &nbsp; | {{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}} }}</div><!--
  | Input1Qty  = 200
      -->[[File:{{{Output5Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output5Name}}}]]<!--
  | Time        = 20
      -->{{#if: {{{Output5Unit|}}} | <!--
}}
        --><div class="lower">{{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}}</div>|<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output5Qty|}}} round 2 }}</div><!--
      -->}}<!--
    --></div><!--
  -->}}<!--


   ** Draw 6th output **
{{Recipe draw/sandbox
   | Building    = Liquid Dump
  | Input1Name  = Waste Water
  | Input1Qty  = 2
  | Time        = 2
  | Output1Name = Water Pollution
  | Output1Qty  = 2
}}


  -->{{#if: {{{Output6Name|}}} |<!--
{{Recipe draw/sandbox
    --><div class="block">{{#var: img_plus}}</div><!--
  | Building    = Low-pressure Turbine
    --><div class="block"><!--
  | Input1Name  = Steam Lo
      --><div class="upper">{{#if: {{{Output6Unit|}}} | &nbsp; | {{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}} }}</div><!--
  | Input1Qty  = 4
      -->[[File:{{{Output6Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output6Name}}}]]<!--
  | Time        = 5
      -->{{#if: {{{Output6Unit|}}} | <!--
  | Output1Name = Mechanical Power
        --><div class="lower">{{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}}</div>|<!--
  | Output1Qty  = 1
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output6Qty|}}} round 2 }}</div><!--
  | Output1Unit = MW
      -->}}<!--
  | Output2Name = Steam Depleted
    --></div><!--
   | Output2Qty  = 4
   -->}}<!--
}}
-->}}<!--
-->}}<!-- End of building check
-->}}<!-- End of Mining/Dumping check


   ** Draw list of researches that unlock this recipe **
{{Recipe draw/sandbox
   | Building    = Power Generator
  | Input1Name  = Mechanical Power
  | Input1Qty  = 500
  | Input1Unit  = KW
  | Time        = 0
  | Output1Name = Electricity
  | Output1Qty  = 250
  | Output1Unit = KW
}}


  -->{{#if: {{{Research1|}}} |<!--
{{Recipe draw/sandbox
    --><div style="border-top: 2px solid #6d6d6d; font-weight: normal; font-size: 80%; margin-top: 4px; text-align: center"><!--
  | Building    = Waste Sorting Plant
      -->Unlocked by: [[{{{Research1|}}}]]<!--
  | Time        = 20
  | Input1Name  = Recyclables
  | Input1Qty  = 48
  | Output1Name = Iron Scrap
  | Output1Unit = ?
  | Output2Name = Copper Scrap
  | Output2Unit = ?
  | Output3Name = Gold Scrap
  | Output3Unit = ?
  | Output4Name = Broken Glass
  | Output4Unit = ?
}}


      -->{{#if: {{{Research2|}}} |<!--
{{Recipe draw/sandbox
        -->, [[{{{Research2|}}}]]<!--
  | Building    = Exhaust Scrubber
      -->}}<!--
  | Input1Name  = Exhaust
  | Input1Qty  = 30
  | Input2Name  = Water
  | Input2Qty  = 4
  | Time        = 10
  | Output1Name = Sulfur
  | Output1Qty  = 1
  | Output2Name = Carbon Dioxide
  | Output2Qty  = 12
  | Output3Name = Steam Lo
  | Output3Qty  = 4
  | Output4Name = Air Pollution
  | Output4Qty  = 4
}}


      -->{{#if: {{{Research3|}}} |<!--
{{Recipe draw/sandbox
        -->, [[{{{Research3|}}}]]<!--
  | Building    = Mixer
      -->}}<!--
  | HideBldg    = yes
  | Input1Name  = Sand
  | Input1Qty  = 18
  | Input2Name  = Limestone
  | Input2Qty  = 4
  | Input3Name  = Salt
  | Input3Qty  = 4
  | Time        = 20
  | Output1Name = Glass Mix
  | Output1Qty  = 14
}}


      -->{{#if: {{{Research4|}}} |<!--
{{Recipe draw/sandbox
        -->, [[{{{Research4|}}}]]<!--
  | Building    = Air Separator
      -->}}<!--
  | Time        = 20
  | Output1Name = Oxygen
  | Output1Qty  = 12
  | Output2Name = Nitrogen
  | Output2Qty  = 12
  | Output3Name = Water Pollution
  | Output3Qty  = -1
  | Unreleased  = yes
}}


    --></div><!--
  -->}}<!--
-->{{#if: {{{Unreleased|}}} | <div class="unreleased_label">UNRELEASED</div> }}<!-- Big ol' label for unreleased content
--></div></includeonly><noinclude>{{Recipe draw/sandbox
|Building=Cracking Unit
|Time=20
|Input1Name=Diesel
|Input1Qty=8
|Input2Name=Steam Hi
|Input2Qty=1
|Output1Name=Naphtha
|Output1Qty=8
|Output2Name=Sour Water
|Output2Qty=1
|Research1=Research 1
|Research2=Research 2
|Research3=Research 3
|Research4=Research 4
}}
{{Recipe draw/sandbox
{{Recipe draw/sandbox
|Building=Cracking Unit
  | Building   =  
|Unreleased=yes
  | Time       = 20
|Time=20
  | Output1Name = Oxygen
|Input1Name=Diesel
  | Output1Qty = 12
|Input1Qty=8
  | Output2Name = Nitrogen
|Input2Name=Steam Hi
  | Output2Qty = 12
|Input2Qty=1
|Output1Name=Naphtha
|Output1Qty=8
|Output2Name=Sour Water
|Output2Qty=1
|Research1=Research 1
|Research2=Research 2
|Research3=Research 3
|Research4=Research 4
}}
}}
</noinclude>
</noinclude>

Latest revision as of 14:08, 16 May 2023


Mining.png
Transform.png
Copper Ore.png
Rock.png
Transform.png
Dumping.png
Rotary Kiln.png
:
12
Limestone.png
72
Plus.png
2
Coal.png
12
10 Clock.png
Transform.png
60 Clock 60s.png
4
Cement.png
24
Plus.png
8
Exhaust.png
48
Air Separator.png
:
PROVIDES
12
Oxygen.png
36
Plus.png
12
Nitrogen.png
36
/ 20 Clock.png

/ 60 Clock 60s.png
Smoke Stack.png
:
ACCEPTS
200
Oxygen.png
600
/ 20 Clock.png

/ 60 Clock 60s.png
Liquid Dump.png
:
ACCEPTS
2
Waste Water.png
60
/ 2 Clock.png

/ 60 Clock 60s.png
2
Water Pollution.png
60
Low-pressure Turbine.png
:
4
Steam Lo.png
48
Clock.png
Transform.png
60 Clock 60s.png
 
Mechanical Power.png
1 MW
Plus.png
4
Steam Depleted.png
48
Power Generator.png
:
 
Mechanical Power.png
500 KW
Transform.png
 
Electricity.png
250 KW
Waste Sorting Plant.png
:
48
Recyclables.png
144
20 Clock.png
Transform.png
60 Clock 60s.png
?
Iron Scrap.png
?
Plus.png
?
Copper Scrap.png
?
Plus.png
?
Gold Scrap.png
?
Plus.png
?
Broken Glass.png
?
Exhaust Scrubber.png
:
30
Exhaust.png
180
Plus.png
4
Water.png
24
10 Clock.png
Transform.png
60 Clock 60s.png
1
Sulfur.png
6
Plus.png
12
Carbon Dioxide.png
72
Plus.png
4
Steam Lo.png
24
4
Air Pollution.png
24
18
Sand.png
54
Plus.png
4
Limestone.png
12
Plus.png
4
Salt.png
12
20 Clock.png
Transform.png
60 Clock 60s.png
14
Glass Mix.png
42
Air Separator.png
:
PROVIDES
12
Oxygen.png
36
Plus.png
12
Nitrogen.png
36
/ 20 Clock.png

/ 60 Clock 60s.png
-1
Water Pollution.png
-3
UNRELEASED
Building not defined