MediaWiki:Common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
addPortletLink -> mw.util.addPortletLink
(importScript -> mw.loader.load)
(addPortletLink -> mw.util.addPortletLink)
Line 8: Line 8:


/* add Templates and Sandbox links to the Toolbox */
/* add Templates and Sandbox links to the Toolbox */
addPortletLink( 'p-tb', '/wiki/Category:Templates', 'Templates', 't-templates', 'Available Templates' );
mw.util.addPortletLink( 'p-tb', '/wiki/Category:Templates', 'Templates', 't-templates', 'Available Templates' );
addPortletLink( 'p-tb', '/wiki/Zelda Dungeon Wiki:Sandbox', 'Sandbox', 't-sandbox', 'Sandbox for testing changes' );
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 */