Module:AlchemistList: Difference between revisions

m
currency_cell now returns a node
m (Remove unused vars)
m (currency_cell now returns a node)
Line 37:
local function currency_cell(amount)
if not amount then
return tostring(mw.html.create('td')
:addClass('table-bg-gray')
:css{ ['text-align'] = 'center' }
:attr{ colspan = '10' }
:wikitext("''unknown''")
:done())
end
return currency._cell(amount, { html = 'yes' })
Line 165:
 
row
:wikitextnode(currency_cell(item.buy))
:wikitextnode(currency_cell(item.sell))
:wikitextnode(currency_cell(item.profit))
:wikitextnode(currency_cell(item.profitPerHour))
 
:IF(item.XP)
Line 186:
:END()
 
:wikitextnode(currency_cell(item.profitPerXP))
 
:done()
622

edits