Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
(parse a missing duration variable for a venture into an edit button)
Line 557: Line 557:
function parse.duration_func(hours)
function parse.duration_func(hours)
hours = string.gsub(hours or '',',','')
hours = string.gsub(hours or '',',','')
return (tonumber(hours) .. " Hours")
hours = tonumber(hours) or edit
return (hours .. " Hours")
end
end