621
edits
(second attempt, this should work!) |
(adding item.type to artefacttable(?)) |
||
Line 42: | Line 42: | ||
local result = {} | local result = {} | ||
table.insert(result, '{|class="wikitable sortable" id="itemdrops"') | table.insert(result, '{|class="wikitable sortable" id="itemdrops"') | ||
table.insert(result, '\r\n!Item!!Qty') | table.insert(result, '\r\n!Item!!Type!!Qty') | ||
table.insert(result, '!!Price!!colspan="2"|Chance') | table.insert(result, '!!Price!!colspan="2"|Chance') | ||
Line 71: | Line 71: | ||
table.insert(result, '\r\n|-\r\n|Unknown Item[[Category:Pages with script errors]]') | table.insert(result, '\r\n|-\r\n|Unknown Item[[Category:Pages with script errors]]') | ||
end | end | ||
table.insert(result, '||style="text-align:right" data-sort-value="'..item.type..'"|') | |||
table.insert(result, '||style="text-align:right" data-sort-value="'..row.maxQuantity..'"|') | table.insert(result, '||style="text-align:right" data-sort-value="'..row.maxQuantity..'"|') | ||