Editing Module:MinerList
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 41: | Line 41: | ||
item.product = item.product or '' |
item.product = item.product or '' |
||
-- detect mine cart work |
-- detect mine cart work |
||
item.hideCells = string.find(item.pageName,'Mine Cart Work') |
item.hideCells = string.find(item.pageName,'Mine Cart Work') |
||
item.usesExplosives = string.find(item.pageName,'Deathstone') |
|||
if item.hideCells then |
if item.hideCells then |
||
item.profit = item.coins and tonumber(item.coins) |
item.profit = item.coins and tonumber(item.coins) |
||
else |
|||
item.profit = item.sellPrice |
|||
end |
end |
||
-- materials used |
|||
item.material = (item.materials and item.materials[1] and item.materials[1].name) or '' |
|||
-- downtime is very important for gathering-type professions |
-- downtime is very important for gathering-type professions |
||
Line 122: | Line 120: | ||
:attr{ colspan = '2' } |
:attr{ colspan = '2' } |
||
:wikitext('Mining node') |
:wikitext('Mining node') |
||
:done() |
|||
:tag('th') |
|||
:attr{ colspan = '2' } |
|||
:wikitext('Materials') |
|||
:done() |
:done() |
||
:tag('th') |
:tag('th') |
||
Line 173: | Line 167: | ||
:tag('td') |
:tag('td') |
||
:addClass('table-na') |
:addClass('table-na') |
||
:attr{ colspan = ' |
:attr{ colspan = '3' } |
||
:wikitext('N/A') |
:wikitext('N/A') |
||
:done() |
:done() |
||
:ELSE() |
:ELSE() |
||
:IF(item.usesExplosives) |
|||
:node(plist.two_column_image_text(item.material,'File:' .. item.material .. '.png',item.material,item.material)) |
|||
:ELSE() |
|||
:tag('td') |
|||
:addClass('table-na') |
|||
:attr{ colspan = '2' } |
|||
:wikitext('N/A') |
|||
:done() |
|||
:END() |
|||
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product,item.product)) |
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product,item.product)) |
||