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]] 50 lines at a time.
-- this module generates [[Template:ItemsTable]] 50 lines at a time.
-- run p.generateInvokes() in debug and copy the result to [[Template:ItemsTable]] after an update that adds new items to add lines to the table.
-- run p.generateInvokes() in debug and copy the result to [[Template:ItemsTable]] after an update that adds new items.


local p = {}
local p = {}
Line 16: Line 16:
   local i = 1
   local i = 1
   while i < numberOfItems do
   while i < numberOfItems do
     result = result..'{{#invoke:ItemsTable|getItemsTable|'..i..'}}\r\n'
     result = result..'\r\n{{#invoke:ItemsTable|getItemsTable|'..i..'}}'
     i = i + 50
     i = i + 50
   end
   end
444

edits