User:CWii/JB2script.js: Difference between revisions

Content deleted Content added
dont' watchlist on request from MBisanz
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(One intermediate revision by one other user not shown)
Line 1:
function jb2script () {
if( mw.config.get('wgNamespaceNumber') == 6 ) {
mw.util.addPortletLink( 'p-cactions', "javascript:jb2script.callback()", "JB2", "jb2script", "Tag for moval by John Bot II", "");
}
}
Line 179:
template = '\{\{jb2move|canMove=yes'
template += '|user=' + mw.config.get('wgUserName');
if ( cc1 != '' ) {
Line 240:
var reason = self.params.reason;
template = '\{\{jb2move|canMove=no'
template += '|user=' + mw.config.get('wgUserName');
template += '|reason=' + reason;
template += '\}\}\n'
Line 285:
} else {
fText = '\{\{jb2move';
fText += '|user=' + mw.config.get('wgUserName');
fText += '|canMove=moved'
if( newname != '' ) {
Line 317:
case 'yes':
var query = {
'title': mw.config.get('wgPageName'),
'action': 'submit',
};
Line 338:
case 'no':
var query = {
'title': mw.config.get('wgPageName'),
'action': 'submit',
'unwatch': 'true',
Line 352:
case 'moved':
var query = {
'title': mw.config.get('wgPageName'),
'action': 'submit',
'unwatch': 'true',