2,875
edits
No edit summary |
No edit summary |
||
Line 144: | Line 144: | ||
local courseRequirements = p.calculateCourse(obstacleNames, true) | local courseRequirements = p.calculateCourse(obstacleNames, true) | ||
-------- TEMP -------- | |||
local html = mw.html.create() | |||
local div = html:tag('div') | |||
div:tag('h2'):wikitext('Items Required') | |||
local ul = div:tag('ul') | |||
for k, v in pairs(courseRequirements.courseItemCosts) do | |||
ul:tag('li'):wikitext(k .. ': ' .. v) | |||
end | |||
div:tag('h2'):wikitext('Skills Required') | |||
local ul2 = div:tag('ul') | |||
for k, v in pairs(courseRequirements.courseLevelRequirements) do | |||
ul:tag('li'):wikitext(k .. ': ' .. v) | |||
end | |||
return tostring(html) | |||
end | end | ||
function p.test() | function p.test() | ||
mw.log( p._main({ | mw.log( p._main({ | ||
'Cargo Net','Balance Beam','Pipe Climb' | ' Cargo Net ',' Balance Beam','Pipe Climb' | ||
})) | })) | ||
end | end | ||
return p | return p |
edits