Difference between revisions of "Template:Recipe item"
From Captain of Industry Wiki
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|}}} | | {{{ | --><div class="upper">{{#if: {{{Unit|}}} | | {{{Quantity|0}}} {{{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">{{{ | --><div class="lower">{{{Quantity|}}} {{{Unit|}}}</div>|<!-- | ||
--><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{ | --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }}</div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{Recipe item | {{Recipe item|Name=Steam hi|Quantity=2|Time=10}} | ||
{{Recipe item | {{Recipe item|Name=Cement|=2|Time=10|Plus=yes}} | ||
{{Recipe item | {{Recipe item|Name=Electricity|Qty=20|Unit=KW|Plus=yes}} | ||
</noinclude> | </noinclude> |