Module:Recipe table/doc: Difference between revisions
(Created page with "{{documentation header}} <!-- Documentation here --> This module creates the table for {{t|crafting}}, {{t|brewing}}, {{t|smelting}} and {{t|looming}}. It can only be invoked within other modules. == Usage == The entry point is the <code>table</code> function. The first argument should be whatever arguments you want to pass through, the second argument should be a table of settings. {| class="wikitable" ! Setting !! Use |- | type || What type of recipe, e.g.: <code>'Cra...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation header}} | {{documentation header}} | ||
<!-- Documentation here --> | <!-- Documentation here --> | ||
This module creates the table for {{t|crafting | This module creates the table for {{t|crafting}}. It can only be invoked within other modules. | ||
This module was ported from https://minecraft.wiki. It is licensed under CC BY-NC-SA 3.0 | |||
== Usage == | == Usage == |
Revision as of 22:00, 16 February 2025
Template:Documentation header This module creates the table for Template:T. It can only be invoked within other modules. This module was ported from https://minecraft.wiki. It is licensed under CC BY-NC-SA 3.0
Usage
The entry point is the table
function. The first argument should be whatever arguments you want to pass through, the second argument should be a table of settings.
Setting | Use |
---|---|
type | What type of recipe, e.g.: 'Crafting'
|
ingredientArgs | A table of the args which contain the ingredients, e.g.: { 'Input' }
|
outputArgs | A table of the args which contain the outputs, e.g.: { 'Output' }
|
uiFunc | The function to call from Module:UI, e.g.: 'craftingTable'
|
The module returns the wikitext table as the first parameter, and a table of unique ingredients as the second output.