444
edits
Inconvenient (talk | contribs) No edit summary |
Inconvenient (talk | contribs) (Undo revision 45033 by Inconvenient (talk)) Tag: Undo |
||
Line 11: | Line 11: | ||
local UseTables = require('Module:Items/UseTables') | local UseTables = require('Module:Items/UseTables') | ||
local | function p.getInvokes(frame) | ||
local result = '{| class="wikitable sortable stickyHeader" style="width:100%;"' | |||
result = result..'\r\n!colspan="2"|Item!!ID!!Category!!Type!!Sells For!!Item Sources!!Item Uses\r\n' | |||
local i = 1 | |||
while i < Shared.tableCount(ItemData.Items) do | |||
result = result..'{{#invoke:ItemsTable|getItemsTable|'..i..'}}' | |||
i = i + 50 | |||
end | |||
result = result..'\r\n|}' | |||
mw.log(result) | |||
end | |||
function p.getItemsTable(frame) | function p.getItemsTable(frame) | ||
local itemList = {} | local itemList = {} | ||
local i = 1 | local i = tonumber(frame.args[1]) | ||
while i < | local iend = i + 50 | ||
while i < iend do | |||
local item = Items.getItemByID(i) | local item = Items.getItemByID(i) | ||
table.insert(itemList, '\r\n|-\r\n|') | table.insert(itemList, '\r\n|-\r\n|') |
edits