No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| | {| | ||
! hi | |||
{{#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=name,ingredient1,amount1,ingredient2,amount2,ingredient3,amount3,ingredient4,amount4,producer1,time1,producer2,time2;where='{{{1}}}' in (ingredient1,ingredient2,ingredient3,ingredient4) |
Revision as of 17:20, 15 August 2023
Documentation
Usage
{{RecipeUses|Item Name}}
For a given item, produces a list of all things (component, item, entity) which uses the item in its recipe using the Template:RecipeUses_Layout.
- Todo: Fix the IF statement for - if something takes 1 second to produce, the time should say 'sec' not 'secs'
- Try to figue out how to colour the background of every other row. AI says do this:
- <tr style="{{#ifeq: {{#expr: {{#var:__COUNTER__}} mod 2}}|0|background-color:#f2f2f2!important;}}">?
- Didnt work, did it AI. Can Anyone else help please??
To see a similar template that lists uses in a table, click Template:RecipeUsages.
Example
{{RecipeUses|Silica Sand}}
hi
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The above Template documentation is transcluded from Template:RecipeUses/doc. (edit | history)