Module:User contrib/sandbox: Difference between revisions

Content deleted Content added
test count=1 edge case
No edit summary
Line 31:
count = tonumber(count)
formated_count = mw.getContentLanguage():formatNum( count )
if count == 1 then plural = '' end
-- 0-9,999 is shades of green
if count == 1 then plural = ''
-- 0-9,999 is shades of green
elseifif count < 1000 then id_fc = '#000000'; id_c = '#dddddd'; info_fc = '#000000'; info_c = '#eeeeee'
elseif count < 2000 then id_fc = '#FFFFFF'; id_c = '#347235'; info_fc = '#000000'; info_c = '#728C00'
elseif count < 3000 then id_fc = '#FFFFFF'; id_c = '#6AA121'; info_fc = '#000000'; info_c = '#52D017'