Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Recipe table/doc: Difference between revisions

From Mine in Abyss
minecraft>Lukes20129
m ja interwiki
 
m 1 revision imported
 
(No difference)

Latest revision as of 12:49, 11 October 2024

This is the documentation page. It is transcluded into Module:Recipe table. See Template:Documentation for more information.

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

Usage[edit source]

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[edit source]


fr:Module:Tableau de recette/doc ja:モジュール:Recipe table/doc pt:Módulo:Recipe table/doc ru:Модуль:Таблица рецептов/док uk:Модуль:Recipe table/док