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:' -- 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'] = {'Black','Blue','Brown','Cyan','Green','Gray','Light Blue','Light Gray','Lime','Magenta','Orange','Pink','Purple','Red','White','Yellow', id='Jumbo Backpack ($o)'}, -- table.merge(MCColors, { id='Jumbo Backpack ($o)' }) ['T:Greater Backpack'] = {'Black','Blue','Brown','Cyan','Green','Gray','Light Blue','Light Gray','Lime','Magenta','Orange','Pink','Purple','Red','White','Yellow', id='Greater Backpack ($o)'}, ['T:Large Backpack'] = {'Black','Blue','Brown','Cyan','Green','Gray','Light Blue','Light Gray','Lime','Magenta','Orange','Pink','Purple','Red','White','Yellow', id='Large Backpack ($o)'}, ['T:Medium Backpack'] = {'Black','Blue','Brown','Cyan','Green','Gray','Light Blue','Light Gray','Lime','Magenta','Orange','Pink','Purple','Red','White','Yellow', id='Medium Backpack ($o)'}, ['T:Small Backpack'] = {'Black','Blue','Brown','Cyan','Green','Gray','Light Blue','Light Gray','Lime','Magenta','Orange','Pink','Purple','Red','White','Yellow', id='Small Backpack ($o)'}, ['T:Very Special'] = {{'Test Item Two', title='&aFoo'}, {'Test Item Three', title='&aBar'}, id='Test ID ($o)'}, ['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',var1='b'}, {'Black',var1='0'}, {'Green',var1='2'}, {'Lime',var1='a'}, {'Orange',var1='6'}, {'Pink',var1='d'}, {'Purple',var1='5'}, {'Red',var1='c'}, {'Yellow',var1='e'}, } }