Template:Infobox material/sandbox: Difference between revisions
From Captain of Industry Wiki
No edit summary |
Automate "Created in" and "Used in" |
||
Line 43: | Line 43: | ||
--></tr>|[[Category:Missing state]]}}<!-- | --></tr>|[[Category:Missing state]]}}<!-- | ||
** Created | ** Created in ** | ||
-->{{#vardefine: CreatedInAuto | <!-- | |||
-->{{#cargo_query: tables=recipes | |||
| fields = Building | |||
| where = Building != "" AND Building IS NOT NULL | |||
AND ( Output1Name = "{{{Name}}}" OR Output2Name = "{{{Name}}}" | |||
OR Output3Name = "{{{Name}}}" OR Output4Name = "{{{Name}}}" | |||
OR Output5Name = "{{{Name}}}" OR Output6Name = "{{{Name}}}") | |||
| group by = Building | |||
| format = template | |||
| template = {{{template|Format link}}} | |||
| outro = | |||
| delimiter = <br> | |||
| default = {{#if:{{{CreatedIn|}}} || None }} | |||
}}<!-- | |||
-->}}<!-- | |||
--><tr class="table-tr"><!-- | --><tr class="table-tr"><!-- | ||
--><td class="table-td-left">Created in</td><!-- | --><td class="table-td-left">Created in</td><!-- | ||
--><td class="table-td-right"><!-- | --><td class="table-td-right"><!-- | ||
-->{{# | -->{{#var: CreatedInAuto}}<!-- | ||
-->{{#if: {{#var: CreatedInAuto}} | {{#if: {{{CreatedIn|}}} | <br> }} }}<!-- | |||
-->{{{CreatedIn|}}}<!-- | |||
-->}}<!-- | |||
--></td><!-- | --></td><!-- | ||
--></tr><!-- | --></tr><!-- | ||
-->{{#if:{{{UsedIn|}}}|<!-- | |||
** Used in ** | |||
-->{{#vardefine: UsedInAuto | <!-- | |||
-->{{#cargo_query: tables=recipes | |||
| fields = Building | |||
| where = Building != "" AND Building IS NOT NULL | |||
AND ( Input1Name = "{{{Name}}}" OR Input2Name = "{{{Name}}}" | |||
OR Input3Name = "{{{Name}}}" OR Input4Name = "{{{Name}}}" | |||
OR Input5Name = "{{{Name}}}" OR Input6Name = "{{{Name}}}") | |||
| group by = Building | |||
| format = template | |||
| template = {{{template|Format link}}} | |||
| outro = | |||
| delimiter = <br> | |||
| default = {{#if:{{{UsedIn|}}} || None }} | |||
}}<!-- | |||
-->}}<!-- | |||
--><tr class="table-tr"><!-- | |||
--><td class="table-td-left">Used in</td><!-- | |||
--><td class="table-td-right"><!-- | |||
-->{{#var: UsedInAuto}}<!-- | |||
-->{{#if: {{#var: UsedInAuto}} | {{#if: {{{UsedIn|}}} | <br> }} }}<!-- | |||
-->{{{UsedIn|}}}<!-- | |||
--></td><!-- | |||
--></tr><!-- | |||
** Transported by ** | ** Transported by ** | ||
-->{{#if:{{{TransportedBy|}}}{{{State|}}}|<!-- | -->{{#if:{{{TransportedBy|}}}{{{State|}}}|<!-- | ||
Line 161: | Line 186: | ||
| Type1 = Crafted material | | Type1 = Crafted material | ||
| State = Fluid | | State = Fluid | ||
| CreatedIn = Assembler (Manual) | |||
| TrackTransport = no | | TrackTransport = no | ||
| StoredIn = None | | StoredIn = None |
Revision as of 08:18, 19 May 2023
Construction Parts
Type | Crafted material |
State | Unit |
Created in | Assembly (Electric)<br>Assembly (Electric) II<br>Assembly (Manual)<br>Assembly (Robotic) |
Used in | Assembly (Electric)<br>Assembly (Electric) II<br>Assembly (Manual)<br>Assembly (Robotic) |
Transported by | Flat Conveyor [II•III] Pickup • Truck |
Stored in | Unit Storage [II•III•IV] Shipyard |
Variants | Construction Parts II Construction Parts III Construction Parts IV |
Wood
Type | Natural resource |
State | Unit |
Created in | Tree Harvesting Sawmill |
Used in | Assembly (Electric)<br>Assembly (Electric) II<br>Assembly (Manual)<br>Assembly (Robotic)<br>Coal Maker<br>Shredder Coal Maker Assembly (Manual) Assembly (Electric) Assembly (Electric) II |
Transported by | Flat Conveyor [II•III] Pickup • Truck |
Stored in | Unit Storage [II•III•IV] Shipyard |
Air Pollution
Type | Pollution |
State | Virtual |
Created in | Burner (Solid)<br>Diesel Generator<br>Exhaust Scrubber<br>Flare<br>Smoke Stack<br>Smoke Stack (Large) |
Used in | None |
Transported by | Magic |
Stored in | Ethereal plane |
Steam (High)
Type | Crafted material |
State | Fluid |
Created in | Boiler (Coal)<br>Boiler (Electric)<br>Boiler (Gas)<br>Incineration Plant<br>Nuclear Reactor<br>Nuclear Reactor II<br>Super-Pressure Turbine<br>Thermal Storage Assembler (Manual) |
Used in | Chemical Plant<br>Chemical Plant II<br>Cooling Tower<br>Cooling Tower (Large)<br>Cracking Unit<br>Distillation (Stage I)<br>Distillation (Stage II)<br>Distillation (Stage III)<br>High-Pressure Turbine<br>High-Pressure Turbine II<br>Hydrogen Reformer<br>Smoke Stack<br>Smoke Stack (Large)<br>Sour Water Stripper<br>Thermal Desalinator<br>Thermal Storage |
Transported by | Pipe [II•III] |
Variants | Steam (Super) Steam (Low) Steam Depleted |
Wood
State | Unit |
Created in | None |
Used in | Assembly (Electric)<br>Assembly (Electric) II<br>Assembly (Manual)<br>Assembly (Robotic)<br>Coal Maker<br>Shredder |
Transported by | Flat Conveyor [II•III] Pickup • Truck |
Stored in | Unit Storage [II•III•IV] Shipyard |
Unknown Material
State | Unit |
Created in | None |
Used in | None |
Transported by | Flat Conveyor [II•III] Pickup • Truck |
Stored in | Unit Storage [II•III•IV] Shipyard |
aa
Arc Furnace</br>Arc Furnace II</br>Basic Distiller</br>Blast Furnace</br>Blast Furnace II</br>Boiler (Coal)</br>Brickworks</br>Chemical Plant</br>Chemical Plant II</br>Designations</br>Mixer</br>Mixer II</br>Rotary Kiln</br>Rubber Maker bb