Module:StonemasonPassiveList: Difference between revisions
No need to hide broken image file links. Should encourage people to upload them.
m (display IMG ERR for missing image, but its the ~same size as an image) |
(No need to hide broken image file links. Should encourage people to upload them.) |
||
(One intermediate revision by one other user not shown) | |||
Line 118:
item.XPPerHour = item.XP and item.productPerHour and math.floor(item.XP * item.productPerHour)
item.profitPerHour = item.profit and item.productPerHour and math.floor(item.profit * item.productPerHour)
end
Line 194 ⟶ 190:
:addClass('plinkt-image no-border')
:css{ ['border-left'] = '0', ['padding-left'] = '0' }
▲ :wikitext('[[File:' .. item.name .. '.png|link=' .. item.name .. '|30px]]')
:done()
:tag('td')
Line 210 ⟶ 202:
for i, _ in ipairs(item.materials) do
materialCell:wikitext(item.materials[i].quantity .. '× [[File:' .. item.materials[i].name .. '.png|30x30px|link=' .. item.materials[i].name .. ']]
end
|