User:Ankita.ank10/editcount.js

//console.log(wgTitle); mw.loader.using('mediawiki.api',function{ var api=new mw.Api; ///w/api.php?action=query&list=users&format=json&usprop=editcount&ususers=Ankita.ank10 api.get( { action : 'query', list : 'users', format : 'json', usprop : 'editcount', ususers : 'Ankita.ank10' }).done(function(data){ console.log(data); console.log(data.query.users[0].name); console.log(data.query.users[0].editcount); }); });