Module:Items/ComparisonTables: Difference between revisions

Final tweaks
(i am very clever)
(Final tweaks)
Line 319: Line 319:
     if item == nil then break end
     if item == nil then break end
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'
     local rowTxt = '|-\r\n|'..Icons.Icon({item.name, type='item', size='50', notext=true})..'||[['..item.name..']]'
     rowTxt = rowTxt..'||'..i..'||'..item.category..'||'..item.type..'||'..Icons.GP(item.sellsFor)
     rowTxt = rowTxt..'||style="text-align:right;"|'..i..'||'..item.category..'||'..item.type
     rowTxt = rowTxt..'||'..ItemSourceTables._getItemSources(item, false, 'false')
    rowTxt = rowTxt..'||style="text-align:right;" data-sort-value="'..item.sellsFor..'"|'..Icons.GP(item.sellsFor)
     rowTxt = rowTxt..'||'..ItemUseTables._getItemUses(item, false, 'false')
     rowTxt = rowTxt..'||style="text-align:right;"|'..ItemSourceTables._getItemSources(item, false, 'false')
     rowTxt = rowTxt..'||style="text-align:right;"|'..ItemUseTables._getItemUses(item, false, 'false')
     table.insert(rowResult, rowTxt)
     table.insert(rowResult, rowTxt)
   end
   end