Module:AlchemistPassiveList: Difference between revisions

currency_cell now returns a node
(Created page with "require('Module:Mw.html extension') local param = require( 'Module:Paramtest' ) local currency = require('Module:Currency') local lang = mw.getContentLanguage() require("Module:Mw.html extension") local p = {} -- non dynamic module, no inputs function p.main() -- returns almost every parameter needed for the row, except buy values for reagents local query = { 'Uses facility::Passive Potion Station OR Variant of::Ebsworth Work', '?Profession Level A = l...")
 
(currency_cell now returns a node)
Line 198:
:IF(item.hasBuy)
:wikitextnode(currency_cell(item.buy))
:ELSE()
:tag('td')
Line 213:
-- it works for other functions to display it directly
-- so here is the workaround I guess
:wikitextnode(currency_cell(item.buy+200*item.profit))
--:wikitextnode(currency_cell(item.sell))
:ELSE()
:tag('td')
Line 232:
:IF(item.hasProfit)
:wikitextnode(currency_cell(item.profit))
:ELSE()
:tag('td')
Line 243:
:IF(item.hasProfit and item.hasDuration)
:wikitextnode(currency_cell(item.profitPerHour))
:ELSE()
:tag('td')
Line 274:
:IF(item.hasXP and item.hasProfit)
:wikitextnode(currency_cell(item.profitPerXP))
:ELSE()
:tag('td')
624

edits