Template:Ingredient list: Difference between revisions
From Everafter Falls Wiki
mNo edit summary |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#cargo_query:table=Items | <includeonly>{{#cargo_query:table=Items | ||
|where=Mat1="{{{1|{{PAGENAME}}}}}" OR Mat2="{{{1|{{PAGENAME}}}}}" OR Mat3="{{{1|{{PAGENAME}}}}}" OR Mat4="{{{1|{{PAGENAME}}}}}" OR Mat5="{{{1|{{PAGENAME}}}}}" | |where=Mat1="{{{1|{{PAGENAME}}}}}" OR Mat2="{{{1|{{PAGENAME}}}}}" OR Mat3="{{{1|{{PAGENAME}}}}}" OR Mat4="{{{1|{{PAGENAME}}}}}" OR Mat5="{{{1|{{PAGENAME}}}}}" | ||
|format=table | |format=table | ||
|fields=CONCAT('[[File:',Name,'.png{{!}}60px{{!}}link=',Name,']]')=Image, | |fields=CONCAT('[[File:',Name,'.png{{!}}60px{{!}}link=',Name,']]')=Image,CONCAT('{{Name check{{!}}',Name,'{{!}}',AmtCrafted,'}}')=Name,CONCAT('{{((}}recipe{{!}}',Mat1,'{{!}}',Amt1,'{{!}}',Mat2,'{{!}}',Amt2,'{{!}}',Mat3,'{{!}}',Amt3,'{{!}}',Mat4,'{{!}}',Amt4,'{{))}}')=Recipe,CONCAT('{{((}}Machine check{{!}}',Machine,'{{))}}')=Machine,CONCAT('{{((}}formatnum:',SellPrice,'{{))}}{{coin}}')=Sell Price | ||
|order by=Name ASC | |order by=Machine ASC,Name ASC | ||
}}</includeonly><noinclude>{{documentation}}[[Category:Cargo templates]]</noinclude> | }}</includeonly><noinclude>{{documentation}}[[Category:Cargo templates]]</noinclude> | ||
Latest revision as of 01:55, 21 July 2024
| Template documentation |
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
This template queries the Items table and returns a recipe table for one selected ingredient.
Syntax
{{Ingredient list}}
{{Ingredient list|Ingredient name}}
- Takes only one unnamed parameter. Please make sure the name matches in-game name.
- If an item with an existing page is not in the table, check if the ingredient names are spelled correctly in its infobox. The order of ingredients does not matter for this template.
- Can be used without any parameters; in that case defaults to using the name of the page it is called from.
Sample use
Refer to Raw Bread Base page for an example.