Content deleted Content added
m remove that as well |
test count=1 edge case |
||
Line 25:
local formated_count
local count = args[1] or '1'
local plural = 's'
if count:match('^[%d,]*$') then
Line 31 ⟶ 32:
formated_count = mw.getContentLanguage():formatNum( count )
-- 0-9,999 is shades of green
elseif 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'
Line 141 ⟶ 143:
url = 'https://en.wikipedia.org/w/index.php?title=Special:Log&user='..urlencode(username)
user_args['info'] = '<span class="plainlinks neverexpand">This user has logged ['..url..' more than '.. '<b>'..formated_count..'</b>'..
'
.. automated
.. deleted
Line 157 ⟶ 159:
..'"> more than '
.. '<b>'..formated_count..'</b>'
.. '
.. automated
.. deleted
|