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

From Captain of Industry Wiki
Jump to: navigation, search
Line 84: Line 84:


-->{{#ifeq: {{#var: provides}} | yes ||<!--
-->{{#ifeq: {{#var: provides}} | yes ||<!--
   -->{{#if: {{{Input1Name|}}} |<!--
   -->{{#if: {{{Input1Name|}}} |<!--
     --><div class="block"><!--
     --><div class="block"><!--
Line 96: Line 97:
-->}}<!--
-->}}<!--


   ** Draw the 1st output instead if {{#var: provides}} is `yes`. **
   ** Draw outputs instead if {{#var: provides}} is `yes`. **


-->{{#ifeq: {{#var: provides}} | yes |<!--
-->{{#ifeq: {{#var: provides}} | yes |<!--
  ** Draw the 1st output **
   -->{{#if: {{{Output1Name|}}} |<!--
   -->{{#if: {{{Output1Name|}}} |<!--
     --><div class="block"><!--
     --><div class="block"><!--
Line 109: Line 113:
     --></div><!--
     --></div><!--
   -->}}<!--
   -->}}<!--
  ** 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><!--
  -->}}<!--
-->}}<!--
-->}}<!--



Revision as of 07:31, 23 July 2022