Jump to content

User:NQ/sandbox.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
mw.loader.using( 'mediawiki.util', function () {
	
	$(function() {
	 var dropdown = '<div id="p-dropdown" class="vectorMenu">' + '<h3>' + '<span>' + "Drop Down Menu name goes here" + '</span>' + '<a href="#"></a>' + '</h3>' + '<div class="menu"><ul></ul></div></div>';
       	 $(dropdown).insertAfter( $('#p-cactions') );
    	
        //mw.util.addPortletLink('p-dropdown', mw.util.getUrl('Wikipedia Shortcut'), "Name");
		mw.util.addPortletLink('p-dropdown', mw.util.getUrl('WP:BN'), "BN");
		mw.util.addPortletLink('p-dropdown', mw.util.getUrl('WP:RFAR'), "ARB/R");
		mw.util.addPortletLink('p-dropdown', mw.util.getUrl('WP:PERM'), "PERM");
	});
});