Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
-- this module generates [[Template:ItemsTable]] 100 lines at a time.
-- this module generates [[Template:ItemsTable]] 100 lines at a time.
-- run p.generateInvokes() in debug and copy the result to [[Template:ItemsTable]] after an update that adds new items.
-- run p.getInvokes() in debug and copy the result to [[Template:ItemsTable]] after an update that adds new items.


local p = {}
local p = {}
Line 27: Line 27:
   local itemList = {}
   local itemList = {}
   local i = tonumber(frame.args[1])
   local i = tonumber(frame.args[1])
   local iend = i + iterator
   local iend = (i == 901) and 971 or (i + iterator)
   while i < iend do
   while i < iend do
     local item = Items.getItemByID(i)
     local item = Items.getItemByID(i)
Line 38: Line 38:
     i = i + 1
     i = i + 1
   end
   end
   return table.concat(itemList, '')
   return table.concat(itemList)
end
end


return p
return p
444

edits