Module:Param Parse: Difference between revisions
Append hours to duration param
(Clean up a bit, shouldn't cause any changes to any pages) |
(Append hours to duration param) |
||
(One intermediate revision by the same user not shown) | |||
Line 415:
smw_func = parse.yes_no_smw,
category_incomplete = 'Needs passiveness'
}
function parse.duration_func(hours)
hours = string.gsub(hours or '',',','')
return (tonumber(hours) .. " Hours")
end
parse.duration = {
name = 'duration',
func = parse.duration_func,
smw_property = 'Duration',
category_incomplete = 'Needs duration',
}
|