2,875
edits
m (Fix icons?) |
No edit summary |
||
Line 128: | Line 128: | ||
local pInputs = parseItemInOut(args, 'input') | local pInputs = parseItemInOut(args, 'input') | ||
local pOutputs = parseItemInOut(args, 'output') | local pOutputs = parseItemInOut(args, 'output') | ||
local dlcIcons = p.getDLCIcons(dlc) | local dlcIcons = p.getDLCIcons(args['dlc']) | ||
local tbl = mw.html.create() | local tbl = mw.html.create() | ||
Line 196: | Line 195: | ||
if type(dlcParam) ~= 'string' then return {} end | if type(dlcParam) ~= 'string' then return {} end | ||
local input = shared.splitString(dlcParam, ',', true) | |||
local dlcs = {} | local dlcs = {} | ||
for _, arg in pairs( | for _, arg in pairs(input) do | ||
local argLower = arg:lower() | |||
table.insert(dlcs, DLCParams[argLower]) | |||
end | end | ||
Line 240: | Line 237: | ||
output1amount = "1050", | output1amount = "1050", | ||
category = "", | category = "", | ||
dlc = "", | dlc = "aod, toth", | ||
intensity = "", | intensity = "", | ||
explanation = "" | explanation = "" | ||
} | } | ||
mw.log(p._main(args)) | |||
end | end | ||
return p | return p |
edits