Template:Recipes/extract/doc

Use this template to extract info from certain crafting recipe(s).

Usage
This template is designed for extracting info from recipe(s) for "single result item"(however can be multiple recipes), so you need to use query constraint parameters (,  ...) to query "single" result. See recipes for details of all query constraint parameters.

If query result is more than one row, this template will only return first row for  or , and all rows for   or.

then, use following parameters for output format:

Output mode. If not specified, it will be  by default. See examples below.
 * mode = compact/result/ingredients/station

Separator between multiple ingredients lists. Only valid when  or. Default is  for   or   for. Note: single ingredients list will be wrapped in &lt;div&gt; when  and in &lt;span&gt; when.
 * sep or seperator

Only valid when. By default, it will output as [ingredients]@[station], if, will output as [ingredients]@[station]=[result], if  , there will be no @[station]. The crafting station will be displayed as it is formatted in the  parameter of the recipes call on the respective recipes registration subpage. (For instance, Exxo Avalon recipes with "Adamantite Forge" set as the crafting station will always display the "Adamantite Forge / Titanium Forge / Troxinium Forge" that is set as the  of the recipes call on Exxo Avalon/Recipes/Hardmode Forge, which also has  .) If that cannot be determined, then it falls back to the default set of formatting rules from the vanilla wiki, and finally to simply.
 * withresult and nostation

Only valid when. result item will show their internal item ID (if available), and/or have no link, respectively.
 * showresultid=y and link=no

Examples
For these examples, it is assumed we are in the Exxo Avalon mod wiki.

Multiple recipes: Note: single ingredients list will be wrapped in &lt;div&gt; when  and in &lt;span&gt; when.