Difference between revisions of "Template:Recipe item/sandbox"
From Captain of Industry Wiki
(Supported "?" as quantity) |
(Changed condition to display "?" as a quantity of item: now displays it when Unit is set to "?".) |
||
Line 12: | Line 12: | ||
-->}}<!-- | -->}}<!-- | ||
** Draw item and throughput | ** Draw item and throughput | ||
--><div class="block"><!-- | --><div class="block"><!-- | ||
--><div class="upper">{{#if: {{{Unit|}}} | | {{{Quantity|0}}} }}</div><!-- | -->{{#ifeq: {{{Unit|}}} | ? | <!-- | ||
--><div class="upper"> ? </div><!-- | |||
-->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!-- | |||
--><div class="lower blue"> ? </div><!-- | |||
-->|<!-- | |||
--><div class="upper">{{#if: {{{Unit|}}} | | {{{Quantity|0}}} }}</div><!-- | |||
--> | -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!-- | ||
-->{{#if: {{{Unit|}}} | <!-- | |||
--><div class="lower">{{{Quantity|}}} {{{Unit|}}}</div>|<!-- | |||
--><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }}</div><!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 33: | Line 38: | ||
{{Recipe item/sandbox|Name=Cement|Quantity=2|Time=10|Plus=yes}} | {{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=Electricity|Quantity=20|Unit=KW|Plus=yes}} | ||
{{Recipe item/sandbox|Name=Iron Scrap| | {{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes}} | ||
{{Recipe item/sandbox|Name=Copper|Time=10|Plus=yes}} | |||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 23:29, 2 October 2022