Module:ItemsTable: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 4: Line 4:
local p = {}
local p = {}


local ItemData = mw.loadData('Module:Items/data')
local Items = require('Module:Items')
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
local SourceTables = require('Module:Items/SourceTables')
local SourceTables = require('Module:Items/SourceTables')
Line 23: Line 23:


function p.getItemsTable(frame)
function p.getItemsTable(frame)
  local allItems = ItemData.Items
   local itemList = {}
   local itemList = {}
   local i = tonumber(frame.args[1])
   local i = tonumber(frame.args[1])
   local iend = i + 100
   local iend = i + 100
   while i < iend do
   while i < iend do
     local item = allItems[i]
     local item = Items.getItemByID(i)
     if item then
     if item then
       local itemRow = '\r\n|-'
       local itemRow = '\r\n|-'
444

edits