2,869
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local yesno = require('Module:Yesno') | |||
local Num = require('Module:Number') | local Num = require('Module:Number') | ||
local Constants = require('Module:Constants') | local Constants = require('Module:Constants') | ||
Line 147: | Line 148: | ||
function p._getCourseList(args) | function p._getCourseList(args) | ||
-- Parse optional parameters | -- Parse optional parameters | ||
local includeItems = args['includeitems'] | local includeItems = yesno(args['includeitems'], true) | ||
local includeSkills = args['includeskills'] | local includeSkills = yesno(args['includeskills'], true) | ||
local includeObstacles = args['includeObstacles'] | local includeObstacles = yesno(args['includeObstacles'], true) | ||
local costReduction = { | local costReduction = { | ||
Line 294: | Line 295: | ||
--== Parse optional parameters==-- | --== Parse optional parameters==-- | ||
local showTotals = args['showtotals'] | local showTotals = yesno(args['showtotals'], true) | ||
local obstacleMastery = args['obstacleMastery'] | local obstacleMastery = yesno(args['obstacleMastery'], false) | ||
local costReduction = { | local costReduction = { |
edits