MediaWiki:Common.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Malcolm (talk | contribs)
Testing some wikia code
 
Outdated script
Tag: Undo
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
// Edittools (do not remove)
window.UserTagsJS = {
if ( [ 'edit' , 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1
modules: {},
|| mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload'
tags: {
) {
bureaucrat: { u: 'Crat'},
mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.css&action=raw&ctype=text/css'); // Backlink: [[MediaWiki:Edittools.css]]
bot: { link:'Script/bot', order:1 },
mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript'); // Backlink: [[MediaWiki:Edittools.js]]
sysop: { u: 'King', order:2 },
}
chatmoderator: { u: 'Chat Moderator', order:5 },

'blocked': { u: 'Currently blocked', order: 25},
/**
}
* Edit description buttons for the visual editor
*/
mw.hook( 've.activationComplete' ).add( function () {
mw.loader.load( 'ext.gadget.summaryButtons' );
} );

Latest revision as of 09:07, 31 July 2024

// Edittools (do not remove)
if ( [ 'edit' , 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1
	|| mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload'
) {
 mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.css&action=raw&ctype=text/css'); // Backlink: [[MediaWiki:Edittools.css]]
 mw.loader.load('//testwiki.wiki/index.php?title=MediaWiki:Edittools.js&action=raw&ctype=text/javascript'); // Backlink: [[MediaWiki:Edittools.js]]
}

/**
 * Edit description buttons for the visual editor
 */
mw.hook( 've.activationComplete' ).add( function () {
	mw.loader.load( 'ext.gadget.summaryButtons' );
} );