Module:Crafting/Templates

local minionTemplates = require('Module:Minion/Templates')

return { -- It is suggested to prepend template tooltips in Module:Crafting/Data with 'T:' -- There, {s} and {o} can be used for insersion of (processed) new crafted item id and (original) new crafted item string respectively -- {0}, {1}, {2}... can be used for custom variable placeholders (Uses zero indexing) -- Placeholders can be used in any fields (id/any other params, or in any overrides below) -- Usage: ["Existing Crafted Item Name as a Template"] = {  ..., } -- Adding a crafted item using a string will be equivalent as this in tooltips: -- [] = { '' } -- * optionally, you may use {s} on any position on any custom keys to insert the Crafted Item String. -- You can override any of the above with a table. For example, to replace the output link: -- { , Olink =  } -- You can use that table to insert variables with 'vars'. For example, to indicate values for {0} and {1}: -- { , 'Green', '&a' } -- Available : -- id: Override crafted item id/key on ALL table values (refered as {o}, the original string). -- Note: the new id/key after replacement will be refered as {s}, the new crafted item id	['T:Enchanted'] = { {'Enchanted Cobblestone', 'Cobblestone'}, {'Enchanted Grilled Pork', 'Enchanted Pork'}, {'Enchanted Pork', 'Pork'}, },	['T:Minion'] = minionTemplates.recipes, }