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', '/wiki/Template:Admin_dashboard', text, 'pt-admindashboard', 'Link to admin dashboard', 'A', '#pt-logout' ); } );

//