Module:Param Parse: Difference between revisions

260 bytes added ,  Yesterday at 20:35
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',
}
 
592

edits