Template:Recipe draw/sandbox: Difference between revisions

From Captain of Industry Wiki
Jump to: navigation, search
NaK (talk | contribs)
Copied recently code, and copied all recipes in documentation
NaK (talk | contribs)
Reworked "Accept" and "Provide": Now shows them when the output is nothing or only pollution, and labs without recyclables are displayed the same way in the game.
Line 34: Line 34:
-->}}<!--
-->}}<!--


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


-->{{#if: {{{Mining|}}}{{{Dumping|}}} ||<!--
-->{{#if: {{{Mining|}}}{{{Dumping|}}} ||<!--
Line 48: Line 48:
   -->}}<!--
   -->}}<!--
-->}}<!--
-->}}<!--
  ** Determine if we should display the "PROVIDES" or "ACCEPTS" text in the output **
-->{{#if: {{{Input1Name|}}}{{{Input2Name|}}}{{{Input3Name|}}}{{{Input4Name|}}}{{{Input5Name|}}}{{{Input6Name|}}} || {{#vardefine: provides | yes}} }} <!--
-->{{#switch: {{lc:{{{Output1Name|}}}{{{Output2Name|}}}{{{Output3Name|}}}{{{Output4Name|}}}{{{Output5Name|}}}{{{Output6Name|}}}}}
    | air pollution
    | water pollution
    | = {{#vardefine: accepts| yes}}
  }}<!--
}}<!--


   ** Main sequence starts here **
   ** Main sequence starts here **


-->{{#ifeq: {{#var: bldg}} | none ||<!--
-->{{#ifeq: {{#var: bldg}} | none ||<!--
  ** Determine if we should display the "PROVIDES" or "ACCEPTS" text in the output **
-->{{#switch: {{lc:{{#var: bldg}}}}
    | flare   
    | smoke stack
    | smoke stack (large)
    | burner (solid)
    | liquid dump
    | gas injection pump = {{#vardefine: accepts | yes}}
    | groundwater pump
    | air separator
    | seawater pump
    | seawater pump (tall)
    | oil pump = {{#vardefine: provides | yes}}
  }}<!--


   ** Draw the building (and colon) unless the user or Template:Infobox_machine set it to hidden. **
   ** Draw the building (and colon) unless the user or Template:Infobox_machine set it to hidden. **
Line 530: Line 524:
   | Unreleased  = yes
   | Unreleased  = yes
}}
}}
</noinclude>
</noinclude>

Revision as of 18:56, 2 October 2022


:
12 
72
12
10 
60 
24
48
:
PROVIDES
48
/ 10 

/ 60 
:
ACCEPTS
200 
600
/ 20 

/ 60 
:
ACCEPTS
60
/ 2 

/ 60 
60
:
48
60 
 
1 MW
48
:
 
500 KW
 
250 KW



18 
54
12
12
20 
60 
14 
42
:
18 
54
12
12
20 
60 
14 
42
UNRELEASED