Difference between revisions of "Template:Recipe item"

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


   ** Set template style and default value of arguments**
   ** Set template style and default value of arguments**
   -->{{#vardefine: image_plus | [[File:Plus.png|24x24px]] }}<!--
   -->{{#vardefine: image_plus | [[File:Plus.png|24x24px]] }}<!--
   -->{{#vardefine: image_size| 48x48px }}<!--
   -->{{#vardefine: image_size| 48x48px }}<!--
Line 19: Line 18:
   ** 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}}}&nbsp;{{{Unit|}}} }}</div><!--
     -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: image_size}}}}}{{!}}link={{{Name}}}]]<!--
     -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: image_size}}}}}{{!}}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">{{#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}}
{{Recipe item|Name=Steam hi|Quantity=2|Time=10}}
{{Recipe item/sandbox|Name=Cement|Qty=2|Time=10|Plus=yes}}
{{Recipe item|Name=Cement|=2|Time=10|Plus=yes}}
{{Recipe item/sandbox|Name=Electricity|Qty=20|Unit=KW|Plus=yes}}
{{Recipe item|Name=Electricity|Qty=20|Unit=KW|Plus=yes}}
</noinclude>
</noinclude>

Revision as of 19:57, 2 October 2022

Plus.png
Cement.png
0
Plus.png
 
Electricity.png
 KW