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 -- $0-9 can be used for custom variable placeholders -- Placeholders can be used in any fields (id/name/title/text in Tooltips or in any overrides below) -- 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 =  } -- You can use that table to insert variables with 'vars'. For example, to indicate values for $0 and $1: -- { , vars = { 'Green', '&a' } } -- Available : -- id: Override 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 item id	['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'] = {}, ["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' } }