Template:RecipeUsages: Difference between revisions

Template page
No edit summary
No edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>=== Recipes Using {{{1}}} ===
=== Recipes Using {{{1}}} ===
{{#cargo_compound_query:
{{#cargo_compound_query:
tables=entity;fields=name,ingredient1,amount1,ingredient2,amount2,ingredient3,amount3,ingredient4,amount4,producer1,time1,producer2,time2;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
tables=entity;fields=types1=,{{ConcatImage|name}}=,name=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=,time1=,{{ConcatImage|producer2}}=,time2=;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|tables=component;fields=name,ingredient1,amount1,ingredient2,amount2,ingredient3,amount3,ingredient4,amount4,producer1,time1,producer2,time2;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|tables=item;fields=CONCAT('Item')=,{{ConcatImage|name}}=,name=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=,time1=,{{ConcatImage|producer2}}=,time2=;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|tables=item;fields=name,ingredient1,amount1,ingredient2,amount2,ingredient3,amount3,ingredient4,amount4,producer1,time1,producer2,time2;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|tables=component;fields=CONCAT('Component')=,{{ConcatImage|name}}=,name=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=,time1=,{{ConcatImage|producer2}}=,time2=;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|format=template
|format=table
|template=RecipeUsages/row
|order by=1
}}
}}</includeonly>
 
<noinclude>{{Documentation}}</noinclude>
{{#cargo_compound_query:
tables=entity;fields={{ConcatImage|name}}=Output,{{ConcatImage|'Left arrow'}}=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=Produced By,time1=Time,{{ConcatImage|producer2}}=Produced By,time2=Time;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|format=dynamic table
|details fields={{ConcatImage|producer1}}=Produced By,time1=Time,{{ConcatImage|producer2}}=Produced By,time2=Time
}}
 
 
{{#cargo_compound_query:
tables=entity;fields={{ConcatImage|name}}=Output,{{ConcatImage|'Left_arrow'}}=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=Produced By,time1=Time,{{ConcatImage|producer2}}=Produced By,time2=Time;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|tables=component;fields={{ConcatImage|name}}=Output,{{ConcatImage|'Left_arrow'}}=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=Produced By,time1=Time,{{ConcatImage|producer2}}=Produced By,time2=Time;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|tables=item;fields={{ConcatImage|name}}=Output,{{ConcatImage|'Left_arrow'}}=,{{ConcatImage|ingredient1}}=,amount1=,{{ConcatImage|ingredient2}}=,amount2=,{{ConcatImage|ingredient3}}=,amount3=,{{ConcatImage|ingredient4}}=,amount4=,{{ConcatImage|producer1}}=Produced By,time1=Time,{{ConcatImage|producer2}}=Produced By,time2=Time;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4)
|format=dynamic table
}}
 
</includeonly>

Latest revision as of 10:59, 14 August 2023

Documentation

Usage[edit source]

{{RecipeUsages|Item Name}}

For a given item, produces a table of all things (component, item, entity) which uses the item in its recipe.

Example[edit source]

{{RecipeUsages|Crystal Chunk}}

Recipes Using Crystal Chunk

Bot Runner 3 3 3.0 2.0
Building Building 1x1 (1S) 5 10 3.0
Building Storage Block (8) 10 10 3.0
Building Wall 3 3 20.0
Item Cable 2 1 2 12.0 20.0
Item Circuit Board 5 3 12.0 8.0
Item Crystal Powder 3 1 6.0 12.0
Item Energized Plate 2 2 40.0 20.0
Item Plasma Crystal 5 5 6.0
Item Polymer 1 5 9.6 4.8
Item Reactor Fuel Rods 5 1 10.0 5.0
Item Transformer 1 1 30.0 10.0
Component Assembler 10 5 8.0 8.0
Component Blight Control Tower 1 10 5 1.0
Component Capacitor 1 10 6.0
Component Crystal Power 10 5 4.0
Component Deconstructor 1 10 6.0
Component Deployer 1 5 6.0
Component Fabricator 5 5 4.0 4.0
Component Light RGB 1 1 1.0
Component Light 1 1 1.0
Component Miner 5 5 4.0
Component Portable Power Field 1 5 12.0
Component Reconstructor 3 10 6.0
Component Repair Kit 1 5 10.0
Component Small Battery 1 10 12.0
Component Solar Cell 2 10 16.0

The above Template documentation is transcluded from Template:RecipeUsages/doc. (edit | history)