Module:Skills/Artisan: Difference between revisions

Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling
(getCookingFireTable: Remove, replaced by getCookingUtilityTable in Module:Shop)
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
Line 57: Line 57:
end
end
result = result..'\r\n|-'
result = result..'\r\n|-'
result = result..'\r\n|style="min-width:25px"|'..Icons.Icon({item.name, type='item', notext='true', size='50'})
result = result..'\r\n|style="min-width:25px"|'..Icons.Icon({item.name, type='item', notext=true, size='50'})
result = result..'\r\n|style="min-width:25px"| '
result = result..'\r\n|style="min-width:25px"| '
if perfectItem ~= nil then
if perfectItem ~= nil then
result = result..Icons.Icon({perfectItem.name, type='item', notext='true', size='50'})
result = result..Icons.Icon({perfectItem.name, type='item', notext=true, size='50'})
end
end
result = result..'||'
result = result..'||'
Line 66: Line 66:
result = result..qty..'x '
result = result..qty..'x '
end
end
result = result..'[['..item.name..']]'
result = result..Icons.Icon({item.name, type='item', noicon = true})
result = result..'||style="text-align:right"|'..item.cookingLevel
result = result..'||style="text-align:right"|'..item.cookingLevel
result = result..'||style="text-align:right" data-sort-value="' .. item.cookingInterval .. '"|'..Shared.timeString(item.cookingInterval / 1000, true)
result = result..'||style="text-align:right" data-sort-value="' .. item.cookingInterval .. '"|'..Shared.timeString(item.cookingInterval / 1000, true)
Line 134: Line 134:
     for j, tierPot in Shared.skpairs(tierPots) do
     for j, tierPot in Shared.skpairs(tierPots) do
       local rowTxt = Icons.Icon({tierPot.name, type='item', notext=true})
       local rowTxt = Icons.Icon({tierPot.name, type='item', notext=true})
       rowTxt = rowTxt..'||[['..tierPot.name..'|'..tierSuffix[j]..']]'
       rowTxt = rowTxt..'||'..Icons.Icon({tierPot.name, tierSuffix[j], type = 'item', noicon = true})
       rowTxt = rowTxt..'||style="text-align:right;" data-sort-value="'..tierPot.sellsFor..'"|'..Icons.GP(tierPot.sellsFor)
       rowTxt = rowTxt..'||style="text-align:right;" data-sort-value="'..tierPot.sellsFor..'"|'..Icons.GP(tierPot.sellsFor)
       rowTxt = rowTxt..'||style="text-align:right;"|'..tierPot.potionCharges..'||'..tierPot.description
       rowTxt = rowTxt..'||style="text-align:right;"|'..tierPot.potionCharges..'||'..tierPot.description
Line 186: Line 186:
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n| style="text-align: left;" | '..Icons.Icon({rune.name, type='item', size='50', notext=true})
     result = result..'\r\n| style="text-align: left;" | '..Icons.Icon({rune.name, type='item', size='50', notext=true})
     result = result..'\r\n| style ="text-align: left;" |[['..rune.name..']]'
     result = result..'\r\n| style ="text-align: left;" |'..Icons.Icon({rune.name, type='item', noicon=true})
     result = result..'\r\n| style="text-align:right"|'..rune.runecraftingLevel
     result = result..'\r\n| style="text-align:right"|'..rune.runecraftingLevel
     result = result..'\r\n| style="text-align:right"|'..rune.runecraftingXP
     result = result..'\r\n| style="text-align:right"|'..rune.runecraftingXP
Line 242: Line 242:
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n| style="text-align: left;" | '..Icons.Icon({fletch.name, type='item', size='50', notext=true})
     result = result..'\r\n| style="text-align: left;" | '..Icons.Icon({fletch.name, type='item', size='50', notext=true})
     result = result..'\r\n| style ="text-align: left;" |[['..fletch.name..']]'
     result = result..'\r\n| style ="text-align: left;" |'..Icons.Icon({fletch.name, type='item', noicon=true})
     result = result..'\r\n| style="text-align:right"|'..fletch.fletchingLevel
     result = result..'\r\n| style="text-align:right"|'..fletch.fletchingLevel
     result = result..'\r\n| style="text-align:right"|'..fletch.fletchingXP
     result = result..'\r\n| style="text-align:right"|'..fletch.fletchingXP
Line 291: Line 291:
     result = result..'\r\n|-'
     result = result..'\r\n|-'
     result = result..'\r\n| style="text-align: left;" | '..Icons.Icon({craft.name, type='item', size='50', notext=true})
     result = result..'\r\n| style="text-align: left;" | '..Icons.Icon({craft.name, type='item', size='50', notext=true})
     result = result..'\r\n| style ="text-align: left;" |[['..craft.name..']]'
     result = result..'\r\n| style ="text-align: left;" |'..Icons.Icon({craft.name, type='item', noicon=true})
     result = result..'\r\n| style="text-align:right"|'..craft.craftingLevel
     result = result..'\r\n| style="text-align:right"|'..craft.craftingLevel
     result = result..'\r\n| style="text-align:right"|'..craft.craftingXP
     result = result..'\r\n| style="text-align:right"|'..craft.craftingXP