Module:Skills/Artisan: Difference between revisions

Use classes rather than styles where possible
(_getRecipeTable: Prevent repeating of item image for recipes with multiple costs)
(Use classes rather than styles where possible)
Line 61: Line 61:


table.insert(resultPart, '\r\n|-')
table.insert(resultPart, '\r\n|-')
table.insert(resultPart, '\r\n|style="min-width:25px"|'..Icons.Icon({item.name, type='item', notext=true, size='50'}))
table.insert(resultPart, '\r\n|class="table-img"|'..Icons.Icon({item.name, type='item', notext=true, size='50'}))
table.insert(resultPart, '\r\n|style="min-width:25px"| ')
table.insert(resultPart, '\r\n|class="table-img"| ')
if perfectItem ~= nil then
if perfectItem ~= nil then
table.insert(resultPart, Icons.Icon({perfectItem.name, type='item', notext=true, size='50'}))
table.insert(resultPart, Icons.Icon({perfectItem.name, type='item', notext=true, size='50'}))