Module:FisherList: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(downtime calculations, display tool)
m (remove vestigal reference to "hideCells" which is not needed for fisher)
Line 144: Line 144:


-- resource
-- resource
:IF(item.hideCells)
:IF(item.coop)
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product .. ' (co-op)',item.product))
:ELSE()
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product,item.product))
:END()
-- resource/hr
:IF(item.productPerHour)
:tag('td')
:tag('td')
:wikitext(item.productPerHour and math.floor(tonumber(item.productPerHour)*10)/10)
:addClass('table-na')
:attr{ colspan = '23' }
:wikitext('N/A')
:done()
:done()
:ELSE()
:ELSE()
:IF(item.coop)
:node(plist.unknown_value_edit_cell(item.pageName,1))
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product .. ' (co-op)',item.product))
:ELSE()
:node(plist.two_column_image_text(item.product,'File:' .. item.product .. '.png',item.product,item.product))
:END()

-- resource/hr
:IF(item.productPerHour)
:tag('td')
:wikitext(item.productPerHour and math.floor(tonumber(item.productPerHour)*10)/10)
:done()
:ELSE()
:node(plist.unknown_value_edit_cell(item.pageName,1))
:END()
-- economics
:node(plist.currency_cell(item.profit))
:node(plist.currency_cell(item.profitPerHour))
:END()
:END()
-- economics
:node(plist.currency_cell(item.profit))
:node(plist.currency_cell(item.profitPerHour))


-- XP
-- XP
Line 191: Line 182:
-- XP per hour
-- XP per hour
:IF(item.hideCells)
:IF(item.xpPerHourDropping)
:tag('td')
:tag('td')
:wikitext(item.xpPerHourDropping and lang:formatNum(tonumber(item.xpPerHourDropping)))
:addClass('table-na')
:wikitext('N/A')
:done()
:done()
:ELSE()
:ELSE()
:IF(item.xpPerHourDropping)
:node(plist.unknown_value_cell(1))
:tag('td')
:wikitext(item.xpPerHourDropping and lang:formatNum(tonumber(item.xpPerHourDropping)))
:done()
:ELSE()
:node(plist.unknown_value_cell(1))
:END()
:END()
:END()