Difference between revisions of "Template:Infobox material/sandbox"

From Captain of Industry Wiki
Jump to: navigation, search
(Automate "Created in" and "Used in")
Line 43: Line 43:
           --></tr>|[[Category:Missing state]]}}<!--
           --></tr>|[[Category:Missing state]]}}<!--
          
          
         ** Created/Used **
         ** 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"><!--
             -->{{#if:{{{CreatedIn|}}} | {{{CreatedIn}}} |<!--
             -->{{#var: CreatedInAuto}}<!--
              -->{{#cargo_query: tables=recipes
            -->{{#if: {{#var: CreatedInAuto}} | {{#if: {{{CreatedIn|}}} | <br> }} }}<!--
                  | fields = Building
             -->{{{CreatedIn|}}}<!--
                  | 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}}}
                  | delimiter = </br>
                  | default = None
                }}<!--
             -->}}<!--
           --></td><!--
           --></td><!--
         --></tr><!--
         --></tr><!--
         -->{{#if:{{{UsedIn|}}}|<!--
 
          --><tr class="table-tr"><!--
         ** Used in **
            --><td class="table-td-left">Used in</td><!--
        -->{{#vardefine: UsedInAuto | <!--
            --><td class="table-td-right">{{{UsedIn}}}</td><!--
          -->{{#cargo_query: tables=recipes
          --></tr>}}<!--
              | 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

Air Pollution
Air Pollution.png
TypePollution
StateVirtual
Created inBurner (Solid)
Diesel Generator
Exhaust Scrubber
Flare
Smoke Stack
Smoke Stack (Large)
Used inNone
Transported byMagic
Stored inEthereal plane
Unknown Material
StateUnit
Created inNone
Used inNone
Transported byFlat Conveyor [IIIII]
PickupTruck
Stored inUnit Storage [IIIIIIV]
Shipyard

aa

Arc Furnace
Arc Furnace II
Basic Distiller
Blast Furnace
Blast Furnace II
Boiler (Coal)
Brickworks
Chemical Plant
Chemical Plant II
Designations
Mixer
Mixer II
Rotary Kiln
Rubber Maker bb