Module:MoneyMakingGuide: Difference between revisions

no edit summary
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(shared.splitString(dlcArgs, ',')) do
for _, arg in pairs(input) do
for dlc, icon in pairs(DLCParams) do
local argLower = arg:lower()
if shared.compareString(dlc, arg, true) then
table.insert(dlcs, DLCParams[argLower])
table.insert(dlcs, icon)
end
end
end
end


Line 240: Line 237:
output1amount = "1050",
output1amount = "1050",
category = "",
category = "",
dlc = "",
dlc = "aod, toth",
intensity = "",
intensity = "",
explanation = ""
explanation = ""
}
}
local result = parseItemInOut(args, 'input')
mw.log(p._main(args))
for k, v in pairs(result) do
for a ,b in pairs(v) do
mw.log(a .. '  =  '.. tostring(b))
end
end
end
end


return p
return p
2,875

edits