Module:Calculator/AgilityObstacle: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 124: Line 124:
return {
return {
courseLevelRequirements,
CourseLevelRequirements = courseLevelRequirements,
courseItemCosts
CourseItemCosts = courseItemCosts
}
}
end
end
Line 149: Line 149:
     local div = html:tag('div')
     local div = html:tag('div')
     div:tag('h2'):wikitext('Items Required')
     div:tag('h2'):wikitext('Items Required')
 
   
     local ul = div:tag('ul')
     local ul = div:tag('ul')
     for k, v in pairs(courseRequirements.courseItemCosts) do
     for k, v in pairs(courseRequirements.CourseItemCosts) do
     ul:tag('li'):wikitext(k .. ': ' .. v)
     ul:tag('li'):wikitext(k .. ': ' .. v)
     end
     end
Line 158: Line 158:
     local ul2 = div:tag('ul')
     local ul2 = div:tag('ul')
     for k, v in pairs(courseRequirements.courseLevelRequirements) do
     for k, v in pairs(courseRequirements.CourseLevelRequirements) do
     ul:tag('li'):wikitext(k .. ': ' .. v)
     ul:tag('li'):wikitext(k .. ': ' .. v)
     end
     end
2,875

edits