MediaWiki:Common.js/ExtraTools.js

(function(mw, $) {	window.add_toolbox_link = function(action, name, id) {		var $tools = $('#p-tb ul');		if ( !$tools.length ) return;		if (typeof action === "string") {			$tools.append('' + name + '');		} else if (typeof action === "function") {			$('' + name + '').appendTo($tools).click(action);		}	};	mw.hook('wikibooks.panels.tools').fire(mw, $); })(mediaWiki, jQuery);