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

From Captain of Industry Wiki
Jump to: navigation, search
(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|}}} | &nbsp; | {{{Quantity|0}}} }}</div><!--
     -->{{#ifeq: {{{Unit|}}} | ? | <!--
    -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!--
      --><div class="upper"> ? </div><!--
    -->{{#if: {{{Unit|}}} | <!--
      -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!--
      --><div class="lower">{{{Quantity|}}}&nbsp;{{{Unit|}}}</div>|<!--
      --><div class="lower blue"> ? </div><!--
      --><div class="lower blue"><!--
    -->|<!--
        -->{{#ifeq: {{{Quantity|}}} | ? | ? | {{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }} }} <!--
      --><div class="upper">{{#if: {{{Unit|}}} | &nbsp; | {{{Quantity|0}}} }}</div><!--
       --></div><!--
      -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!--
      -->{{#if: {{{Unit|}}} | <!--
        --><div class="lower">{{{Quantity|}}}&nbsp;{{{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|Quantity=?|Time=10|Plus=yes}}
{{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


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