Template:Recipe draw/sandbox: Difference between revisions

From Captain of Industry Wiki
Jump to: navigation, search
NaK (talk | contribs)
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.
NaK (talk | contribs)
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


:
12
72
2
12
10 
60 
4
24
8
48
:
PROVIDES
12
36
12
36
/ 20 

/ 60 
:
ACCEPTS
200
600
/ 20 

/ 60 
:
ACCEPTS
2
60
/ 2 

/ 60 
2
60
:
4
48
60 
 
1 MW
4
48
:
 
500 KW
 
250 KW
:
48
144
20 
60 
?
?
?
?
?
?
?
?
:
30
180
4
24
10 
60 
1
6
12
72
4
24
4
24
18
54
4
12
4
12
20 
60 
14
42
:
18
54
4
12
4
12
20 
60 
14
42
UNRELEASED