Module:Test

local data = mw.loadData( 'Module:iteminfo/database' ) -- loading data table. (What a hell!)

p = {}

p.test = function(itemid) -- out of range and Deprecated ID. if itemid >= 3930 or itemid <= 0 then return data[0] end return data[itemid] end

return p