(Created page with "<includeonly> {{#cargo_query: tables=item |fields=name,ingredient1,amount1,ingredient2,amount2,ingredient3,amount3,ingredient4,amount4 |where='{{{1}}}' in (ingredient1, ingredient2, ingredient3, ingredient4) |format=template |template=RecipeUsages/row }} </includeonly>") |
No edit summary |
||
(31 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>=== Recipes Using {{{1}}} === | ||
{{# | {{#cargo_compound_query: | ||
tables=item | 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) | ||
|fields=name,ingredient1,amount1,ingredient2,amount2,ingredient3,amount3,ingredient4,amount4 | |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) | ||
|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= | |format=table | ||
| | |order by=1 | ||
}} | }}</includeonly> | ||
</ | <noinclude>{{Documentation}}</noinclude> |
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
The above Template documentation is transcluded from Template:RecipeUsages/doc. (edit | history)