Anonymous

Module:MoneyMakingGuide: Difference between revisions

From Melvor Idle
no edit summary
mNo edit summary
No edit summary
Line 124: Line 124:


local function buildMMGTable(args)
local function buildMMGTable(args)
-- Parse arguments.
local pSkills = parseExp(args)
local pSkills = parseExp(args)
local pInputs = parseItemInOut(args, 'input')
local pInputs = parseItemInOut(args, 'input')
local pOutputs = parseItemInOut(args, 'output')
local pOutputs = parseItemInOut(args, 'output')
local dlcs = p.getDLCIcons(dlc)
local dlcIcons = p.getDLCIcons(dlc)
Line 138: Line 139:
         :tag("td")
         :tag("td")
             :attr("colspan", 2)
             :attr("colspan", 2)
             :wikitext('dlcIcon')
             for _, v in pairs(dlcs) do tbl:wikitext(v) end
             :wikitext(args['guideName'] or '{{{guideName}}}')
             tbl:wikitext(args['guideName'])
     :tag("tr")
     :tag("tr")
         :tag("th")
         :tag("th")
Line 213: Line 214:


function p._main(args)
function p._main(args)
if args['guideName'] == nil then
error("Money Making Guide must have a valid guideName parameter.")
end
return buildMMGTable(args)
return buildMMGTable(args)
end
end
2,875

edits