Template:Building material list: Difference between revisions

From Everafter Falls Wiki

Created page with "<includeonly>{{#cargo_query:table=Projects |where=Mat1="{{{1|{{PAGENAME}}}}}" OR Mat2="{{{1|{{PAGENAME}}}}}" OR Mat3="{{{1|{{PAGENAME}}}}}" OR Mat4="{{{1|{{PAGENAME}}}}}" |format=table |fields=CONCAT('{{project name{{!}}',Name,'{{!}}',Icon,'}}')=Project,CONCAT('',Workshop,'')=Workshop,CONCAT('{{((}}recipe{{!}}',Mat1,'{{!}}',Amt1,'{{!}}',Mat2,'{{!}}',Amt2,'{{!}}',Mat3,'{{!}}',Amt3,'{{!}}',Mat4,'{{!}}',Amt4,'{{))}}')=Recipe |order by=Name ASC }}</includeonly><noinclude..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
|where=Mat1="{{{1|{{PAGENAME}}}}}" OR Mat2="{{{1|{{PAGENAME}}}}}" OR Mat3="{{{1|{{PAGENAME}}}}}" OR Mat4="{{{1|{{PAGENAME}}}}}"
|where=Mat1="{{{1|{{PAGENAME}}}}}" OR Mat2="{{{1|{{PAGENAME}}}}}" OR Mat3="{{{1|{{PAGENAME}}}}}" OR Mat4="{{{1|{{PAGENAME}}}}}"
|format=table
|format=table
|fields=CONCAT('{{project name{{!}}',Name,'{{!}}',Icon,'}}')=Project,CONCAT('[[',Workshop,']]')=Workshop,CONCAT('{{((}}recipe{{!}}',Mat1,'{{!}}',Amt1,'{{!}}',Mat2,'{{!}}',Amt2,'{{!}}',Mat3,'{{!}}',Amt3,'{{!}}',Mat4,'{{!}}',Amt4,'{{))}}')=Recipe
|fields=CONCAT('{{project name{{!}}',Name,'{{!}}',Icon,'}}')=Project,CONCAT('{{Workshop check{{!}}',Workshop,'{{!}}',Cost,'}}')=Workshop,CONCAT('{{((}}recipe{{!}}',Mat1,'{{!}}',Amt1,'{{!}}',Mat2,'{{!}}',Amt2,'{{!}}',Mat3,'{{!}}',Amt3,'{{!}}',Mat4,'{{!}}',Amt4,'{{))}}')=Recipe
|order by=Name ASC
|order by=Name ASC
}}</includeonly><noinclude>{{documentation}}[[Category:Cargo templates]]</noinclude>
}}</includeonly><noinclude>{{documentation}}[[Category:Cargo templates]]</noinclude>

Latest revision as of 00:06, 30 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 Projects table and returns a projects table for one selected ingredient.

Syntax

{{Building material list}}
{{Building material list|Item 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 on its page. 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.