Module:Param Parse: Difference between revisions

Quick and Dirty 2: Quicker and Dirtier
No edit summary
(Quick and Dirty 2: Quicker and Dirtier)
Line 318:
 
function parse.difficulty_func(val)
if val == "0" then
return "☆☆☆☆☆"
end
if val == "1" then
return "★☆☆☆☆"
end
if val == "2" then
return "★★☆☆☆"
end
if val == "3" then
return "★★★☆☆"
end
if val == "4" then
return "★★★★☆"
end
if val == "5" then
return "★★★★★"
end
Line 344:
func = parse.difficulty_func,
smw_property = 'Difficulty',
smw_func = parse.number,
category_incomplete = 'Needs difficulty'
}