-
Notifications
You must be signed in to change notification settings - Fork 142
/
twinklewarn.js
1454 lines (1381 loc) · 49.1 KB
/
twinklewarn.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// <nowiki>
(function($) {
/*
****************************************
*** twinklewarn.js: Warn module
****************************************
* Mode of invocation: Tab ("Warn")
* Active on: Any page with relevant user name (userspace, contribs,
* etc.), as well as diffs and the rollback success page
*/
Twinkle.warn = function twinklewarn() {
if (mw.config.get('wgRelevantUserName')) {
Twinkle.addPortletLink(Twinkle.warn.callback, 'Warn', 'tw-warn', 'Warn/notify user');
if (Twinkle.getPref('autoMenuAfterRollback') && mw.config.get('wgNamespaceNumber') === 3 &&
mw.util.getParamValue('vanarticle') && !mw.util.getParamValue('friendlywelcome') && !mw.util.getParamValue('noautowarn')) {
Twinkle.warn.callback();
}
}
// Modify URL of talk page on rollback success pages, makes use of a
// custom message box in [[MediaWiki:Rollback-success]]
if (mw.config.get('wgAction') === 'rollback') {
var $vandalTalkLink = $('#mw-rollback-success').find('.mw-usertoollinks a').first();
if ($vandalTalkLink.length) {
$vandalTalkLink.css('font-weight', 'bold');
$vandalTalkLink.wrapInner($('<span/>').attr('title', 'If appropriate, you can use Twinkle to warn the user about their edits to this page.'));
var extraParam = 'vanarticle=' + mw.util.rawurlencode(Morebits.pageNameNorm);
var href = $vandalTalkLink.attr('href');
if (href.indexOf('?') === -1) {
$vandalTalkLink.attr('href', href + '?' + extraParam);
} else {
$vandalTalkLink.attr('href', href + '&' + extraParam);
}
}
} else if (mw.config.get('wgDiffNewId') || mw.config.get('wgDiffOldId')) {
// Autofill user talk links on diffs with vanarticle for easy
// warning, but don't autowarn
var warnFromTalk = function(talkLink) {
if (talkLink.length) {
var extraParams = 'vanarticle=' + mw.util.rawurlencode(Morebits.pageNameNorm) + '&' + 'noautowarn=true';
var href = talkLink.attr('href');
if (href.indexOf('?') === -1) {
talkLink.attr('href', href + '?' + extraParams);
} else {
talkLink.attr('href', href + '&' + extraParams);
}
}
};
warnFromTalk($('#mw-diff-otitle2 .mw-usertoollinks a').first());
warnFromTalk($('#mw-diff-ntitle2 .mw-usertoollinks a').first());
}
};
Twinkle.warn.callback = function twinklewarnCallback() {
if (mw.config.get('wgRelevantUserName') === mw.config.get('wgUserName') &&
!confirm('You are about to warn yourself! Are you sure you want to proceed?')) {
return;
}
var Window = new Morebits.simpleWindow(600, 440);
Window.setTitle('Warn/notify user');
Window.setScriptName('Twinkle');
Window.addFooterLink('Choosing a warning level', 'WP:UWUL#Levels');
Window.addFooterLink('Twinkle help', 'WP:TW/DOC#warn');
var form = new Morebits.quickForm(Twinkle.warn.callback.evaluate);
var main_select = form.append({
type: 'field',
label: 'Choose type of warning/notice to issue',
tooltip: 'First choose a main warning group, then the specific warning to issue.'
});
var main_group = main_select.append({
type: 'select',
name: 'main_group',
event: Twinkle.warn.callback.change_category
});
var defaultGroup = parseInt(Twinkle.getPref('defaultWarningGroup'), 10);
main_group.append({ type: 'option', label: '1: General note', value: 'level1', selected: defaultGroup === 1 });
main_group.append({ type: 'option', label: '2: Caution', value: 'level2', selected: defaultGroup === 2 });
main_group.append({ type: 'option', label: '3: Warning', value: 'level3', selected: defaultGroup === 3 });
main_group.append({ type: 'option', label: '4: Final warning', value: 'level4', selected: defaultGroup === 4 });
main_group.append({ type: 'option', label: '4im: Only warning', value: 'level4im', selected: defaultGroup === 5 });
if (Twinkle.getPref('combinedSingletMenus')) {
main_group.append({ type: 'option', label: 'Single-issue messages', value: 'singlecombined', selected: defaultGroup === 6 || defaultGroup === 7 });
} else {
main_group.append({ type: 'option', label: 'Single-issue notices', value: 'singlenotice', selected: defaultGroup === 6 });
main_group.append({ type: 'option', label: 'Single-issue warnings', value: 'singlewarn', selected: defaultGroup === 7 });
}
if (Twinkle.getPref('customWarningList').length) {
main_group.append({ type: 'option', label: 'Custom warnings', value: 'custom', selected: defaultGroup === 9 });
}
main_select.append({ type: 'select', name: 'sub_group', event: Twinkle.warn.callback.change_subcategory }); // Will be empty to begin with.
form.append({
type: 'input',
name: 'article',
label: 'Linked page',
value: Morebits.queryString.exists('vanarticle') ? Morebits.queryString.get('vanarticle') : '',
tooltip: 'A page can be linked within the notice, perhaps because it was a revert to said page that dispatched this notice. Leave empty for no page to be linked.'
});
var more = form.append({ type: 'field', name: 'reasonGroup', label: 'Warning information' });
more.append({ type: 'textarea', label: 'Optional message:', name: 'reason', tooltip: 'Perhaps a reason, or that a more detailed notice must be appended' });
var previewlink = document.createElement('a');
$(previewlink).click(function() {
Twinkle.warn.callbacks.preview(result); // |result| is defined below
});
previewlink.style.cursor = 'pointer';
previewlink.textContent = 'Preview';
more.append({ type: 'div', id: 'warningpreview', label: [ previewlink ] });
more.append({ type: 'div', id: 'twinklewarn-previewbox', style: 'display: none' });
more.append({ type: 'submit', label: 'Submit' });
var result = form.render();
Window.setContent(result);
Window.display();
result.main_group.root = result;
result.previewer = new Morebits.wiki.preview($(result).find('div#twinklewarn-previewbox').last()[0]);
// We must init the first choice (General Note);
var evt = document.createEvent('Event');
evt.initEvent('change', true, true);
result.main_group.dispatchEvent(evt);
};
// This is all the messages that might be dispatched by the code
// Each of the individual templates require the following information:
// label (required): A short description displayed in the dialog
// summary (required): The edit summary used. If an article name is entered, the summary is postfixed with "on [[article]]", and it is always postfixed with ". $summaryAd"
// suppressArticleInSummary (optional): Set to true to suppress showing the article name in the edit summary. Useful if the warning relates to attack pages, or some such.
Twinkle.warn.messages = {
levels: {
'Common warnings': {
'uw-vandalism': {
level1: {
label: 'Vandalism',
summary: 'General note: Unconstructive editing'
},
level2: {
label: 'Vandalism',
summary: 'Caution: Unconstructive editing'
},
level3: {
label: 'Vandalism',
summary: 'Warning: Vandalism'
},
level4: {
label: 'Vandalism',
summary: 'Final warning: Vandalism'
},
level4im: {
label: 'Vandalism',
summary: 'Only warning: Vandalism'
}
},
'uw-disruptive': {
level1: {
label: 'Disruptive editing',
summary: 'General note: Unconstructive editing'
},
level2: {
label: 'Disruptive editing',
summary: 'Caution: Unconstructive editing'
},
level3: {
label: 'Disruptive editing',
summary: 'Warning: Disruptive editing'
}
},
'uw-test': {
level1: {
label: 'Editing tests',
summary: 'General note: Editing tests'
},
level2: {
label: 'Editing tests',
summary: 'Caution: Editing tests'
},
level3: {
label: 'Editing tests',
summary: 'Warning: Editing tests'
}
},
'uw-delete': {
level1: {
label: 'Removal of content, blanking',
summary: 'General note: Removal of content, blanking'
},
level2: {
label: 'Removal of content, blanking',
summary: 'Caution: Removal of content, blanking'
},
level3: {
label: 'Removal of content, blanking',
summary: 'Warning: Removal of content, blanking'
},
level4: {
label: 'Removal of content, blanking',
summary: 'Final warning: Removal of content, blanking'
},
level4im: {
label: 'Removal of content, blanking',
summary: 'Only warning: Removal of content, blanking'
}
},
'uw-generic': {
level4: {
label: 'Generic warning (for template series missing level 4)',
summary: 'Final warning notice'
}
}
},
'Behavior in articles': {
'uw-biog': {
level1: {
label: 'Adding unreferenced controversial information about living persons',
summary: 'General note: Adding unreferenced controversial information about living persons'
},
level2: {
label: 'Adding unreferenced controversial information about living persons',
summary: 'Caution: Adding unreferenced controversial information about living persons'
},
level3: {
label: 'Adding unreferenced controversial/defamatory information about living persons',
summary: 'Warning: Adding unreferenced controversial information about living persons'
},
level4: {
label: 'Adding unreferenced defamatory information about living persons',
summary: 'Final warning: Adding unreferenced controversial information about living persons'
},
level4im: {
label: 'Adding unreferenced defamatory information about living persons',
summary: 'Only warning: Adding unreferenced controversial information about living persons'
}
},
'uw-defamatory': {
level1: {
label: 'Addition of defamatory content',
summary: 'General note: Addition of defamatory content'
},
level2: {
label: 'Addition of defamatory content',
summary: 'Caution: Addition of defamatory content'
},
level3: {
label: 'Addition of defamatory content',
summary: 'Warning: Addition of defamatory content'
},
level4: {
label: 'Addition of defamatory content',
summary: 'Final warning: Addition of defamatory content'
},
level4im: {
label: 'Addition of defamatory content',
summary: 'Only warning: Addition of defamatory content'
}
},
'uw-error': {
level1: {
label: 'Introducing deliberate factual errors',
summary: 'General note: Introducing factual errors'
},
level2: {
label: 'Introducing deliberate factual errors',
summary: 'Caution: Introducing factual errors'
},
level3: {
label: 'Introducing deliberate factual errors',
summary: 'Warning: Introducing deliberate factual errors'
},
level4: {
label: 'Introducing deliberate factual errors',
summary: 'Final warning: Introducing deliberate factual errors'
}
},
'uw-genre': {
level1: {
label: 'Frequent or mass changes to genres without consensus or references',
summary: 'General note: Frequent or mass changes to genres without consensus or references'
},
level2: {
label: 'Frequent or mass changes to genres without consensus or references',
summary: 'Caution: Frequent or mass changes to genres without consensus or references'
},
level3: {
label: 'Frequent or mass changes to genres without consensus or reference',
summary: 'Warning: Frequent or mass changes to genres without consensus or reference'
},
level4: {
label: 'Frequent or mass changes to genres without consensus or reference',
summary: 'Final warning: Frequent or mass changes to genres without consensus or reference'
}
},
'uw-image': {
level1: {
label: 'Image-related vandalism in articles',
summary: 'General note: Image-related vandalism in articles'
},
level2: {
label: 'Image-related vandalism in articles',
summary: 'Caution: Image-related vandalism in articles'
},
level3: {
label: 'Image-related vandalism in articles',
summary: 'Warning: Image-related vandalism in articles'
},
level4: {
label: 'Image-related vandalism in articles',
summary: 'Final warning: Image-related vandalism in articles'
},
level4im: {
label: 'Image-related vandalism',
summary: 'Only warning: Image-related vandalism'
}
},
'uw-joke': {
level1: {
label: 'Using improper humor in articles',
summary: 'General note: Using improper humor in articles'
},
level2: {
label: 'Using improper humor in articles',
summary: 'Caution: Using improper humor in articles'
},
level3: {
label: 'Using improper humor in articles',
summary: 'Warning: Using improper humor in articles'
},
level4: {
label: 'Using improper humor in articles',
summary: 'Final warning: Using improper humor in articles'
},
level4im: {
label: 'Using improper humor',
summary: 'Only warning: Using improper humor'
}
},
'uw-nor': {
level1: {
label: 'Adding original research, including unpublished syntheses of sources',
summary: 'General note: Adding original research, including unpublished syntheses of sources'
},
level2: {
label: 'Adding original research, including unpublished syntheses of sources',
summary: 'Caution: Adding original research, including unpublished syntheses of sources'
},
level3: {
label: 'Adding original research, including unpublished syntheses of sources',
summary: 'Warning: Adding original research, including unpublished syntheses of sources'
},
level4: {
label: 'Adding original research, including unpublished syntheses of sources',
summary: 'Final warning: Adding original research, including unpublished syntheses of sources'
}
},
'uw-notcensored': {
level1: {
label: 'Censorship of material',
summary: 'General note: Censorship of material'
},
level2: {
label: 'Censorship of material',
summary: 'Caution: Censorship of material'
},
level3: {
label: 'Censorship of material',
summary: 'Warning: Censorship of material'
}
},
'uw-own': {
level1: {
label: 'Ownership of articles',
summary: 'General note: Ownership of articles'
},
level2: {
label: 'Ownership of articles',
summary: 'Caution: Ownership of articles'
},
level3: {
label: 'Ownership of articles',
summary: 'Warning: Ownership of articles'
},
level4: {
label: 'Ownership of articles',
summary: 'Final warning: Ownership of articles'
},
level4im: {
label: 'Ownership of articles',
summary: 'Only warning: Ownership of articles'
}
},
'uw-tdel': {
level1: {
label: 'Removal of maintenance templates',
summary: 'General note: Removal of maintenance templates'
},
level2: {
label: 'Removal of maintenance templates',
summary: 'Caution: Removal of maintenance templates'
},
level3: {
label: 'Removal of maintenance templates',
summary: 'Warning: Removal of maintenance templates'
},
level4: {
label: 'Removal of maintenance templates',
summary: 'Final warning: Removal of maintenance templates'
}
},
'uw-unsourced': {
level1: {
label: 'Addition of unsourced or improperly cited material',
summary: 'General note: Addition of unsourced or improperly cited material'
},
level2: {
label: 'Addition of unsourced or improperly cited material',
summary: 'Caution: Addition of unsourced or improperly cited material'
},
level3: {
label: 'Addition of unsourced or improperly cited material',
summary: 'Warning: Addition of unsourced or improperly cited material'
},
level4: {
label: 'Addition of unsourced or improperly cited material',
summary: 'Final warning: Addition of unsourced or improperly cited material'
}
}
},
'Promotions and spam': {
'uw-advert': {
level1: {
label: 'Using Wikipedia for advertising or promotion',
summary: 'General note: Using Wikipedia for advertising or promotion'
},
level2: {
label: 'Using Wikipedia for advertising or promotion',
summary: 'Caution: Using Wikipedia for advertising or promotion'
},
level3: {
label: 'Using Wikipedia for advertising or promotion',
summary: 'Warning: Using Wikipedia for advertising or promotion'
},
level4: {
label: 'Using Wikipedia for advertising or promotion',
summary: 'Final warning: Using Wikipedia for advertising or promotion'
},
level4im: {
label: 'Using Wikipedia for advertising or promotion',
summary: 'Only warning: Using Wikipedia for advertising or promotion'
}
},
'uw-npov': {
level1: {
label: 'Not adhering to neutral point of view',
summary: 'General note: Not adhering to neutral point of view'
},
level2: {
label: 'Not adhering to neutral point of view',
summary: 'Caution: Not adhering to neutral point of view'
},
level3: {
label: 'Not adhering to neutral point of view',
summary: 'Warning: Not adhering to neutral point of view'
},
level4: {
label: 'Not adhering to neutral point of view',
summary: 'Final warning: Not adhering to neutral point of view'
}
},
'uw-paid': {
level1: {
label: 'Paid editing without disclosure under the Wikimedia Terms of Use',
summary: 'General note: Paid editing without disclosure under the Wikimedia Terms of Use'
},
level2: {
label: 'Paid editing without disclosure under the Wikimedia Terms of Use',
summary: 'Caution: Paid editing without disclosure under the Wikimedia Terms of Use'
},
level3: {
label: 'Paid editing without disclosure under the Wikimedia Terms of Use',
summary: 'Warning: Paid editing without disclosure under the Wikimedia Terms of Use'
},
level4: {
label: 'Paid editing without disclosure under the Wikimedia Terms of Use',
summary: 'Final warning: Paid editing without disclosure under the Wikimedia Terms of Use'
}
},
'uw-spam': {
level1: {
label: 'Adding inappropriate external links',
summary: 'General note: Adding inappropriate external links'
},
level2: {
label: 'Adding spam links',
summary: 'Caution: Adding spam links'
},
level3: {
label: 'Adding spam links',
summary: 'Warning: Adding spam links'
},
level4: {
label: 'Adding spam links',
summary: 'Final warning: Adding spam links'
},
level4im: {
label: 'Adding spam links',
summary: 'Only warning: Adding spam links'
}
}
},
'Behavior towards other editors': {
'uw-agf': {
level1: {
label: 'Not assuming good faith',
summary: 'General note: Not assuming good faith'
},
level2: {
label: 'Not assuming good faith',
summary: 'Caution: Not assuming good faith'
},
level3: {
label: 'Not assuming good faith',
summary: 'Warning: Not assuming good faith'
}
},
'uw-harass': {
level1: {
label: 'Harassment of other users',
summary: 'General note: Harassment of other users'
},
level2: {
label: 'Harassment of other users',
summary: 'Caution: Harassment of other users'
},
level3: {
label: 'Harassment of other users',
summary: 'Warning: Harassment of other users'
},
level4: {
label: 'Harassment of other users',
summary: 'Final warning: Harassment of other users'
},
level4im: {
label: 'Harassment of other users',
summary: 'Only warning: Harassment of other users'
}
},
'uw-npa': {
level1: {
label: 'Personal attack directed at a specific editor',
summary: 'General note: Personal attack directed at a specific editor'
},
level2: {
label: 'Personal attack directed at a specific editor',
summary: 'Caution: Personal attack directed at a specific editor'
},
level3: {
label: 'Personal attack directed at a specific editor',
summary: 'Warning: Personal attack directed at a specific editor'
},
level4: {
label: 'Personal attack directed at a specific editor',
summary: 'Final warning: Personal attack directed at a specific editor'
},
level4im: {
label: 'Personal attack directed at a specific editor',
summary: 'Only warning: Personal attack directed at a specific editor'
}
},
'uw-tempabuse': {
level1: {
label: 'Improper use of warning or blocking template',
summary: 'General note: Improper use of warning or blocking template'
},
level2: {
label: 'Improper use of warning or blocking template',
summary: 'Caution: Improper use of warning or blocking template'
}
}
},
'Removal of deletion tags': {
'uw-afd': {
level1: {
label: 'Removing {{afd}} templates',
summary: 'General note: Removing {{afd}} templates'
},
level2: {
label: 'Removing {{afd}} templates',
summary: 'Caution: Removing {{afd}} templates'
},
level3: {
label: 'Removing {{afd}} templates',
summary: 'Warning: Removing {{afd}} templates'
},
level4: {
label: 'Removing {{afd}} templates',
summary: 'Final warning: Removing {{afd}} templates'
}
},
'uw-blpprod': {
level1: {
label: 'Removing {{blp prod}} templates',
summary: 'General note: Removing {{blp prod}} templates'
},
level2: {
label: 'Removing {{blp prod}} templates',
summary: 'Caution: Removing {{blp prod}} templates'
},
level3: {
label: 'Removing {{blp prod}} templates',
summary: 'Warning: Removing {{blp prod}} templates'
},
level4: {
label: 'Removing {{blp prod}} templates',
summary: 'Final warning: Removing {{blp prod}} templates'
}
},
'uw-idt': {
level1: {
label: 'Removing file deletion tags',
summary: 'General note: Removing file deletion tags'
},
level2: {
label: 'Removing file deletion tags',
summary: 'Caution: Removing file deletion tags'
},
level3: {
label: 'Removing file deletion tags',
summary: 'Warning: Removing file deletion tags'
},
level4: {
label: 'Removing file deletion tags',
summary: 'Final warning: Removing file deletion tags'
}
},
'uw-speedy': {
level1: {
label: 'Removing speedy deletion tags',
summary: 'General note: Removing speedy deletion tags'
},
level2: {
label: 'Removing speedy deletion tags',
summary: 'Caution: Removing speedy deletion tags'
},
level3: {
label: 'Removing speedy deletion tags',
summary: 'Warning: Removing speedy deletion tags'
},
level4: {
label: 'Removing speedy deletion tags',
summary: 'Final warning: Removing speedy deletion tags'
}
}
},
'Other': {
'uw-attempt': {
level1: {
label: 'Triggering the edit filter',
summary: 'General note: Triggering the edit filter'
},
level2: {
label: 'Triggering the edit filter',
summary: 'Caution: Triggering the edit filter'
},
level3: {
label: 'Triggering the edit filter',
summary: 'Warning: Triggering the edit filter'
},
level4: {
label: 'Triggering the edit filter',
summary: 'Final warning: Triggering the edit filter'
}
},
'uw-chat': {
level1: {
label: 'Using talk page as forum',
summary: 'General note: Using talk page as forum'
},
level2: {
label: 'Using talk page as forum',
summary: 'Caution: Using talk page as forum'
},
level3: {
label: 'Using talk page as forum',
summary: 'Warning: Using talk page as forum'
},
level4: {
label: 'Using talk page as forum',
summary: 'Final warning: Using talk page as forum'
}
},
'uw-create': {
level1: {
label: 'Creating inappropriate pages',
summary: 'General note: Creating inappropriate pages'
},
level2: {
label: 'Creating inappropriate pages',
summary: 'Caution: Creating inappropriate pages'
},
level3: {
label: 'Creating inappropriate pages',
summary: 'Warning: Creating inappropriate pages'
},
level4: {
label: 'Creating inappropriate pages',
summary: 'Final warning: Creating inappropriate pages'
},
level4im: {
label: 'Creating inappropriate pages',
summary: 'Only warning: Creating inappropriate pages'
}
},
'uw-mos': {
level1: {
label: 'Manual of style',
summary: 'General note: Formatting, date, language, etc (Manual of style)'
},
level2: {
label: 'Manual of style',
summary: 'Caution: Formatting, date, language, etc (Manual of style)'
},
level3: {
label: 'Manual of style',
summary: 'Warning: Formatting, date, language, etc (Manual of style)'
},
level4: {
label: 'Manual of style',
summary: 'Final warning: Formatting, date, language, etc (Manual of style)'
}
},
'uw-move': {
level1: {
label: 'Page moves against naming conventions or consensus',
summary: 'General note: Page moves against naming conventions or consensus'
},
level2: {
label: 'Page moves against naming conventions or consensus',
summary: 'Caution: Page moves against naming conventions or consensus'
},
level3: {
label: 'Page moves against naming conventions or consensus',
summary: 'Warning: Page moves against naming conventions or consensus'
},
level4: {
label: 'Page moves against naming conventions or consensus',
summary: 'Final warning: Page moves against naming conventions or consensus'
},
level4im: {
label: 'Page moves against naming conventions or consensus',
summary: 'Only warning: Page moves against naming conventions or consensus'
}
},
'uw-tpv': {
level1: {
label: "Refactoring others' talk page comments",
summary: "General note: Refactoring others' talk page comments"
},
level2: {
label: "Refactoring others' talk page comments",
summary: "Caution: Refactoring others' talk page comments"
},
level3: {
label: "Refactoring others' talk page comments",
summary: "Warning: Refactoring others' talk page comments"
},
level4: {
label: "Refactoring others' talk page comments",
summary: "Final warning: Refactoring others' talk page comments"
},
level4im: {
label: "Refactoring others' talk page comments",
summary: "Only warning: Refactoring others' talk page comments"
}
},
'uw-upload': {
level1: {
label: 'Uploading unencyclopedic images',
summary: 'General note: Uploading unencyclopedic images'
},
level2: {
label: 'Uploading unencyclopedic images',
summary: 'Caution: Uploading unencyclopedic images'
},
level3: {
label: 'Uploading unencyclopedic images',
summary: 'Warning: Uploading unencyclopedic images'
},
level4: {
label: 'Uploading unencyclopedic images',
summary: 'Final warning: Uploading unencyclopedic images'
},
level4im: {
label: 'Uploading unencyclopedic images',
summary: 'Only warning: Uploading unencyclopedic images'
}
}
}
},
singlenotice: {
'uw-aiv': {
label: 'Bad AIV report',
summary: 'Notice: Bad AIV report'
},
'uw-autobiography': {
label: 'Creating autobiographies',
summary: 'Notice: Creating autobiographies'
},
'uw-badcat': {
label: 'Adding incorrect categories',
summary: 'Notice: Adding incorrect categories'
},
'uw-badlistentry': {
label: 'Adding inappropriate entries to lists',
summary: 'Notice: Adding inappropriate entries to lists'
},
'uw-bite': {
label: '"Biting" newcomers',
summary: 'Notice: "Biting" newcomers',
suppressArticleInSummary: true // non-standard (user name, not article), and not necessary
},
'uw-coi': {
label: 'Conflict of interest',
summary: 'Notice: Conflict of interest',
heading: 'Managing a conflict of interest'
},
'uw-controversial': {
label: 'Introducing controversial material',
summary: 'Notice: Introducing controversial material'
},
'uw-copying': {
label: 'Copying text to another page',
summary: 'Notice: Copying text to another page'
},
'uw-crystal': {
label: 'Adding speculative or unconfirmed information',
summary: 'Notice: Adding speculative or unconfirmed information'
},
'uw-c&pmove': {
label: 'Cut and paste moves',
summary: 'Notice: Cut and paste moves'
},
'uw-dab': {
label: 'Incorrect edit to a disambiguation page',
summary: 'Notice: Incorrect edit to a disambiguation page'
},
'uw-date': {
label: 'Unnecessarily changing date formats',
summary: 'Notice: Unnecessarily changing date formats'
},
'uw-deadlink': {
label: 'Removing proper sources containing dead links',
summary: 'Notice: Removing proper sources containing dead links'
},
'uw-draftfirst': {
label: 'User should draft in userspace without the risk of speedy deletion',
summary: 'Notice: Consider drafting your article in [[Help:Userspace draft|userspace]]'
},
'uw-editsummary': {
label: 'Not using edit summary',
summary: 'Notice: Not using edit summary'
},
'uw-elinbody': {
label: 'Adding external links to the body of an article',
summary: 'Notice: Keep external links to External links sections at the bottom of an article'
},
'uw-english': {
label: 'Not communicating in English',
summary: 'Notice: Not communicating in English'
},
'uw-hasty': {
label: 'Hasty addition of speedy deletion tags',
summary: 'Notice: Allow creators time to improve their articles before tagging them for deletion'
},
'uw-italicize': {
label: 'Italicize books, films, albums, magazines, TV series, etc within articles',
summary: 'Notice: Italicize books, films, albums, magazines, TV series, etc within articles'
},
'uw-lang': {
label: 'Unnecessarily changing between British and American English',
summary: 'Notice: Unnecessarily changing between British and American English',
heading: 'National varieties of English'
},
'uw-linking': {
label: 'Excessive addition of redlinks or repeated blue links',
summary: 'Notice: Excessive addition of redlinks or repeated blue links'
},
'uw-minor': {
label: 'Incorrect use of minor edits check box',
summary: 'Notice: Incorrect use of minor edits check box'
},
'uw-notenglish': {
label: 'Creating non-English articles',
summary: 'Notice: Creating non-English articles'
},
'uw-notvote': {
label: 'We use consensus, not voting',
summary: 'Notice: We use consensus, not voting'
},
'uw-plagiarism': {
label: 'Copying from public domain sources without attribution',
summary: 'Notice: Copying from public domain sources without attribution'
},
'uw-preview': {
label: 'Use preview button to avoid mistakes',
summary: 'Notice: Use preview button to avoid mistakes'
},
'uw-redlink': {
label: 'Indiscriminate removal of redlinks',
summary: 'Notice: Be careful when removing redlinks'
},
'uw-selfrevert': {
label: 'Reverting self tests',
summary: 'Notice: Reverting self tests'
},
'uw-socialnetwork': {
label: 'Wikipedia is not a social network',
summary: 'Notice: Wikipedia is not a social network'
},
'uw-sofixit': {
label: 'Be bold and fix things yourself',
summary: 'Notice: You can be bold and fix things yourself'
},
'uw-spoiler': {
label: 'Adding spoiler alerts or removing spoilers from appropriate sections',
summary: "Notice: Don't delete or flag potential 'spoilers' in Wikipedia articles"
},
'uw-talkinarticle': {
label: 'Talk in article',
summary: 'Notice: Talk in article'
},
'uw-tilde': {
label: 'Not signing posts',
summary: 'Notice: Not signing posts'
},
'uw-toppost': {
label: 'Posting at the top of talk pages',
summary: 'Notice: Posting at the top of talk pages'
},
'uw-userspace draft finish': {
label: 'Stale userspace draft',
summary: 'Notice: Stale userspace draft'
},
'uw-vgscope': {
label: 'Adding video game walkthroughs, cheats or instructions',
summary: 'Notice: Adding video game walkthroughs, cheats or instructions'
},
'uw-warn': {
label: 'Place user warning templates when reverting vandalism',
summary: 'Notice: You can use user warning templates when reverting vandalism'
},
'uw-wrongsummary': {
label: 'Using inaccurate or inappropriate edit summaries',
summary: 'Warning: Using inaccurate or inappropriate edit summaries'
}
},
singlewarn: {
'uw-3rr': {
label: 'Potential three-revert rule violation; see also uw-ew',
summary: 'Warning: Three-revert rule'
},
'uw-affiliate': {
label: 'Affiliate marketing',
summary: 'Warning: Affiliate marketing'
},
'uw-agf-sock': {
label: 'Use of multiple accounts (assuming good faith)',
summary: 'Warning: Using multiple accounts'
},
'uw-attack': {
label: 'Creating attack pages',
summary: 'Warning: Creating attack pages',
suppressArticleInSummary: true
},
'uw-bizlist': {
label: 'Business promotion',
summary: 'Warning: Promoting a business'
},
'uw-botun': {
label: 'Bot username',
summary: 'Warning: Bot username'
},
'uw-canvass': {
label: 'Canvassing',
summary: 'Warning: Canvassing'
},