Difference between revisions of "Module:Recipe table/doc"

From Box of Rocks WIKI
Jump to navigation Jump to search
Sprite>Blobs2
(Can only be used in other modules)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 14:44, 13 May 2021

This is the documentation page. It will be transcluded into the main module page. See Template:Documentation for more information

This module creates the table for {{crafting}}, {{brewing}} and {{smelting}}. It can only be invoked within other modules.

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.

Dependencies