Difference between revisions of "Template:Recipe draw/sandbox"
From Captain of Industry Wiki
Line 16: | Line 16: | ||
-->{{#vardefine: imgsz_reg | 48x48px }}<!-- | -->{{#vardefine: imgsz_reg | 48x48px }}<!-- | ||
--><div class="recipe-wrapper | --><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"><!-- | ||
-->{{# | -->{{#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 | ** 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|}}} {{{Output1Unit|}}}</div>|<!-- | --><div class="lower">{{{Output1Qty|}}} {{{Output1Unit|}}}</div>|<!-- | ||
--><div class="lower blue"> | --><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"><!-- | |||
--><div class="upper">{{#if: {{{Output2Unit|}}} | | {{{Output2Qty|}}} {{{Output2Unit|}}} }}</div><!-- | |||
-->[[File:{{{Output2Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output2Name}}}]]<!-- | |||
-->{{#if: {{{Output2Unit|}}} | <!-- | |||
--><div class="lower">{{{Output2Qty|}}} {{{Output2Unit|}}}</div>|<!-- | |||
--><div class="lower blue"> | --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output2Qty|}}} round 2 }}</div><!-- | ||
-->}}<!-- | |||
--></div><!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Draw 3rd output ** | ** Draw 3rd output ** | ||
-->{{#if: {{{Output3Name|}}} |<!-- | -->{{#if: {{{Output3Name|}}} |<!-- | ||
--><div class="block">{{#var: img_plus}}</div><!-- | |||
--><div class="block"><!-- | |||
--><div class="upper">{{#if: {{{Output3Unit|}}} | | {{{Output3Qty|}}} {{{Output3Unit|}}} }}</div><!-- | |||
-->[[File:{{{Output3Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output3Name}}}]]<!-- | |||
-->{{#if: {{{Output3Unit|}}} | <!-- | |||
--><div class="lower">{{{Output3Qty|}}} {{{Output3Unit|}}}</div>|<!-- | |||
--><div class="lower blue"> | --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output3Qty|}}} round 2 }}</div><!-- | ||
-->}}<!-- | |||
--></div><!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Draw 4th output ** | ** Draw 4th output ** | ||
-->{{#if: {{{Output4Name|}}} |<!-- | -->{{#if: {{{Output4Name|}}} |<!-- | ||
--><div class="block">{{#var: img_plus}}</div><!-- | |||
--><div class="block"><!-- | |||
--><div class="upper">{{#if: {{{Output4Unit|}}} | | {{{Output4Qty|}}} {{{Output4Unit|}}} }}</div><!-- | |||
-->[[File:{{{Output4Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output4Name}}}]]<!-- | |||
-->{{#if: {{{Output4Unit|}}} | <!-- | |||
--><div class="lower">{{{Output4Qty|}}} {{{Output4Unit|}}}</div>|<!-- | |||
--><div class="lower blue"> | --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output4Qty|}}} round 2 }}</div><!-- | ||
-->}}<!-- | |||
--></div><!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Draw 5th output ** | ** Draw 5th output ** | ||
-->{{#if: {{{Output5Name|}}} |<!-- | -->{{#if: {{{Output5Name|}}} |<!-- | ||
--><div class="block">{{#var: img_plus}}</div><!-- | |||
--><div class="block"><!-- | |||
--><div class="upper">{{#if: {{{Output5Unit|}}} | | {{{Output5Qty|}}} {{{Output5Unit|}}} }}</div><!-- | |||
-->[[File:{{{Output5Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output5Name}}}]]<!-- | |||
-->{{#if: {{{Output5Unit|}}} | <!-- | |||
--><div class="lower">{{{Output5Qty|}}} {{{Output5Unit|}}}</div>|<!-- | |||
--><div class="lower blue"> | --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output5Qty|}}} round 2 }}</div><!-- | ||
-->}}<!-- | |||
--></div><!-- | |||
-->}}<!-- | -->}}<!-- | ||
** Draw 6th output ** | ** Draw 6th output ** | ||
-->{{#if: {{{Output6Name|}}} |<!-- | -->{{#if: {{{Output6Name|}}} |<!-- | ||
--><div class="block">{{#var: img_plus}}</div><!-- | |||
--><div class="block"><!-- | |||
--><div class="upper">{{#if: {{{Output6Unit|}}} | | {{{Output6Qty|}}} {{{Output6Unit|}}} }}</div><!-- | |||
-->[[File:{{{Output6Name}}}.png{{!}}{{#var: imgsz_reg}}{{!}}link={{{Output6Name}}}]]<!-- | |||
-->{{#if: {{{Output6Unit|}}} | <!-- | |||
--><div class="lower">{{{Output6Qty|}}} {{{Output6Unit|}}}</div>|<!-- | |||
--><div class="lower blue"> | --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Output6Qty|}}} round 2 }}</div><!-- | ||
-->}}<!-- | |||
--></div><!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||