Module:Items

-- local p = {}

local data = require("Module:Items/Data") local all_items = data.items

function p.ItemCount local count = 0 for i in pairs(all_items) do   count = count + 1 end return count end

local infobox_template = [=[ ]=]

function p.Infobox(frame) local item_name = frame.args[1] local item = all_items[item_name] return frame:preprocess(string.format(infobox_template, item_name, item_name, item.Rarity, item.Desc, item.Stacking, item.Category or "", item.Unlock or "", item.ID, item.Quote )) end

return p --