Anonymous

Module:ItemsTable: Difference between revisions

From Melvor Idle
no edit summary
(p.getInvokes())
No edit summary
Line 13: Line 13:
function p.getInvokes(frame)
function p.getInvokes(frame)
     local result = '{| class="wikitable sortable stickyHeader" style="width:100%;"'
     local result = '{| class="wikitable sortable stickyHeader" style="width:100%;"'
     result = result..'\r\n!Item!!ID!!Category!!Type!!Sells For!!Item Sources!!Item Uses\r\n'
     result = result..'\r\n!Item!!ID!!Category!!Type!!Sells For!!Item Uses\r\n'
     local i = 1
     local i = 1
     while i < Shared.tableCount(ItemData.Items) do
     while i < Shared.tableCount(ItemData.Items) do
Line 39: Line 39:
     table.insert(itemList, '||')
     table.insert(itemList, '||')
     table.insert(itemList, Icons.GP(item.sellsFor))
     table.insert(itemList, Icons.GP(item.sellsFor))
    table.insert(itemList, '||')
    table.insert(itemList, SourceTables.getItemSources(item.name))
     table.insert(itemList, '||')
     table.insert(itemList, '||')
     table.insert(itemList, UseTables.getItemUses(item.name))
     table.insert(itemList, UseTables.getItemUses(item.name))
444

edits