Module:ItemsTable: Difference between revisions

Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling
(adding item name links for next time this gets built)
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
Line 37: Line 37:
     local itemRow = '\r\n|-'
     local itemRow = '\r\n|-'
     itemRow = itemRow..'\r\n|'..Icons.Icon({item.name, type='item', notext=true, size=50})
     itemRow = itemRow..'\r\n|'..Icons.Icon({item.name, type='item', notext=true, size=50})
     itemRow = itemRow..'||[['..item.name..']]||'..(i)..'||'..item.category..'||'..item.type
     itemRow = itemRow..'||'..Icons.Icon({item.name, type='item', noicon=true})..'||'..(i)..'||'..item.category..'||'..item.type
     itemRow = itemRow..'||data-sort-value="'..item.sellsFor..'"|'..Icons.GP(item.sellsFor)
     itemRow = itemRow..'||data-sort-value="'..item.sellsFor..'"|'..Icons.GP(item.sellsFor)
     itemRow = itemRow..'||style="text-align:right;"|'..SourceTables._getItemSources(item)
     itemRow = itemRow..'||style="text-align:right;"|'..SourceTables._getItemSources(item)