Saltar para o conteúdo

Ajuda:Página de testes/1

Origem: Wikipédia, a enciclopédia livre.

Edições por grupo de editores

Reversores

De 2011-01-12T00:00:00Z a 2011-04-11T23:59:59Z
Editor Total
!Silent 3967
Acscosta 192
Agiesbrecht 364
Akamaruvp 978
AlexSP 252
Alvaro Azevedo Moura 3139
Amats 278
André Koehne 372
Angrense 1039
Beria 810
Bisbis 150
Bruno Meireles 5
Burmeister 1
Carlos28 1200
Chicocvenancio 0
ChristianH 6668
Cidcn 613
Clarice Reis 971
Coelhoscoelho 2331
Coltsfan 1577
Crash Overclock 48
DARIO SEVERI 0
Darwinius 15924
Defender 0
Denis Rizzoli 171
Dreispt 1002
Eduardofeld 0
Euproprio 759
Eversonrachadel 768
Felipegaspars 38
Fernandobrasilien 7
Fulviusbsas 295
Gabriel Yuji 0
Gabryelsl 0
Georgez 12
Gerbilo 67
Giro720 416
GoEThe 3706
GuilhermeYoung 0
Gunnex 1450
Hallel 221
Hyju 1923
Jcaraballo 0
Jeferson 108
Johnmartins 41
Jonas kam 1164
João Carvalho 5249
João Sousa 3442
Kascyo 0
Kim richard 0
Kleiner 747
L'Éclipse 572
LP Sérgio LP 1572
Leandro Drudo 1074
Leandromartinez 3362
Leosls 30
Lisa116 0
Lord Mota 640
Lordelliott 166
Luan 1431
LuanSP 503
Lucas RdS 410
Lucas Secret 422
LuizM 110
Luiza Teles 471
Maañón 346
Magioladitis 9
Maisonneuve 122
Manuel Anastácio 1662
Maria Madalena 0
Mathonius 7
Mecanismo 50
MetalBrasil 1251
MisterSanderson 2085
Mobyduck 6
Mwaldeck 850
Nanny321 100
Nistelrooy 341
OffsBlink 1390
Paulo Eduardo ZZFE121 0
PedR 1382
Pedrassani 338
Polyethylen 0
Py4nf 484
Rafael Wiki 224
Reporter 1137
Richard Melo da Silva 868
Robertogilnei 567
Rossi pena 133
Salamat 1270
SallesNeto BR 0
Scheridon 135
Slade 1
Spoladore 418
Stego 0
Stegop 7781
SuperBraulio13 0
Sway 2 139
Tegel 3
ThrasherÜbermensch 0
Tschis 9
Vanthorn 9568
Vini 175 695
Vinicius Lima 865
Viniciusmc 2302
Vitor Mazuco 12799
Vitorvicentevalente 1037
Waldir 45
WikiFer 563
WikiGT 659
WikiInformante 498
Wjalves 1271
ZackTheJack 19
Zorglub 1441
De 2011-04-12T00:00:00Z a 2011-07-11T23:59:59Z
Editor Total
!Silent 3764
Acscosta 108
Agiesbrecht 324
Akamaruvp 51
AlexSP 334
Alvaro Azevedo Moura 1143
Amats 549
André Koehne 1550
Angrense 1114
Beria 285
Bisbis 0
Bruno Meireles 142
Burmeister 99
Carlos28 854
Chicocvenancio 3
ChristianH 1624
Cidcn 109
Clarice Reis 123
Coelhoscoelho 963
Coltsfan 1428
Crash Overclock 165
DARIO SEVERI 0
Darwinius 726
Defender 211
Denis Rizzoli 506
Dreispt 968
Eduardofeld 0
Euproprio 918
Eversonrachadel 953
Felipegaspars 598
Fernandobrasilien 48
Fulviusbsas 374
Gabriel Yuji 107
Gabryelsl 0
Georgez 33
Gerbilo 16
Giro720 400
GoEThe 1393
GuilhermeYoung 0
Gunnex 3318
Hallel 334
Hyju 2708
Jcaraballo 269
Jeferson 0
Johnmartins 106
Jonas kam 1822
João Carvalho 2352
João Sousa 1338
Kascyo 0
Kim richard 0
Kleiner 216
L'Éclipse 498
LP Sérgio LP 480
Leandro Drudo 1383
Leandromartinez 3615
Leosls 535
Lisa116 0
Lord Mota 621
Lordelliott 75
Luan 133
LuanSP 877
Lucas RdS 435
Lucas Secret 720
LuizM 1984
Luiza Teles 324
Maañón 205
Magioladitis 2
Maisonneuve 86
Manuel Anastácio 1634
Maria Madalena 0
Mathonius 120
Mecanismo 185
MetalBrasil 355
MisterSanderson 4238
Mobyduck 0
Mwaldeck 845
Nanny321 46
Nistelrooy 1913
OffsBlink 442
Paulo Eduardo ZZFE121 24
PedR 1896
Pedrassani 188
Polyethylen 382
Py4nf 834
Rafael Wiki 326
Reporter 1687
Richard Melo da Silva 1145
Robertogilnei 0
Rossi pena 579
Salamat 2342
SallesNeto BR 1
Scheridon 114
Slade 49
Spoladore 54
Stego 0
Stegop 5777
SuperBraulio13 0
Sway 2 1280
Tegel 5
ThrasherÜbermensch 0
Tschis 4
Vanthorn 1194
Vini 175 22
Vinicius Lima 106
Viniciusmc 2610
Vitor Mazuco 7624
Vitorvicentevalente 1036
Waldir 21
WikiFer 189
WikiGT 1223
WikiInformante 256
Wjalves 435
ZackTheJack 27
Zorglub 183
De 2012-01-12T00:00:00Z a 2012-04-11T23:59:59Z
Editor Total
!Silent 833
Acscosta 134
Agiesbrecht 162
Akamaruvp 10
AlexSP 0
Alvaro Azevedo Moura 31
Amats 106
André Koehne 1346
Angrense 1138
Beria 106
Bisbis 79
Bruno Meireles 2440
Burmeister 1070
Carlos28 831
Chicocvenancio 6104
ChristianH 15
Cidcn 612
Clarice Reis 1151
Coelhoscoelho 1
Coltsfan 2502
Crash Overclock 274
DARIO SEVERI 634
Darwinius 25
Defender 0
Denis Rizzoli 289
Dreispt 189
Eduardofeld 2128
Euproprio 291
Eversonrachadel 728
Felipegaspars 701
Fernandobrasilien 1468
Fulviusbsas 616
Gabriel Yuji 3118
Gabryelsl 159
Georgez 82
Gerbilo 6
Giro720 455
GoEThe 155
GuilhermeYoung 22
Gunnex 1534
Hallel 718
Hyju 1248
Jcaraballo 3
Jeferson 24
Johnmartins 587
Jonas kam 1010
João Carvalho 3108
João Sousa 44
Kascyo 2631
Kim richard 1
Kleiner 58
L'Éclipse 435
LP Sérgio LP 690
Leandro Drudo 1986
Leandromartinez 383
Leosls 11535
Lisa116 205
Lord Mota 1089
Lordelliott 557
Luan 1053
LuanSP 100
Lucas RdS 724
Lucas Secret 878
LuizM 186
Luiza Teles 145
Maañón 600
Magioladitis 83
Maisonneuve 108
Manuel Anastácio 2124
Maria Madalena 606
Mathonius 67
Mecanismo 250
MetalBrasil 31
MisterSanderson 2937
Mobyduck 0
Mwaldeck 833
Nanny321 80
Nistelrooy 370
OffsBlink 181
Paulo Eduardo ZZFE121 125
PedR 1202
Pedrassani 334
Polyethylen 2860
Py4nf 970
Rafael Wiki 1704
Reporter 1192
Richard Melo da Silva 738
Robertogilnei 117
Rossi pena 862
Salamat 3
SallesNeto BR 1101
Scheridon 108
Slade 20
Spoladore 3
Stego 2225
Stegop 5525
SuperBraulio13 1123
Sway 2 216
Tegel 2
ThrasherÜbermensch 0
Tschis 3994
Vanthorn 6087
Vini 175 423
Vinicius Lima 95
Viniciusmc 6634
Vitor Mazuco 8641
Vitorvicentevalente 943
Waldir 66
WikiFer 103
WikiGT 1628
WikiInformante 16
Wjalves 2861
ZackTheJack 523
Zorglub 313
De 2012-04-12T00:00:00Z a 2012-07-11T23:59:59Z
Editor Total
!Silent 4322
Acscosta 62
Agiesbrecht 323
Akamaruvp 1
AlexSP 0
Alvaro Azevedo Moura 44
Amats 28
André Koehne 179
Angrense 1907
Beria 15
Bisbis 0
Bruno Meireles 3801
Burmeister 410
Carlos28 726
Chicocvenancio 1705
ChristianH 1
Cidcn 572
Clarice Reis 4335
Coelhoscoelho 86
Coltsfan 2253
Crash Overclock 256
DARIO SEVERI 1151
Darwinius 25
Defender 532
Denis Rizzoli 147
Dreispt 29
Eduardofeld 893
Euproprio 96
Eversonrachadel 502
Felipegaspars 81
Fernandobrasilien 2412
Fulviusbsas 113
Gabriel Yuji 4075
Gabryelsl 570
Georgez 63
Gerbilo 48
Giro720 124
GoEThe 1471
GuilhermeYoung 2349
Gunnex 1500
Hallel 1898
Hyju 3338
Jcaraballo 59
Jeferson 61
Johnmartins 311
Jonas kam 1696
João Carvalho 1453
João Sousa 28
Kascyo 3572
Kim richard 360
Kleiner 41
L'Éclipse 913
LP Sérgio LP 95
Leandro Drudo 2113
Leandromartinez 11
Leosls 12913
Lisa116 85
Lord Mota 1373
Lordelliott 470
Luan 937
LuanSP 3
Lucas RdS 991
Lucas Secret 807
LuizM 86
Luiza Teles 38
Maañón 950
Magioladitis 0
Maisonneuve 62
Manuel Anastácio 196
Maria Madalena 2517
Mathonius 181
Mecanismo 233
MetalBrasil 26
MisterSanderson 793
Mobyduck 113
Mwaldeck 612
Nanny321 23
Nistelrooy 316
OffsBlink 1254
Paulo Eduardo ZZFE121 2067
PedR 694
Pedrassani 736
Polyethylen 3315
Py4nf 1400
Rafael Wiki 896
Reporter 1248
Richard Melo da Silva 540
Robertogilnei 13
Rossi pena 1177
Salamat 0
SallesNeto BR 131
Scheridon 50
Slade 58
Spoladore 0
Stego 2266
Stegop 4548
SuperBraulio13 666
Sway 2 82
Tegel 2
ThrasherÜbermensch 2256
Tschis 188
Vanthorn 5542
Vini 175 120
Vinicius Lima 23
Viniciusmc 4837
Vitor Mazuco 11051
Vitorvicentevalente 468
Waldir 15
WikiFer 98
WikiGT 4910
WikiInformante 406
Wjalves 2888
ZackTheJack 204
Zorglub 774

