Content deleted Content added
oops... |
sync |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 25:
local formated_count
local count = args[1] or '1'
if count:match('^[%d,]*$') then
Line 30 ⟶ 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 < 1000 then id_fc = '#000000'; id_c = '#dddddd'; info_fc = '#000000'; info_c = '#eeeeee'
Line 111 ⟶ 113:
local user = 'user'
local username = args[2] or mw.title.getCurrentTitle().baseText
▲ local url = ''
▲ url = 'https://xtools.wmflabs.org/ec/'.. project_site .. '?username=' ..urlencode(username)
local deleted
if args['deleted'] then deleted = ', over <b>' ..formatNumber(args['deleted'])..'</b> of which were to pages that are now deleted' end
if args['articles'] then articles = ', over <b>' ..formatNumber(args['articles'])..'</b> of which were to articles' end
if args['automated'] then automated = ', over <b>' ..formatNumber(args['automated'])..'</b> of which were automated' end
Line 142 ⟶ 136:
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
.. articles
.. distinct
Line 159 ⟶ 152:
..'"> more than '
.. '<b>'..formated_count..'</b>'
.. '
.. automated
.. deleted
.. articles
.. distinct
|