mic_none

User:Plastikspork/admindash.js Source: en.wikipedia.org/wiki/User:Plastikspork/admindash.js

// Adds a link to the admin dashboard
//
// Installation:
// Add the following line to your vector.js (or monobook.js or ...)
// importScript('User:Plastikspork/admindash.js');

mw.loader.using( [ 'mediawiki.util' ], function () {
	var text;
	if ( mw.config.get( 'skin' ) === 'monobook' ) {
		text = 'admin dashboard';
	} else {
		text = 'Admin dashboard';
	}
	mw.util.addPortletLink(
		'p-personal',
		'https://demo.azizisearch.com/lite/wikipedia/page/Template:Admin_dashboard',
		text,
		'pt-admindashboard',
		'Link to admin dashboard',
		'A',
		'#pt-logout'
	);
} );

// [[Category:Wikipedia scripts]]