Content deleted Content added
Try this |
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
(2 intermediate revisions by 2 users 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',
};
var reason = form.reason.value;
Line 351 ⟶ 352:
case 'moved':
var query = {
'title': mw.config.get('wgPageName'),
'action': 'submit',
'unwatch': 'true',
};
var newname = form.newname.value;
|