MediaWiki:Gadget-twinkleprotect.js: Difference between revisions

m
1 revision: new version of Twinkle
m (1 revision)
m (1 revision: new version of Twinkle)
 
(One intermediate revision by one other user not shown)
Line 30:
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "Protection templates", "Template:Protection templates" );
Window.addFooterLink( "Protection policy", "WPEFD:PROT" );
Window.addFooterLink( "Twinkle help", "WPEFD:TW/DOC#protect" );
 
var form = new Morebits.quickForm( Twinkle.protect.callback.evaluate );
Line 61:
label: 'Request page protection',
value: 'request',
tooltip: 'If you want to request protection via WPEFD:RPP' + (Morebits.userIsInGroup('sysop') ? ' instead of doing the protection by yourself.' : '.'),
checked: !Morebits.userIsInGroup('sysop')
},
Line 631:
edit: 'sysop',
move: 'sysop',
reason: '[[WPEFD:PP#Content disputes|Edit warring / Content dispute]]'
},
'pp-vandalism': {
edit: 'sysop',
move: 'sysop',
reason: 'Persistent [[WPEFD:Vandalism|vandalism]]'
},
'pp-template': {
edit: 'sysop',
move: 'sysop',
reason: '[[WPEFD:High-risk templates|Highly visible template]]'
},
'pp-usertalk': {
edit: 'sysop',
move: 'sysop',
reason: '[[WPEFD:PP#Talk-page protection|Inappropriate use of user talk page while blocked]]'
},
'pp-semi-vandalism': {
edit: 'autoconfirmed',
reason: 'Persistent [[WPEFD:Vandalism|vandalism]]',
template: 'pp-vandalism'
},
'pp-semi-blp': {
edit: 'autoconfirmed',
reason: 'Violations of the [[WPEFD:Biographies of living persons|biographies of living persons policy]]'
},
'pp-semi-usertalk': {
edit: 'autoconfirmed',
move: 'sysop',
reason: '[[WPEFD:PP#Talk-page protection|Inappropriate use of user talk page while blocked]]'
},
'pp-semi-template': { // removed for now
edit: 'autoconfirmed',
move: 'sysop',
reason: '[[WPEFD:High-risk templates|Highly visible template]]',
template: 'pp-template'
},
'pp-semi-sock': {
edit: 'autoconfirmed',
reason: 'Persistent [[WPEFD:Sock puppetry|sock puppetry]]'
},
'pp-semi-protected': {
Line 679:
'pp-pc-vandalism': {
stabilize: 'autoconfirmed', // stabilize = Pending Changes
reason: 'Persistent [[WPEFD:Vandalism|vandalism]]',
template: 'pp-pc1'
},
'pp-pc-blp': {
stabilize: 'autoconfirmed',
reason: 'Violations of the [[WPEFD:BLP|biographies of living persons policy]]',
template: 'pp-pc1'
},
Line 698:
'pp-move-dispute': {
move: 'sysop',
reason: '[[WPEFD:MOVP|Move warring]]'
},
'pp-move-vandalism': {
move: 'sysop',
reason: '[[WPEFD:MOVP|Page-move vandalism]]'
},
'pp-move-indef': {
move: 'sysop',
reason: '[[WPEFD:MOVP|Highly visible page]]'
},
'unprotect': {
Line 718:
'pp-create-offensive': {
create: 'sysop',
reason: '[[WPEFD:SALT|Offensive name]]'
},
'pp-create-salt': {
create: 'sysop',
reason: '[[WPEFD:SALT|Repeatedly recreated]]'
},
'pp-create-blp': {
create: 'sysop',
reason: '[[WPEFD:BLPDEL|Recently deleted BLP]]'
},
'pp-create': {
Line 1,060:
case 'pp-semi-blp':
case 'pp-pc-blp':
typereason = '[[WPEFD:BLP|BLP]] policy violations';
break;
case 'pp-move-dispute':
Line 1,075:
break;
case 'pp-create-blp':
typereason = 'Recently deleted [[WPEFD:BLP|BLP]]';
break;
case 'pp-create-salt':
Line 1,106:
Morebits.status.init( form );
 
rppName = 'WikipediaEverything Food & Drink:Requests for page protection';
 
// Updating data for the action completed event
Line 1,264:
linknode.setAttribute("href", mw.util.wikiGetlink("Wikipedia:Twinkle/Fixing RPP") );
linknode.appendChild(document.createTextNode('How to fix RPP'));
statusElement.error( [ 'Could not find relevant heading on WPMYW:RPP. To fix this problem, please see ', linknode, '.' ] );
return;
}
0

edits