MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* All JavaScript after this line can be removed. */

importScriptPage('ExternalImageLoader/code.js', 'dev'); $( function {	// loads MediaWiki:Geshi.css on Thread namespace as necessary	// as it's not loaded by default	// @example 	// @todo check if this is needed for Message_Wall too	// @todo submit a bug report for this too	if ( mw.config.get( 'wgNamespaceNumber' ) === 1201 && $( '.mw-geshi' ).length ) {		mw.loader.load( 'ext.geshi.local' );	}	if ( mw.config.get( 'wgAction' ) === 'edit' && mw.config.get( 'wgNamespaceNumber' ) === 0 ) {       // causing some duplication bugs atm, will revisit soon TM        // importScript('MediaWiki:CodeEditor.js');	} } );