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

From Captain of Industry Wiki
Jump to: navigation, search
(Added an option for hiding or showing only pollution)
Line 33: Line 33:


   ** Draw item and throughput  
   ** Draw item and throughput  
  --> {{#switch: 3 | 1 = A | 2 = B | 3 = C | D }} 


  -->{{#vardefine: image_item | [[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]] }}<!--
   --><div class="block"><!--
   --><div class="block"><!--
     -->{{#ifeq: {{{Unit|}}} | ? | <!--
     -->{{#ifeq: {{{Unit|}}} | ? | <!--
       --><div class="upper"> ? </div><!--
       --><div class="upper"> ? </div><!--
       -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!--
       -->{{#var: image_item}}<!--
       --><div class="lower blue"> ? </div><!--
       --><div class="lower blue"> ? </div><!--
    -->|<!--
      -->|{{#ifeq:{{{Quantity|0}}} | 0 | {{#var: image_item}}<!--
      --><div class="upper">{{#if: {{{Unit|}}} | &nbsp; | {{{Quantity|0}}} }}</div><!--
        -->|{{#ifeq:{{{Unit|}}} | %  <!--
      -->[[File:{{{Name}}}.png{{!}}{{{ImageSize|{{#var: imgsz_reg}}}}}{{!}}link={{{Name}}}]]<!--
          -->|AAA <!--
      -->{{#if: {{{Unit|}}} | <!--
          -->|<div class="upper">{{#if: {{{Unit|}}} | &nbsp; | {{{Quantity|0}}} }}</div><!--
        --><div class="lower">{{{Quantity|}}}&nbsp;{{{Unit|}}}</div>|<!--
          -->{{#var: image_item}}<!--
        --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }}</div><!--
          -->{{#if: {{{Unit|}}} |<!--
            --><div class="lower">{{{Quantity|}}}&nbsp;{{{Unit|}}}</div>|<!--
            --><div class="lower blue">{{#expr: 60/{{{Time|1}}}*{{{Quantity|0}}} round 2 }}</div><!--
          -->}}<!--
        -->}}<!--
       -->}}<!--
       -->}}<!--
     -->}}<!--
     -->}}<!--
Line 62: Line 69:
--><div class="recipe-wrapper><!--
--><div class="recipe-wrapper><!--
-->{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10}}<!--
-->{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10}}<!--
-->{{Recipe item/sandbox|Name=Cement|Quantity=0|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Green Manure|Quantity=0|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Time=0|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Time=0|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Fertility|Quantity=4|Unit=%|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Air Pollution|Quantity=15|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=Air Pollution|Quantity=15|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=|Quantity=10|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=|Quantity=10|Time=10|Plus=yes}}<!--
Line 72: Line 80:
--><div class="recipe-wrapper><!--
--><div class="recipe-wrapper><!--
-->{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Cement|Quantity=0|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Green Manure|Quantity=0|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Time=0|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Time=0|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Fertility|Quantity=4|Unit=%|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Air Pollution|Quantity=15|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=Air Pollution|Quantity=15|Time=10|Plus=yes|Pollution=only}}<!--
-->{{Recipe item/sandbox|Name=|Quantity=10|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=|Quantity=10|Time=10|Plus=yes}}<!--
Line 82: Line 91:
--><div class="recipe-wrapper><!--
--><div class="recipe-wrapper><!--
-->{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Steam hi|Quantity=2|Time=10|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Cement|Quantity=0|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Green Manure|Quantity=0|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Time=0|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Electricity|Quantity=20|Unit=KW|Time=0|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Iron Scrap|Unit=?|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Fertility|Quantity=4|Unit=%|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Air Pollution|Quantity=15|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=Air Pollution|Quantity=15|Time=10|Plus=yes|Pollution=hide}}<!--
-->{{Recipe item/sandbox|Name=|Quantity=10|Time=10|Plus=yes}}<!--
-->{{Recipe item/sandbox|Name=|Quantity=10|Time=10|Plus=yes}}<!--

Revision as of 07:13, 7 October 2022

Show all:

C


-->
Plus.png
C


-->
Green Manure.png
Plus.png
C


-->
 
Electricity.png
20 KW
Plus.png
C


-->
 ?
Iron Scrap.png
 ?
Plus.png
C


-->
AAA
Plus.png
C


-->
15
Air Pollution.png
90

Pollution only:

Plus.png
C


-->
15
Air Pollution.png
90

Hide pollution:

C


-->
Plus.png
C


-->
Green Manure.png
Plus.png
C


-->
 
Electricity.png
20 KW
Plus.png
C


-->
 ?
Iron Scrap.png
 ?
Plus.png
C


-->
AAA