Template:Machine 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=Machine="{{{1|{{PAGENAME}}}}}" {{#if:{{{2|}}}|OR Machine="{{{2|}}}"}} | |where=Machine="{{{1|{{PAGENAME}}}}}" {{#if:{{{2|}}}|OR Machine="{{{2|}}}"}} | ||
|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,CraftTime=Time,CONCAT('{{((}}formatnum:',SellPrice,'{{))}}{{coin}}')=Sell Price | ||
|order by=Recipe ASC | |order by=Recipe ASC | ||
}}</includeonly><noinclude>{{documentation}}[[Category:Cargo templates]]</noinclude> | }}</includeonly><noinclude>{{documentation}}[[Category:Cargo templates]]</noinclude> | ||
Latest revision as of 01:03, 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 machine.
Syntax
{{Machine list}}
{{Machine list|Machine 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 machine name is spelled correctly in its infobox.
- 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 Fruit and Honey Press page for an example.