Editing Module:BonewrightList
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 103: | Line 103: | ||
item.XPPerHour = item.XP and item.productPerHour and math.floor(item.XP * item.productPerHour) |
item.XPPerHour = item.XP and item.productPerHour and math.floor(item.XP * item.productPerHour) |
||
item.buyPerHour = item.buy and item.productPerHour and math.floor(item.buy * item.productPerHour) |
item.buyPerHour = item.buy and item.productPerHour and math.floor(item.buy * item.productPerHour) |
||
-- testing something that will stop broken image links appearing |
|||
local imgQuery = mw.smw.ask('[[File:' .. item.name .. '.png]]|?Modification date #- =data|mainlabel=-') |
|||
item.imgResult = imgQuery and imgQuery[1] and imgQuery[1].data |
|||
end |
end |
||
Line 183: | Line 187: | ||
:addClass('plinkt-image no-border') |
:addClass('plinkt-image no-border') |
||
:css{ ['border-left'] = '0', ['padding-left'] = '0' } |
:css{ ['border-left'] = '0', ['padding-left'] = '0' } |
||
:IF(item.imgResult) |
|||
:wikitext('[[File:' .. item.name .. '.png|link=' .. item.name .. '|30px]]') |
:wikitext('[[File:' .. item.name .. '.png|link=' .. item.name .. '|30px]]') |
||
:END() |
|||
:done() |
:done() |
||
:tag('td') |
:tag('td') |