Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling
m (AltMagicProducts)
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
Line 250: Line 250:
     if potion ~= nil then
     if potion ~= nil then
       table.insert(resultPart, '\r\n|-')
       table.insert(resultPart, '\r\n|-')
       table.insert(resultPart, '\r\n|'..Icons.Icon({tierName, type='item', notext='true', size='60'}))
       table.insert(resultPart, '\r\n|'..Icons.Icon({tierName, type='item', notext=true, size='60'}))
       table.insert(resultPart, '||'..'[['..tierName..'|'..tier..']]')
       table.insert(resultPart, '||'..Icons.Icon({tierName, tier, type='item', noicon=true}))
       table.insert(resultPart, '||'..potion.potionCharges..'||'..potion.description)
       table.insert(resultPart, '||'..potion.potionCharges..'||'..potion.description)
     end
     end
Line 361: Line 361:
   table.insert(resultPart, '!Skillcape!!Name!!Effect')
   table.insert(resultPart, '!Skillcape!!Name!!Effect')
   table.insert(resultPart, '\r\n|-\r\n|'..Icons.Icon({cape.name, type='item', size='60', notext=true}))
   table.insert(resultPart, '\r\n|-\r\n|'..Icons.Icon({cape.name, type='item', size='60', notext=true}))
   table.insert(resultPart, '||[['..cape.name..']]||'..cape.description)
   table.insert(resultPart, '||'..Icons.Icon({cape.name, type='item', noicon=true})..'||'..cape.description)
   table.insert(resultPart, '\r\n|}')
   table.insert(resultPart, '\r\n|}')
   return table.concat(resultPart)
   return table.concat(resultPart)