Module:Inventory slot/Templates

local table = require('Module:Table')

local MCColors = require('Module:Color/Data').MCColors

return { -- It is suggested to prepend template tooltips in Module:Inventory slot/Tooltips with 'T:' -- There, $s and $o can be used for insersion of (processed) new item id and (original) new item string respectively -- Usage: ["Existing Tooltip Name as a Template"] = {  ..., } -- Adding an item using a string will be equivalent as this in tooltips: -- [] = { -- name =  -- title = -- text = -- }		-- * optionally, you may use $s on any position of title/text to insert the Tooltip String. -- You can override any of the above with a table. For example, to replace the title: -- { , title =  } -- Available : -- id: Applies item id/key replacement on ALL table values (refered as $o). -- Note: the new id/key after replacement will be refered as $s ['T:Jumbo Backpack'] = table.merge({ id='Jumbo Backpack ($o)' }, MCColors), ['T:Greater Backpack'] = table.merge({ id='Greater Backpack ($o)' }, MCColors), ['T:Large Backpack'] = table.merge({ id='Large Backpack ($o)' }, MCColors), ['T:Medium Backpack'] = table.merge({ id='Medium Backpack ($o)' }, MCColors), ['T:Small Backpack'] = table.merge({ id='Small Backpack ($o)' }, MCColors), ['T:Very Special'] = {}, ['T:Special'] = {}, ['T:Supreme'] = {}, ['T:Mythic'] = {}, ['T:Legendary'] = {}, ['T:Epic'] = {}, ['T:Rare'] = {}, ['T:Unommon'] = {}, ['T:Common'] = {}, -- Planned feature: Variables inside Template -- DON'T USE THIS YET ["T:Crab Hat of Celebration"] = { {'Aqua',vars={'b'}}, {'Black',vars={'0'}}, {'Green',vars={'2'}}, {'Lime',vars={'a'}}, {'Orange',vars={'6'}}, {'Pink',vars={'d'}}, {'Purple',vars={'5'}}, {'Red',vars={'c'}}, {'Yellow',vars={'e'}}, id='$o Crab Hat of Celebration' } }