MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
load mediawiki.util
(force load mw.util)
(load mediawiki.util)
Line 7: Line 7:


/* add Templates and Sandbox links to the Toolbox */
/* add Templates and Sandbox links to the Toolbox */
mw.loader.load( 'mw.util' );
 
mw.util.addPortletLink( 'p-tb', '/wiki/Category:Templates', 'Templates', 't-templates', 'Available Templates' );
mw.loader.using(['mediawiki.util']).then(function() {
mw.util.addPortletLink( 'p-tb', '/wiki/Zelda Dungeon Wiki:Sandbox', 'Sandbox', 't-sandbox', 'Sandbox for testing changes' );
mw.util.addPortletLink( 'p-tb', '/wiki/Category:Templates', 'Templates', 't-templates', 'Available Templates' );
mw.util.addPortletLink( 'p-tb', '/wiki/Zelda Dungeon Wiki:Sandbox', 'Sandbox', 't-sandbox', 'Sandbox for testing changes' );
});
 


/* fix word wrapping in ToC by adding 1 pixel to each ul in the ToC */
/* fix word wrapping in ToC by adding 1 pixel to each ul in the ToC */

Navigation menu