Module:Sandbox/User:Alsang/PotionList: Difference between revisions
remove vestigial KP per hour calcs, add in thousands separator commas
(implement "unkown" table format) |
(remove vestigial KP per hour calcs, add in thousands separator commas) |
||
Line 2:
local param = require( 'Module:Paramtest' )
local currency = require('Module:Currency')
local lang = mw.getContentLanguage()
require("Module:Mw.html extension")
Line 105 ⟶ 107:
item.hasDuration = param.has_content(item.brewDuration) and param.has_content(item.prepDuration)
end
Line 178 ⟶ 153:
:wikitext('Coins/XP')
:done()
:done()
Line 229 ⟶ 198:
:IF(item.hasSell)
:wikitext(currency_cell(item.sell))
:ELSE()
Line 268 ⟶ 232:
:tag('td')
:IF(item.hasXP)
:wikitext(lang:formatNum(tonumber(item.XP)))
:ELSE()
:addClass('table-bg-grey')
Line 278 ⟶ 242:
:tag('td')
:IF(item.hasXP and item.hasDuration)
:wikitext(lang:formatNum(tonumber(item.XPPerHour)))
:ELSE()
:addClass('table-bg-grey')
|