Ajuda:Página de testes/1
Aspeto
Estimativa das reversões por grupo de editores
Reversores
Editor | Total |
---|---|
!Silent | 841 |
Acscosta | 44 |
Agiesbrecht | 151 |
Akamaruvp | 158 |
AlexSP | 22 |
Alvaro Azevedo Moura | 676 |
Amats | 67 |
André Koehne | 31 |
Angrense | 115 |
Beria | 305 |
Bisbis | 3 |
Bruno Meireles | 0 |
Burmeister | 0 |
Carlos28 | 154 |
Chicocvenancio | 0 |
ChristianH | 998 |
Cidcn | 123 |
Clarice Reis | 3 |
Coelhoscoelho | 261 |
Coltsfan | 90 |
Crash Overclock | 35 |
DARIO SEVERI | 0 |
Darwinius | 2602 |
Defender | 0 |
Denis Rizzoli | 15 |
Dreispt | 125 |
Eduardofeld | 0 |
Euproprio | 5 |
Eversonrachadel | 50 |
Felipegaspars | 0 |
Fernandobrasilien | 0 |
Fulviusbsas | 28 |
Gabriel Yuji | 0 |
Gabryelsl | 0 |
Georgez | 10 |
Gerbilo | 4 |
Giro720 | 64 |
GoEThe | 300 |
GuilhermeYoung | 0 |
Gunnex | 197 |
Hallel | 16 |
Hyju | 3 |
Jcaraballo | 0 |
Jeferson | 45 |
Johnmartins | 0 |
Jonas kam | 162 |
João Carvalho | 298 |
João Sousa | 137 |
Kascyo | 0 |
Kim richard | 0 |
Kleiner | 20 |
L'Éclipse | 147 |
LP Sérgio LP | 401 |
Leandro Drudo | 490 |
Leandromartinez | 894 |
Leosls | 6 |
Lisa116 | 0 |
Lord Mota | 5 |
Lordelliott | 18 |
Luan | 63 |
LuanSP | 16 |
Lucas RdS | 5 |
Lucas Secret | 69 |
LuizM | 0 |
Luiza Teles | 91 |
Maañón | 24 |
Magioladitis | 0 |
Maisonneuve | 2 |
Manuel Anastácio | 590 |
Maria Madalena | 0 |
Mathonius | 0 |
Mecanismo | 7 |
MetalBrasil | 194 |
MisterSanderson | 287 |
Mobyduck | 2 |
Mwaldeck | 296 |
Nanny321 | 5 |
Nistelrooy | 38 |
OffsBlink | 129 |
Paulo Eduardo ZZFE121 | 0 |
PedR | 77 |
Pedrassani | 85 |
Polyethylen | 0 |
Py4nf | 80 |
Rafael Wiki | 10 |
Reporter | 173 |
Richard Melo da Silva | 43 |
Robertogilnei | 73 |
Rossi pena | 1 |
Salamat | 580 |
SallesNeto BR | 0 |
Scheridon | 28 |
Slade | 0 |
Spoladore | 93 |
Stego | 0 |
Stegop | 285 |
SuperBraulio13 | 0 |
Sway 2 | 8 |
Tegel | 2 |
ThrasherÜbermensch | 0 |
Tschis | 0 |
Vanthorn | 1000 |
Vini 175 | 66 |
Vinicius Lima | 158 |
Viniciusmc | 488 |
Vitor Mazuco | 1643 |
Vitorvicentevalente | 260 |
Waldir | 0 |
WikiFer | 117 |
WikiGT | 46 |
WikiInformante | 1 |
Wjalves | 15 |
ZackTheJack | 3 |
Zorglub | 92 |
Editor | Total |
---|---|
!Silent | 970 |
Acscosta | 19 |
Agiesbrecht | 134 |
Akamaruvp | 4 |
AlexSP | 22 |
Alvaro Azevedo Moura | 399 |
Amats | 115 |
André Koehne | 180 |
Angrense | 159 |
Beria | 47 |
Bisbis | 0 |
Bruno Meireles | 19 |
Burmeister | 10 |
Carlos28 | 317 |
Chicocvenancio | 0 |
ChristianH | 441 |
Cidcn | 20 |
Clarice Reis | 0 |
Coelhoscoelho | 270 |
Coltsfan | 90 |
Crash Overclock | 121 |
DARIO SEVERI | 0 |
Darwinius | 65 |
Defender | 189 |
Denis Rizzoli | 66 |
Dreispt | 232 |
Eduardofeld | 0 |
Euproprio | 68 |
Eversonrachadel | 116 |
Felipegaspars | 27 |
Fernandobrasilien | 0 |
Fulviusbsas | 85 |
Gabriel Yuji | 0 |
Gabryelsl | 0 |
Georgez | 21 |
Gerbilo | 0 |
Giro720 | 120 |
GoEThe | 164 |
GuilhermeYoung | 0 |
Gunnex | 625 |
Hallel | 74 |
Hyju | 14 |
Jcaraballo | 140 |
Jeferson | 0 |
Johnmartins | 0 |
Jonas kam | 414 |
João Carvalho | 176 |
João Sousa | 154 |
Kascyo | 0 |
Kim richard | 0 |
Kleiner | 11 |
L'Éclipse | 87 |
LP Sérgio LP | 237 |
Leandro Drudo | 768 |
Leandromartinez | 1093 |
Leosls | 11 |
Lisa116 | 0 |
Lord Mota | 5 |
Lordelliott | 11 |
Luan | 4 |
LuanSP | 22 |
Lucas RdS | 22 |
Lucas Secret | 56 |
LuizM | 36 |
Luiza Teles | 154 |
Maañón | 28 |
Magioladitis | 0 |
Maisonneuve | 2 |
Manuel Anastácio | 684 |
Maria Madalena | 0 |
Mathonius | 65 |
Mecanismo | 10 |
MetalBrasil | 19 |
MisterSanderson | 545 |
Mobyduck | 0 |
Mwaldeck | 339 |
Nanny321 | 7 |
Nistelrooy | 384 |
OffsBlink | 70 |
Paulo Eduardo ZZFE121 | 0 |
PedR | 320 |
Pedrassani | 81 |
Polyethylen | 45 |
Py4nf | 152 |
Rafael Wiki | 16 |
Reporter | 202 |
Richard Melo da Silva | 82 |
Robertogilnei | 0 |
Rossi pena | 2 |
Salamat | 1006 |
SallesNeto BR | 0 |
Scheridon | 31 |
Slade | 3 |
Spoladore | 29 |
Stego | 0 |
Stegop | 302 |
SuperBraulio13 | 0 |
Sway 2 | 70 |
Tegel | 2 |
ThrasherÜbermensch | 0 |
Tschis | 0 |
Vanthorn | 293 |
Vini 175 | 5 |
Vinicius Lima | 21 |
Viniciusmc | 1024 |
Vitor Mazuco | 1584 |
Vitorvicentevalente | 136 |
Waldir | 1 |
WikiFer | 46 |
WikiGT | 79 |
WikiInformante | 1 |
Wjalves | 71 |
ZackTheJack | 2 |
Zorglub | 42 |
Editor | Total |
---|---|
!Silent | 125 |
Acscosta | 26 |
Agiesbrecht | 54 |
Akamaruvp | 1 |
AlexSP | 0 |
Alvaro Azevedo Moura | 20 |
Amats | 35 |
André Koehne | 115 |
Angrense | 112 |
Beria | 36 |
Bisbis | 1 |
Bruno Meireles | 1004 |
Burmeister | 58 |
Carlos28 | 328 |
Chicocvenancio | 1469 |
ChristianH | 5 |
Cidcn | 172 |
Clarice Reis | 4 |
Coelhoscoelho | 0 |
Coltsfan | 417 |
Crash Overclock | 249 |
DARIO SEVERI | 1 |
Darwinius | 0 |
Defender | 0 |
Denis Rizzoli | 52 |
Dreispt | 46 |
Eduardofeld | 778 |
Euproprio | 52 |
Eversonrachadel | 43 |
Felipegaspars | 289 |
Fernandobrasilien | 12 |
Fulviusbsas | 141 |
Gabriel Yuji | 31 |
Gabryelsl | 5 |
Georgez | 65 |
Gerbilo | 0 |
Giro720 | 122 |
GoEThe | 2 |
GuilhermeYoung | 0 |
Gunnex | 336 |
Hallel | 353 |
Hyju | 0 |
Jcaraballo | 3 |
Jeferson | 6 |
Johnmartins | 174 |
Jonas kam | 251 |
João Carvalho | 111 |
João Sousa | 19 |
Kascyo | 494 |
Kim richard | 0 |
Kleiner | 3 |
L'Éclipse | 136 |
LP Sérgio LP | 151 |
Leandro Drudo | 701 |
Leandromartinez | 115 |
Leosls | 243 |
Lisa116 | 115 |
Lord Mota | 80 |
Lordelliott | 141 |
Luan | 12 |
LuanSP | 3 |
Lucas RdS | 100 |
Lucas Secret | 104 |
LuizM | 7 |
Luiza Teles | 50 |
Maañón | 63 |
Magioladitis | 0 |
Maisonneuve | 15 |
Manuel Anastácio | 746 |
Maria Madalena | 18 |
Mathonius | 44 |
Mecanismo | 19 |
MetalBrasil | 2 |
MisterSanderson | 667 |
Mobyduck | 0 |
Mwaldeck | 354 |
Nanny321 | 2 |
Nistelrooy | 125 |
OffsBlink | 27 |
Paulo Eduardo ZZFE121 | 0 |
PedR | 43 |
Pedrassani | 60 |
Polyethylen | 496 |
Py4nf | 294 |
Rafael Wiki | 309 |
Reporter | 312 |
Richard Melo da Silva | 68 |
Robertogilnei | 1 |
Rossi pena | 60 |
Salamat | 0 |
SallesNeto BR | 172 |
Scheridon | 39 |
Slade | 1 |
Spoladore | 0 |
Stego | 191 |
Stegop | 258 |
SuperBraulio13 | 679 |
Sway 2 | 34 |
Tegel | 2 |
ThrasherÜbermensch | 0 |
Tschis | 95 |
Vanthorn | 352 |
Vini 175 | 149 |
Vinicius Lima | 2 |
Viniciusmc | 2704 |
Vitor Mazuco | 2460 |
Vitorvicentevalente | 178 |
Waldir | 0 |
WikiFer | 13 |
WikiGT | 83 |
WikiInformante | 0 |
Wjalves | 1150 |
ZackTheJack | 92 |
Zorglub | 77 |
Editor | Total |
---|---|
!Silent | 920 |
Acscosta | 11 |
Agiesbrecht | 86 |
Akamaruvp | 0 |
AlexSP | 0 |
Alvaro Azevedo Moura | 19 |
Amats | 4 |
André Koehne | 37 |
Angrense | 143 |
Beria | 1 |
Bisbis | 0 |
Bruno Meireles | 1803 |
Burmeister | 179 |
Carlos28 | 78 |
Chicocvenancio | 388 |
ChristianH | 0 |
Cidcn | 162 |
Clarice Reis | 54 |
Coelhoscoelho | 31 |
Coltsfan | 407 |
Crash Overclock | 218 |
DARIO SEVERI | 496 |
Darwinius | 1 |
Defender | 377 |
Denis Rizzoli | 26 |
Dreispt | 20 |
Eduardofeld | 248 |
Euproprio | 16 |
Eversonrachadel | 36 |
Felipegaspars | 12 |
Fernandobrasilien | 116 |
Fulviusbsas | 39 |
Gabriel Yuji | 830 |
Gabryelsl | 45 |
Georgez | 57 |
Gerbilo | 0 |
Giro720 | 20 |
GoEThe | 69 |
GuilhermeYoung | 8 |
Gunnex | 133 |
Hallel | 1027 |
Hyju | 8 |
Jcaraballo | 29 |
Jeferson | 15 |
Johnmartins | 75 |
Jonas kam | 294 |
João Carvalho | 74 |
João Sousa | 8 |
Kascyo | 650 |
Kim richard | 59 |
Kleiner | 6 |
L'Éclipse | 261 |
LP Sérgio LP | 27 |
Leandro Drudo | 514 |
Leandromartinez | 4 |
Leosls | 305 |
Lisa116 | 42 |
Lord Mota | 134 |
Lordelliott | 61 |
Luan | 22 |
LuanSP | 0 |
Lucas RdS | 30 |
Lucas Secret | 71 |
LuizM | 1 |
Luiza Teles | 17 |
Maañón | 155 |
Magioladitis | 0 |
Maisonneuve | 6 |
Manuel Anastácio | 72 |
Maria Madalena | 111 |
Mathonius | 145 |
Mecanismo | 30 |
MetalBrasil | 0 |
MisterSanderson | 118 |
Mobyduck | 21 |
Mwaldeck | 212 |
Nanny321 | 0 |
Nistelrooy | 56 |
OffsBlink | 73 |
Paulo Eduardo ZZFE121 | 426 |
PedR | 32 |
Pedrassani | 82 |
Polyethylen | 920 |
Py4nf | 276 |
Rafael Wiki | 166 |
Reporter | 269 |
Richard Melo da Silva | 110 |
Robertogilnei | 3 |
Rossi pena | 67 |
Salamat | 0 |
SallesNeto BR | 40 |
Scheridon | 18 |
Slade | 0 |
Spoladore | 0 |
Stego | 258 |
Stegop | 201 |
SuperBraulio13 | 386 |
Sway 2 | 22 |
Tegel | 2 |
ThrasherÜbermensch | 491 |
Tschis | 14 |
Vanthorn | 179 |
Vini 175 | 18 |
Vinicius Lima | 0 |
Viniciusmc | 1339 |
Vitor Mazuco | 3417 |
Vitorvicentevalente | 51 |
Waldir | 0 |
WikiFer | 6 |
WikiGT | 809 |
WikiInformante | 4 |
Wjalves | 997 |
ZackTheJack | 14 |
Zorglub | 56 |
Administradores
Editor | Total |
---|---|
Alchimista | 495 |
Alexanderps | 12 |
Alexg | 6 |
Belanidia | 728 |
Biologo32 | 14 |
Braswiki | 70 |
Castelobranco | 7 |
Daimore | 134 |
Dédi's | 193 |
Eamaral | 209 |
Eric Duff | 105 |
EuTuga | 107 |
FSogumo | 143 |
Fabiano Tatsch | 157 |
Francisco Leandro | 1078 |
Gean | 916 |
HVL | 1028 |
Heiligenfeld | 505 |
Hermógenes Teixeira Pinto Filho | 8 |
Jbribeiro1 | 785 |
Jo Lorib | 412 |
Lechatjaune | 126 |
Luckas Blade | 3 |
Marcos Elias de Oliveira Júnior | 2088 |
MelM | 508 |
Mário Henrique | 1916 |
Nelson Teixeira | 0 |
Opraco | 32 |
Rjclaudio | 29 |
Ruy Pugliesi | 963 |
Sturm | 47 |
Teles | 445 |
ThiagoRuiz | 102 |
Tiago Abreu | 0 |
Willy Weazley | 171 |
Yanguas | 2328 |
Érico Júnior Wouters | 13 |
Editor | Total |
---|---|
Alchimista | 547 |
Alexanderps | 64 |
Alexg | 2 |
Belanidia | 716 |
Biologo32 | 15 |
Braswiki | 101 |
Castelobranco | 4 |
Daimore | 21 |
Dédi's | 474 |
Eamaral | 955 |
Eric Duff | 152 |
EuTuga | 93 |
FSogumo | 89 |
Fabiano Tatsch | 58 |
Francisco Leandro | 796 |
Gean | 1313 |
HVL | 1445 |
Heiligenfeld | 708 |
Hermógenes Teixeira Pinto Filho | 12 |
Jbribeiro1 | 999 |
Jo Lorib | 545 |
Lechatjaune | 101 |
Luckas Blade | 4 |
Marcos Elias de Oliveira Júnior | 1986 |
MelM | 907 |
Mário Henrique | 175 |
Nelson Teixeira | 3 |
Opraco | 11 |
Rjclaudio | 82 |
Ruy Pugliesi | 761 |
Sturm | 39 |
Teles | 722 |
ThiagoRuiz | 171 |
Tiago Abreu | 0 |
Willy Weazley | 230 |
Yanguas | 2827 |
Érico Júnior Wouters | 35 |
Editor | Total |
---|---|
Alchimista | 48 |
Alexanderps | 33 |
Alexg | 3 |
Belanidia | 318 |
Biologo32 | 89 |
Braswiki | 61 |
Castelobranco | 9 |
Daimore | 161 |
Dédi's | 80 |
Eamaral | 176 |
Eric Duff | 142 |
EuTuga | 152 |
FSogumo | 253 |
Fabiano Tatsch | 4 |
Francisco Leandro | 394 |
Gean | 1199 |
HVL | 1442 |
Heiligenfeld | 692 |
Hermógenes Teixeira Pinto Filho | 10 |
Jbribeiro1 | 506 |
Jo Lorib | 115 |
Lechatjaune | 3 |
Luckas Blade | 524 |
Marcos Elias de Oliveira Júnior | 821 |
MelM | 386 |
Mário Henrique | 310 |
Nelson Teixeira | 518 |
Opraco | 4 |
Rjclaudio | 32 |
Ruy Pugliesi | 175 |
Sturm | 16 |
Teles | 527 |
ThiagoRuiz | 0 |
Tiago Abreu | 439 |
Willy Weazley | 182 |
Yanguas | 3540 |
Érico Júnior Wouters | 1575 |
Editor | Total |
---|---|
Alchimista | 152 |
Alexanderps | 28 |
Alexg | 0 |
Belanidia | 592 |
Biologo32 | 850 |
Braswiki | 59 |
Castelobranco | 0 |
Daimore | 9 |
Dédi's | 38 |
Eamaral | 49 |
Eric Duff | 77 |
EuTuga | 244 |
FSogumo | 244 |
Fabiano Tatsch | 13 |
Francisco Leandro | 386 |
Gean | 822 |
HVL | 1853 |
Heiligenfeld | 585 |
Hermógenes Teixeira Pinto Filho | 39 |
Jbribeiro1 | 567 |
Jo Lorib | 111 |
Lechatjaune | 8 |
Luckas Blade | 605 |
Marcos Elias de Oliveira Júnior | 438 |
MelM | 329 |
Mário Henrique | 133 |
Nelson Teixeira | 810 |
Opraco | 2 |
Rjclaudio | 26 |
Ruy Pugliesi | 93 |
Sturm | 29 |
Teles | 640 |
ThiagoRuiz | 0 |
Tiago Abreu | 533 |
Willy Weazley | 63 |
Yanguas | 3283 |
Érico Júnior Wouters | 530 |
Script
/*jslint browser: true, white: true, plusplus: true*/
/*global jQuery, mediaWiki, jsMsg */
( function ( mw, $, jsMsg ) {
'use strict';
$.extend( mw.Api.prototype, {
/**
* Get list of users in the given group
*/
getUsersInGroup: function( group ){
var apiDeferred = $.Deferred();
this.get( {
list: 'allusers',
augroup: group,
aulimit: 5000
} )
.done( function ( data ) {
apiDeferred.resolve(
$.map(data.query.allusers, function(user){
return user.name;
})
);
} )
.fail( apiDeferred.reject );
return apiDeferred.promise();
},
/**
* Get number of reverts made by a user in a given period of time
*/
getTotalRevertsByUser: function( userName, from, to ){
var apiDeferred = $.Deferred(),
mwAPI = this,
params = {
list: 'usercontribs',
ucstart: from,
ucend: to,
ucuser: userName,
ucdir: 'newer',
ucprop: 'comment',
uclimit: 5000
},
total = 0,
doRequest = function( ucstart ){
if( ucstart ){
params.ucstart = ucstart;
}
mwAPI.get( params )
.done( function ( data ) {
var i, l,
list = data.query.usercontribs;
// debugger;
for(var i=0, l = list.length; i < l; i++ ){
if( /Rever(?:tendo|tidas|são)|Desf(?:eita|iz)/g.test( list[i].comment ) ){
total += 1;
}
}
if( data['query-continue']){
doRequest( data['query-continue'].usercontribs.ucstart );
} else {
apiDeferred.resolve( total );
}
} )
.fail( apiDeferred.reject );
};
doRequest();
return apiDeferred.promise();
}
});
var api = new mw.Api(),
getRevertStats = function( userList, from, to ){
var statsDeferred = $.Deferred(),
index = 0,
table = [],
wikitable = '{| class="wikitable sortable" style="float:left;"\n|+ De ' +
from + ' a ' + to + '\n|-\n! Editor || Total\n',
addUserRevertsToTable = function( userName ){
jsMsg('Estimando o número de reversões feitas entre ' + from + ' e ' + to + ' por ' + userName + '...');
api.getTotalRevertsByUser( userName, from, to )
.done( function( total ){
var i;
table[index] = [ userName, total ];
index++;
if ( index < userList.length ){
addUserRevertsToTable( userList[ index ] );
} else {
for( i = 0; i < table.length; i++ ){
wikitable += '|-\n| ' + table[i][0] + ' || ' + table[i][1] + '\n';
}
wikitable += '|}\n';
statsDeferred.resolve( wikitable );
}
} )
.fail( statsDeferred.reject );
};
addUserRevertsToTable( userList[ index ] );
return statsDeferred.promise();
},
getStatsForListOfUsers = function( list ){
var listDeferred = $.Deferred(),
stats = '',
periodId = 0,
periods = [
{
from: '2011-01-12T00:00:00Z',
to: '2011-04-11T23:59:59Z'
},{
from: '2011-04-12T00:00:00Z',
to: '2011-07-11T23:59:59Z'
},{
from: '2012-01-12T00:00:00Z',
to: '2012-04-11T23:59:59Z'
},{
from: '2012-04-12T00:00:00Z',
to: '2012-07-11T23:59:59Z'
}
],
addStatsForPeriod = function( period ){
getRevertStats( list, period.from, period.to )
.done(function( wikitable ){
stats += '\n' + wikitable;
periodId++;
if( periodId < periods.length){
addStatsForPeriod( periods[periodId] );
} else{
listDeferred.resolve( stats );
}
})
.fail( listDeferred.reject );
};
addStatsForPeriod( periods[periodId] );
return listDeferred.promise();
};
api.getUsersInGroup('rollbacker')
.done(function( rollbackers ){
getStatsForListOfUsers( rollbackers )
.done(function( rollbackerStats ){
api.getUsersInGroup('sysop')
.done(function( sysops ){
getStatsForListOfUsers( sysops )
.done(function( sysopStats ){
jsMsg(
'<pre>== Estimativa das reversões por grupo de editores ==\n=== Reversores ===\n' +
rollbackerStats +
'\n{{clear}}\n=== Administradores ===\n' +
sysopStats + '</pre>'
);
});
});
});
});
}( mediaWiki, jQuery, jsMsg ) );