Administradores

De 2011-01-12T00:00:00Z a 2011-04-11T23:59:59Z
Editor Total
Alchimista 1404
Alexanderps 1100
Alexg 330
Belanidia 1964
Biologo32 426
Braswiki 242
Castelobranco 270
Daimore 382
Dédi's 679
Eamaral 765
Eric Duff 1937
EuTuga 2221
FSogumo 1310
Fabiano Tatsch 6019
Francisco Leandro 5678
Gean 2870
HVL 4010
Heiligenfeld 1124
Hermógenes Teixeira Pinto Filho 1110
Jbribeiro1 7307
Jo Lorib 1694
Lechatjaune 567
Luckas Blade 1873
Marcos Elias de Oliveira Júnior 8110
MelM 1421
Mário Henrique 6011
Nelson Teixeira 23
Opraco 1194
Rjclaudio 3485
Ruy Pugliesi 2504
Sturm 2985
Teles 1672
ThiagoRuiz 946
Tiago Abreu 0
Willy Weazley 2965
Yanguas 6490
Érico Júnior Wouters 931
De 2011-04-12T00:00:00Z a 2011-07-11T23:59:59Z
Editor Total
Alchimista 1285
Alexanderps 713
Alexg 303
Belanidia 2053
Biologo32 636
Braswiki 501
Castelobranco 119
Daimore 43
Dédi's 1531
Eamaral 2551
Eric Duff 1032
EuTuga 1467
FSogumo 778
Fabiano Tatsch 3294
Francisco Leandro 5156
Gean 2811
HVL 2992
Heiligenfeld 936
Hermógenes Teixeira Pinto Filho 851
Jbribeiro1 7106
Jo Lorib 1381
Lechatjaune 443
Luckas Blade 28
Marcos Elias de Oliveira Júnior 4586
MelM 2756
Mário Henrique 429
Nelson Teixeira 52
Opraco 476
Rjclaudio 7703
Ruy Pugliesi 1754
Sturm 714
Teles 1893
ThiagoRuiz 618
Tiago Abreu 31
Willy Weazley 1842
Yanguas 9117
Érico Júnior Wouters 883
De 2012-01-12T00:00:00Z a 2012-04-11T23:59:59Z
Editor Total
Alchimista 326
Alexanderps 869
Alexg 145
Belanidia 1020
Biologo32 649
Braswiki 138
Castelobranco 892
Daimore 509
Dédi's 308
Eamaral 1645
Eric Duff 1736
EuTuga 4115
FSogumo 1215
Fabiano Tatsch 2599
Francisco Leandro 3146
Gean 1707
HVL 2439
Heiligenfeld 1078
Hermógenes Teixeira Pinto Filho 476
Jbribeiro1 4180
Jo Lorib 447
Lechatjaune 72
Luckas Blade 4760
Marcos Elias de Oliveira Júnior 2340
MelM 1120
Mário Henrique 821
Nelson Teixeira 2017
Opraco 127
Rjclaudio 2124
Ruy Pugliesi 472
Sturm 1142
Teles 1661
ThiagoRuiz 17
Tiago Abreu 3735
Willy Weazley 1747
Yanguas 10998
Érico Júnior Wouters 12924
De 2012-04-12T00:00:00Z a 2012-07-11T23:59:59Z
Editor Total
Alchimista 471
Alexanderps 421
Alexg 126
Belanidia 1928
Biologo32 2329
Braswiki 205
Castelobranco 143
Daimore 60
Dédi's 188
Eamaral 222
Eric Duff 1554
EuTuga 5381
FSogumo 1289
Fabiano Tatsch 3949
Francisco Leandro 4198
Gean 1344
HVL 3204
Heiligenfeld 1109
Hermógenes Teixeira Pinto Filho 1983
Jbribeiro1 5465
Jo Lorib 433
Lechatjaune 105
Luckas Blade 3513
Marcos Elias de Oliveira Júnior 1023
MelM 976
Mário Henrique 626
Nelson Teixeira 2760
Opraco 58
Rjclaudio 1778
Ruy Pugliesi 246
Sturm 5261
Teles 1733
ThiagoRuiz 20
Tiago Abreu 3545
Willy Weazley 582
Yanguas 12461
Érico Júnior Wouters 3772

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: 500
		} )
		.done( function ( data ) {
			apiDeferred.resolve(
				$.map(data.query.allusers, function(user){
					return user.name;
				})
			);
		} )
		.fail( apiDeferred.reject );
		return apiDeferred.promise();
	},
	/**
	 * Get number of edits by a user in a given period of time
	 */
	getTotalEditsByUser: function( userName, from, to ){
		var	apiDeferred = $.Deferred(),
			mwAPI = this,
			params = {
				list: 'usercontribs',
				ucstart: from,
				ucend: to,
				ucuser: userName,
				ucdir: 'newer',
				ucprop: 'sizediff',
				uclimit: 500
			},
			total = 0,
			doRequest = function( ucstart ){
				if( ucstart ){
					params.ucstart = ucstart;
				}
				mwAPI.get( params )
				.done( function ( data ) {
					//debugger;
					total += data.query.usercontribs.length;
					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(),
getEditStats = 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',
		addUserEditsToTable = function( userName ){
			jsMsg('Obtendo o número de edições feitas entre ' + from + ' e ' + to + ' por ' + userName + '...');
			api.getTotalEditsByUser( userName, from, to )
			.done( function( total ){
				var i;
				table[index] = [ userName, total ];
				index++;
				if ( index < userList.length ){
					addUserEditsToTable( 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 );
		};
	addUserEditsToTable( 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 ){
			getEditStats( 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>== Edições por grupo de editores ==\n=== Reversores ===\n' +
					rollbackerStats +
					'\n{{clear}}\n=== Administradores ===\n' +
					sysopStats + '</pre>'
				);
			});
		});
	});
});

}( mediaWiki, jQuery, jsMsg ) );