Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Add func to parse duration for ventures)
(Append hours to duration param)
 
Line 416: Line 416:
category_incomplete = 'Needs passiveness'
category_incomplete = 'Needs passiveness'
}
}

function parse.duration_func(hours)
hours = string.gsub(hours or '',',','')
return (tonumber(hours) .. " Hours")
end


parse.duration = {
parse.duration = {
name = 'duration',
name = 'duration',
func = parse.number,
func = parse.duration_func,
smw_property = 'Duration',
smw_property = 'Duration',
category_incomplete = 'Needs duration',
category_incomplete = 'Needs duration',