Module:Items: Difference between revisions

change to data sort value
(Added links and also moved quantity over)
(change to data sort value)
Line 1,013: Line 1,013:
   for i, row in pairs(useArray) do
   for i, row in pairs(useArray) do
     local qty = row.qty ~= nil and row.qty or 1
     local qty = row.qty ~= nil and row.qty or 1
     result = result..'\r\n|-\r\n|data-sort-value="'..qty..'"|'
     result = result..'\r\n|-\r\n|data-sort-value="'..row.item.name..'"|'
     result = result..Icons.Icon({row.item.name, type='item', notext=true, size=50})..'||'
     result = result..Icons.Icon({row.item.name, type='item', notext=true, size=50})..'||'
     if qty > 1 then result = result..qty..'x ' end
     if qty > 1 then result = result..qty..'x ' end