Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
InvalidCards (talk | contribs) No edit summary |
InvalidCards (talk | contribs) (Quick and Dirty 2: Quicker and Dirtier) |
||
Line 318: | Line 318: | ||
function parse.difficulty_func(val) |
function parse.difficulty_func(val) |
||
if val == 0 then |
if val == "0" then |
||
return "☆☆☆☆☆" |
return "☆☆☆☆☆" |
||
end |
end |
||
if val == 1 then |
if val == "1" then |
||
return "★☆☆☆☆" |
return "★☆☆☆☆" |
||
end |
end |
||
if val == 2 then |
if val == "2" then |
||
return "★★☆☆☆" |
return "★★☆☆☆" |
||
end |
end |
||
if val == 3 then |
if val == "3" then |
||
return "★★★☆☆" |
return "★★★☆☆" |
||
end |
end |
||
if val == 4 then |
if val == "4" then |
||
return "★★★★☆" |
return "★★★★☆" |
||
end |
end |
||
if val == 5 then |
if val == "5" then |
||
return "★★★★★" |
return "★★★★★" |
||
end |
end |
||
Line 344: | Line 344: | ||
func = parse.difficulty_func, |
func = parse.difficulty_func, |
||
smw_property = 'Difficulty', |
smw_property = 'Difficulty', |
||
smw_func = parse.number, |
|||
category_incomplete = 'Needs difficulty' |
category_incomplete = 'Needs difficulty' |
||
} |
} |