Difference between revisions of "Template:Recipe draw/sandbox"
From Captain of Industry Wiki
(Copied recently code, and copied all recipes in documentation) |
(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 | ** 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 ||<!-- | ||
** 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> |