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

From Captain of Industry Wiki
Jump to: navigation, search
(Created page with "<includeonly><!-- -->{{#if: {{{Name|}}}|<!-- ** Set template style and default value of arguments** --><templatestyles src="Template:Recipe draw/styles.css" /><!-- -->{{#vardefine: image_plus | 24x24px }}<!-- -->{{#vardefine: image_size| 48x48px }}<!-- ** Draw plus icon ** -->{{#ifeq: {{lc:{{{Plus|}}} }} | yes |<!-- --><div class="block">{{#var: image_plus}}</div>|<!-- -->{{#ifeq: {{lc:{{{Plus|no}}} }} | no | |<!-- --><div...")
 
(Supported "?" as quantity)
Line 2: Line 2:


-->{{#if: {{{Name|}}}|<!--
-->{{#if: {{{Name|}}}|<!--
  ** Set template style and default value of arguments**
  --><templatestyles src="Template:Recipe draw/styles.css" /><!--
  -->{{#vardefine: image_plus | [[File:Plus.png|24x24px]] }}<!--
  -->{{#vardefine: image_size| 48x48px }}<!--


   ** Draw plus icon **
   ** Draw plus icon **


   -->{{#ifeq: {{lc:{{{Plus|}}} }} | yes |<!--
   -->{{#ifeq: {{lc:{{{Plus|}}} }} | yes |<!--
     --><div class="block">{{#var: image_plus}}</div>|<!--
     --><div class="block">{{#var: img_plus}}</div>|<!--
     -->{{#ifeq: {{lc:{{{Plus|no}}} }} | no | |<!--
     -->{{#ifeq: {{lc:{{{Plus|no}}} }} | no | |<!--
       --><div class="block">{{{Plus}}}</div><!--
       --><div class="block">{{{Plus}}}</div><!--
Line 20: Line 14:
   ** Draw item and throughput   
   ** Draw item and throughput   
   --><div class="block"><!--
   --><div class="block"><!--
     --><div class="upper">{{#if: {{{Unit|}}} | &nbsp; | {{{Qty|}}}&nbsp;{{{Unit|}}} }}</div><!--
     --><div class="upper">{{#if: {{{Unit|}}} | &nbsp; | {{{Quantity|0}}} }}</div><!--
     -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: image_size}}}}}{{!}}link={{{Name}}}]]<!--
     -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!--
     -->{{#if: {{{Unit|}}} | <!--
     -->{{#if: {{{Unit|}}} | <!--
       --><div class="lower">{{{Qty|}}}&nbsp;{{{Unit|}}}</div>|<!--
       --><div class="lower">{{{Quantity|}}}&nbsp;{{{Unit|}}}</div>|<!--
       --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Qty|}}} round 2 }}</div><!--
       --><div class="lower blue"><!--
        -->{{#ifeq: {{{Quantity|}}} | ? | ? | {{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }} }} <!--
      --></div><!--
     -->}}<!--
     -->}}<!--
   --></div><!--
   --></div><!--
-->}}<!--
-->}}<!--
</includeonly><noinclude>
</includeonly><noinclude>
{{Recipe item/sandbox|Name=Steam hi|Qty=2|Time=10}}
<templatestyles src="Template:Recipe draw/styles.css" />
{{Recipe item/sandbox|Name=Cement|Qty=2|Time=10|Plus=yes}}
{{#vardefine: img_plus | [[File:Plus.png|24x24px]] }}
{{Recipe item/sandbox|Name=Electricity|Qty=20|Unit=KW|Plus=yes}}
{{#vardefine: imgsz_reg | 48x48px }}
<div class="recipe-wrapper>
 
{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10}}
{{Recipe item/sandbox|Name=Cement|Quantity=2|Time=10|Plus=yes}}
{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Plus=yes}}
{{Recipe item/sandbox|Name=Iron Scrap|Quantity=?|Time=10|Plus=yes}}
 
</div>
</noinclude>
</noinclude>

Revision as of 22:10, 2 October 2022


Plus.png
2
Cement.png
12
Plus.png
 
Electricity.png
20 KW
Plus.png
?
Iron Scrap.png
?