Difference between revisions of "Template:Recipe draw/sandbox"
From Captain of Industry Wiki
(Changed way to declare dumping or mining. Now "Input1Name = Mining" and "Output1Name = Dumping" are the way.) |
m (Changed code of checking pollution (only internal processing)) |
||
Line 16: | Line 16: | ||
-->{{#vardefine: imgsz_large | 64x64px }}<!-- | -->{{#vardefine: imgsz_large | 64x64px }}<!-- | ||
-->{{#vardefine: imgsz_reg | 48x48px }}<!-- | -->{{#vardefine: imgsz_reg | 48x48px }}<!-- | ||
** List of pollution: must input in small latter ** | |||
-->{{#vardefine: pollution_1 | air pollution }}<!-- | |||
-->{{#vardefine: pollution_2 | water pollution }}<!-- | |||
-->{{#vardefine: pollution_3 | }}<!-- | |||
-->{{#vardefine: pollution_4 | }}<!-- | |||
--><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!-- | --><div class="recipe-wrapper {{#if: {{{Unreleased|}}} | unreleased_border}}"><!-- | ||
Line 55: | Line 62: | ||
-->{{#if: {{{Input1Name|}}}{{{Input2Name|}}}{{{Input3Name|}}}{{{Input4Name|}}}{{{Input5Name|}}}{{{Input6Name|}}} || {{#vardefine: provides | yes}} }} <!-- | -->{{#if: {{{Input1Name|}}}{{{Input2Name|}}}{{{Input3Name|}}}{{{Input4Name|}}}{{{Input5Name|}}}{{{Input6Name|}}} || {{#vardefine: provides | yes}} }} <!-- | ||
-->{{# | -->{{#vardefine: combined_output | {{lc:{{{Output1Name|}}}{{{Output2Name|}}}{{{Output3Name|}}}{{{Output4Name|}}}{{{Output5Name|}}}{{{Output6Name|}}} }} }}<!-- | ||
| | -->{{#ifeq: <!-- | ||
| | -->{{#expr: <!-- | ||
| | --> {{#ifeq: {{#var: combined_output}} | {{#var: pollution_1}} | 1 | 0 }} <!-- | ||
}}<!-- | --> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_2}} | 1 | 0 }} <!-- | ||
}}<!-- | --> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_3}} | 1 | 0 }} <!-- | ||
--> or {{#ifeq: {{#var: combined_output}} | {{#var: pollution_4}} | 1 | 0 }} <!-- | |||
--> or {{#ifeq: {{#var: combined_output}} | | 1 | 0 }} <!-- | |||
-->}} | 1 | <!-- | |||
-->{{#vardefine: accepts| yes}} | <!-- | |||
-->}} <!-- | |||
** Main sequence starts here ** | ** Main sequence starts here ** | ||
Line 114: | Line 127: | ||
-->{{#ifeq: {{lc:{{{Time}}}}} | <!-- instant --> 0 | <div>{{#var: img_arrow}}</div> |<!-- | -->{{#ifeq: {{lc:{{{Time}}}}} | <!-- instant --> 0 | <div>{{#var: img_arrow}}</div> |<!-- | ||
--><div class="upper"><!-- | --><div class="upper"><!-- | ||
-->{{#ifeq: {{#var: provides}} | yes | | -->{{#ifeq: {{#var: provides}} | yes | / }}<!-- | ||
-->{{#ifeq: {{#var: accepts}} | yes | / }}<!-- | |||
-->{{{Time}}} [[File:Clock.png|link=Time|16x16px]]<!-- | -->{{{Time}}} [[File:Clock.png|link=Time|16x16px]]<!-- | ||
--></div><!-- | --></div><!-- | ||
--><div><!-- | --><div><!-- | ||
-->{{#ifeq: {{#var: provides}} | yes | | -->{{#ifeq: {{#var: provides}} | yes | <br/> |<!-- | ||
-->{{#ifeq: {{#var: accepts}} | yes | <br/> |<!-- | |||
-->{{#ifeq: {{#var: accepts}} | yes | | |||
-->{{#var: img_arrow}}<!-- | -->{{#var: img_arrow}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
Line 132: | Line 139: | ||
--></div><!-- | --></div><!-- | ||
--><div class="lower blue"><!-- | --><div class="lower blue"><!-- | ||
-->{{#ifeq: {{#var: provides}} | yes | | -->{{#ifeq: {{#var: provides}} | yes | / }}<!-- | ||
-->{{#ifeq: {{#var: accepts}} | yes | / }}<!-- | |||
-->60 [[File:Clock 60s.png|link=Time|16x16px]]<!-- | -->60 [[File:Clock 60s.png|link=Time|16x16px]]<!-- | ||
--></div><!-- | --></div><!-- |