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

From Captain of Industry Wiki
Jump to: navigation, search
Line 16: Line 16:
-->{{#vardefine: imgsz_reg | 48x48px }}<!--
-->{{#vardefine: imgsz_reg | 48x48px }}<!--


--><div class="recipe-wrapper sandbox {{#if: {{{Unreleased|}}} | unreleased_border}}"><!--
--><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!--


   ** Special output for when `Mining = yes` **
   ** Special output for when `Mining = yes` **
Line 191: Line 191:
-->{{#if: {{{Time|}}} |<!--
-->{{#if: {{{Time|}}} |<!--
   --><div class="block time"><!--
   --><div class="block time"><!--
     -->{{#switch: {{lc:{{{Time}}}}} | instant | 0 = <div>{{#var: img_arrow}}</div> |<!--
     -->{{#ifeq: {{lc:{{{Time}}}}} | instant | <div>{{#var: img_arrow}}</div> |<!--
       --><div class="upper"><!--
       --><div class="upper"><!--
         -->{{#ifeq: {{#var: provides}} | yes |<!--
         -->{{#ifeq: {{#var: provides}} | yes |<!--
Line 230: Line 230:
-->}}<!--
-->}}<!--


   ** Draw 1st output unless {{#var: provides}} is `yes` **
   ** Draw outputs unless {{#var: provides}} is `yes` **


-->{{#ifeq: {{#var: provides}} | yes ||<!--
-->{{#ifeq: {{#var: provides}} | yes ||<!--
  ** Draw 1st output **
   -->{{#if: {{{Output1Name|}}} |<!--
   -->{{#if: {{{Output1Name|}}} |<!--
     --><div class="block"><!--
     --><div class="block"><!--
Line 239: Line 242:
       -->{{#if: {{{Output1Unit|}}} | <!--
       -->{{#if: {{{Output1Unit|}}} | <!--
         --><div class="lower">{{{Output1Qty|}}}&nbsp;{{{Output1Unit|}}}</div>|<!--
         --><div class="lower">{{{Output1Qty|}}}&nbsp;{{{Output1Unit|}}}</div>|<!--
         --><div class="lower blue">{{#switch:{{{Output1Qty|}}}|?=?|{{#expr: 60/{{{Time|1}}}*{{{Output1Qty|}}} round 2 }}}}</div><!--
         --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output1Qty|}}} round 2 }}</div><!--
       -->}}<!--
       -->}}<!--
     --></div><!--
     --></div><!--
   -->}}<!--
   -->}}<!--
-->}}<!--


   ** Draw 2nd output **
   ** Draw 2nd output **


-->{{#if: {{{Output2Name|}}} |<!--
  -->{{#if: {{{Output2Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="block"><!--
    --><div class="upper">{{#if: {{{Output2Unit|}}} | &nbsp; | {{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}} }}</div><!--
      --><div class="upper">{{#if: {{{Output2Unit|}}} | &nbsp; | {{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}} }}</div><!--
    -->[[File:{{{Output2Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output2Name}}}]]<!--
      -->[[File:{{{Output2Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output2Name}}}]]<!--
    -->{{#if: {{{Output2Unit|}}} | <!--
      -->{{#if: {{{Output2Unit|}}} | <!--
      --><div class="lower">{{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}}</div>|<!--
        --><div class="lower">{{{Output2Qty|}}}&nbsp;{{{Output2Unit|}}}</div>|<!--
         --><div class="lower blue">{{#switch:{{{Output2Qty|}}}|?=?|{{#expr: 60/{{{Time|1}}}*{{{Output2Qty|}}} round 2 }}}}</div><!--
         --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output2Qty|}}} round 2 }}</div><!--
    -->}}<!--
      -->}}<!--
  --></div><!--
    --></div><!--
-->}}<!--
  -->}}<!--
 


   ** Draw 3rd output **
   ** Draw 3rd output **


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


   ** Draw 4th output **
   ** Draw 4th output **


-->{{#if: {{{Output4Name|}}} |<!--
  -->{{#if: {{{Output4Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="block"><!--
    --><div class="upper">{{#if: {{{Output4Unit|}}} | &nbsp; | {{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}} }}</div><!--
      --><div class="upper">{{#if: {{{Output4Unit|}}} | &nbsp; | {{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}} }}</div><!--
    -->[[File:{{{Output4Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output4Name}}}]]<!--
      -->[[File:{{{Output4Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output4Name}}}]]<!--
    -->{{#if: {{{Output4Unit|}}} | <!--
      -->{{#if: {{{Output4Unit|}}} | <!--
      --><div class="lower">{{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}}</div>|<!--
        --><div class="lower">{{{Output4Qty|}}}&nbsp;{{{Output4Unit|}}}</div>|<!--
         --><div class="lower blue">{{#switch:{{{Output4Qty|}}}|?=?|{{#expr: 60/{{{Time|1}}}*{{{Output4Qty|}}} round 2 }}}}</div><!--
         --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output4Qty|}}} round 2 }}</div><!--
    -->}}<!--
      -->}}<!--
  --></div><!--
    --></div><!--
-->}}<!--
  -->}}<!--


   ** Draw 5th output **
   ** Draw 5th output **


-->{{#if: {{{Output5Name|}}} |<!--
  -->{{#if: {{{Output5Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="block"><!--
    --><div class="upper">{{#if: {{{Output5Unit|}}} | &nbsp; | {{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}} }}</div><!--
      --><div class="upper">{{#if: {{{Output5Unit|}}} | &nbsp; | {{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}} }}</div><!--
    -->[[File:{{{Output5Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output5Name}}}]]<!--
      -->[[File:{{{Output5Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output5Name}}}]]<!--
    -->{{#if: {{{Output5Unit|}}} | <!--
      -->{{#if: {{{Output5Unit|}}} | <!--
      --><div class="lower">{{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}}</div>|<!--
        --><div class="lower">{{{Output5Qty|}}}&nbsp;{{{Output5Unit|}}}</div>|<!--
         --><div class="lower blue">{{#switch:{{{Output5Qty|}}}|?=?|{{#expr: 60/{{{Time|1}}}*{{{Output5Qty|}}} round 2 }}}}</div><!--
         --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output5Qty|}}} round 2 }}</div><!--
    -->}}<!--
      -->}}<!--
  --></div><!--
    --></div><!--
-->}}<!--
  -->}}<!--


   ** Draw 6th output **
   ** Draw 6th output **


-->{{#if: {{{Output6Name|}}} |<!--
  -->{{#if: {{{Output6Name|}}} |<!--
  --><div class="block">{{#var: img_plus}}</div><!--
    --><div class="block">{{#var: img_plus}}</div><!--
  --><div class="block"><!--
    --><div class="block"><!--
    --><div class="upper">{{#if: {{{Output6Unit|}}} | &nbsp; | {{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}} }}</div><!--
      --><div class="upper">{{#if: {{{Output6Unit|}}} | &nbsp; | {{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}} }}</div><!--
    -->[[File:{{{Output6Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output6Name}}}]]<!--
      -->[[File:{{{Output6Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output6Name}}}]]<!--
    -->{{#if: {{{Output6Unit|}}} | <!--
      -->{{#if: {{{Output6Unit|}}} | <!--
      --><div class="lower">{{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}}</div>|<!--
        --><div class="lower">{{{Output6Qty|}}}&nbsp;{{{Output6Unit|}}}</div>|<!--
         --><div class="lower blue">{{#switch:{{{Output6Qty|}}}|?=?|{{#expr: 60/{{{Time|1}}}*{{{Output6Qty|}}} round 2 }}}}</div><!--
         --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output6Qty|}}} round 2 }}</div><!--
    -->}}<!--
      -->}}<!--
  --></div><!--
    --></div><!--
  -->}}<!--
-->}}<!--
-->}}<!--



Revision as of 07:27, 23 July 2022