Editing Module:PotionList
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 37: | Line 37: | ||
local function currency_cell(amount) |
local function currency_cell(amount) |
||
if not amount then |
if not amount then |
||
return mw.html.create('td') |
return tostring(mw.html.create('td') |
||
:addClass('table-bg-gray') |
:addClass('table-bg-gray') |
||
:css{ ['text-align'] = 'center' } |
:css{ ['text-align'] = 'center' } |
||
:attr{ colspan = '10' } |
:attr{ colspan = '10' } |
||
:wikitext("''unknown''") |
:wikitext("''unknown''") |
||
:done() |
:done()) |
||
end |
end |
||
return currency._cell(amount, { html = 'yes' }) |
return currency._cell(amount, { html = 'yes' }) |
||
Line 165: | Line 165: | ||
row |
row |
||
: |
:wikitext(currency_cell(item.buy)) |
||
: |
:wikitext(currency_cell(item.sell)) |
||
: |
:wikitext(currency_cell(item.profit)) |
||
: |
:wikitext(currency_cell(item.profitPerHour)) |
||
:IF(item.XP) |
:IF(item.XP) |
||
Line 186: | Line 186: | ||
:END() |
:END() |
||
: |
:wikitext(currency_cell(item.profitPerXP)) |
||
:done() |
:done() |