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

From Captain of Industry Wiki
Jump to: navigation, search
(Created Template: Recipe item and moved some codes there. The moved codes are ones to draw plus icon, item icon and the quantity of item.)
(Changed way to declare dumping or mining. Now "Input1Name = Mining" and "Output1Name = Dumping" are the way.)
Line 7: Line 7:
-->{{#vardefine: accepts | no}}<!--
-->{{#vardefine: accepts | no}}<!--
-->{{#vardefine: provides | no}}<!--
-->{{#vardefine: provides | no}}<!--
-->{{#vardefine: special_output | no}}<!--
   
   
   ** Set up variables to specify desired settings and reuse code **
   ** Set up variables to specify desired settings and reuse code **
Line 20: Line 21:
   ** Special output for when `Mining = yes` **
   ** Special output for when `Mining = yes` **


-->{{#if: {{{Mining|}}} |<!--
-->{{#ifeq: {{lc:{{{Input1Name|}}}}} | mining |<!--
   --><div class="block">[[File:Mining.png{{!}}{{#var: imgsz_large}}{{!}}link=Mining]]</div><!--
   --><div class="block">[[File:Mining.png{{!}}{{#var: imgsz_large}}{{!}}link=Designations#Mining]]</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">[[File:{{{Output1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Output1Name}}}]]</div><!--
   --><div class="block">[[File:{{{Output1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Output1Name}}}]]</div><!--
  -->{{#vardefine: special_output | yes}}<!--
-->}}<!--
-->}}<!--


   ** Special output for when `Dumping = yes` **
   ** Special output for when `Dumping = yes` **


-->{{#if: {{{Dumping|}}} |<!--
-->{{#ifeq: {{lc:{{{Output1Name|}}}}} | dumping |<!--
   --><div class="block">[[File:{{{Input1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Input1Name}}}]]</div><!--
   --><div class="block">[[File:{{{Input1Name}}}.png{{!}}{{#var: imgsz_large}}{{!}}link={{{Input1Name}}}]]</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">{{#var: img_arrow}}</div><!--
   --><div class="block">[[File:Dumping.png{{!}}{{#var: imgsz_large}}{{!}}link=Dumping]]</div><!--
   --><div class="block">[[File:Dumping.png{{!}}{{#var: imgsz_large}}{{!}}link=Designations#Dumping]]</div><!--
  -->{{#vardefine: special_output | yes}}<!--
-->}}<!--
-->}}<!--


   ** Stop output if we drew Mining or Dumping **
   ** Stop output if we drew Mining or Dumping **


-->{{#if: {{{Mining|}}}{{{Dumping|}}} ||<!--
-->{{#ifeq: {{#var: special_output}} | no |<!--


   ** Check if Template:Infobox_machine already knows the building. If not, try the `Building` param. **
   ** Check if Template:Infobox_machine already knows the building. If not, try the `Building` param. **
Line 175: Line 178:


{{Recipe draw/sandbox
{{Recipe draw/sandbox
   | Mining     = yes
   | Input1Name  = Mining
   | Output1Name = Copper Ore
   | Output1Name = Copper Ore
}}
}}


{{Recipe draw/sandbox
{{Recipe draw/sandbox
   | Dumping   = yes
   | Output1Name = Dumping
   | Input1Name = Rock
   | Input1Name = Rock
}}
}}


Line 251: Line 254:
   | Input1Qty  = 48
   | Input1Qty  = 48
   | Output1Name = Iron Scrap
   | Output1Name = Iron Scrap
   | Output1Qty  = ?
   | Output1Unit = ?
   | Output2Name = Copper Scrap
   | Output2Name = Copper Scrap
   | Output2Qty  = ?
   | Output2Unit = ?
   | Output3Name = Gold Scrap
   | Output3Name = Gold Scrap
   | Output3Qty  = ?
   | Output3Unit = ?
   | Output4Name = Broken Glass
   | Output4Name = Broken Glass
   | Output4Qty  = ?
   | Output4Unit = ?
}}
}}



Revision as of 00:45, 3 October 2022


Mining.png
Transform.png
Copper Ore.png
Rock.png
Transform.png
Dumping.png
Rotary Kiln.png
:
12
Limestone.png
72
Plus.png
2
Coal.png
12
10 Clock.png
Transform.png
60 Clock 60s.png
4
Cement.png
24
Plus.png
8
Exhaust.png
48
Air Separator.png
:
PROVIDES
12
Oxygen.png
36
Plus.png
12
Nitrogen.png
36
/ 20 Clock.png

/ 60 Clock 60s.png
Smoke Stack.png
:
ACCEPTS
200
Oxygen.png
600
/ 20 Clock.png

/ 60 Clock 60s.png
Liquid Dump.png
:
ACCEPTS
2
Waste Water.png
60
/ 2 Clock.png

/ 60 Clock 60s.png
2
Water Pollution.png
60
Low-pressure Turbine.png
:
4
Steam Lo.png
48
Clock.png
Transform.png
60 Clock 60s.png
 
Mechanical Power.png
1 MW
Plus.png
4
Steam Depleted.png
48
Power Generator.png
:
 
Mechanical Power.png
500 KW
Transform.png
 
Electricity.png
250 KW
Waste Sorting Plant.png
:
48
Recyclables.png
144
20 Clock.png
Transform.png
60 Clock 60s.png
?
Iron Scrap.png
?
Plus.png
?
Copper Scrap.png
?
Plus.png
?
Gold Scrap.png
?
Plus.png
?
Broken Glass.png
?
Exhaust Scrubber.png
:
30
Exhaust.png
180
Plus.png
4
Water.png
24
10 Clock.png
Transform.png
60 Clock 60s.png
1
Sulfur.png
6
Plus.png
12
Carbon Dioxide.png
72
Plus.png
4
Steam Lo.png
24
Plus.png
4
Air Pollution.png
24
18
Sand.png
54
Plus.png
4
Limestone.png
12
Plus.png
4
Salt.png
12
20 Clock.png
Transform.png
60 Clock 60s.png
14
Glass Mix.png
42
Mixer.png
:
18
Sand.png
54
Plus.png
4
Limestone.png
12
Plus.png
4
Salt.png
12
20 Clock.png
Transform.png
60 Clock 60s.png
14
Glass Mix.png
42
UNRELEASED