Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
m
no edit summary
mNo edit summary
mNo edit summary
Line 12: Line 12:
function p.generateInvokes(frame)
function p.generateInvokes(frame)
   local numberOfItems = Shared.tableCount(ItemData.Items)
   local numberOfItems = Shared.tableCount(ItemData.Items)
   local result = ''
   local result = '{| class="wikitable sortable stickyHeader" style="width:100%;"\r\n|- class="headerRow-0"'
  result = result..'\r\n!colspan="2"|Item!!ID!!Category!!Type!!Sells For!!Item Sources!!Item Uses!!'
   local i = 1
   local i = 1
   while i < numberOfItems do
   while i < numberOfItems do
Line 18: Line 19:
     i = i + 50
     i = i + 50
   end
   end
  result = result..'\r\n|}'
   mw.log(result)
   mw.log(result)
end
end
444

edits