Module:Items/SourceTables: Difference between revisions

Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling
m (added missing character)
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
Line 854: Line 854:
     local rowPart = {}
     local rowPart = {}
     table.insert(rowPart, '\r\n|-\r\n|'..Icons.Icon({spell.name, type='spell', notext=true, size=50}))
     table.insert(rowPart, '\r\n|-\r\n|'..Icons.Icon({spell.name, type='spell', notext=true, size=50}))
     table.insert(rowPart, '||[['..spell.name..']]||style="text-align:right;"|'..item.smithingLevel)
     table.insert(rowPart, '||'..Icons.Icon({spell.name, type='spell', noicon=true})..'||style="text-align:right;"|'..item.smithingLevel)
     table.insert(rowPart, '||style="text-align:right;"|'..spell.level..'||style="text-align:right;"|'..spell.magicXP..'||style="text-align:right;"|'..spell.convertToQty)
     table.insert(rowPart, '||style="text-align:right;"|'..spell.level..'||style="text-align:right;"|'..spell.magicXP..'||style="text-align:right;"|'..spell.convertToQty)
     table.insert(rowPart, '||'..oreString)
     table.insert(rowPart, '||'..oreString)
Line 941: Line 941:
   for i, item in Shared.skpairs(itemArray) do
   for i, item in Shared.skpairs(itemArray) do
     table.insert(resultPart, '|-\r\n')
     table.insert(resultPart, '|-\r\n')
     table.insert(resultPart, '! '..Icons.Icon({item.name, type='item', notext='true'})..'\r\n! [['..item.name..']]\r\n')
     table.insert(resultPart, '! '..Icons.Icon({item.name, type='item', notext='true'})..'\r\n! '..Icons.Icon({item.name, type='item', noicon=true})..'\r\n')
     table.insert(resultPart, '| '..item.description..'\r\n')
     table.insert(resultPart, '| '..item.description..'\r\n')
   end
   end