Difference between revisions of "MediaWiki:Common.js"

From DE4A
Jump to navigation Jump to search
 
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
  
/* #1 ImageMapEdit script - A graphical tool to determine the coordinates that can be installed on any wiki
+
/* #1 ImageMapEdit script - A graphical tool to determine the coordinates that can be installed on any wiki. ImageMapEdit is an editor for image map definitions as used by Tim Starling's ImageMap extension. It is shown directly within the image description pages. Only Firefox 3.0 or newer and Internet Explorer 7 and 8 are supported */
 
 
ImageMapEdit is an editor for image map definitions as used by Tim Starling's ImageMap extension. It is shown directly within the image description pages. Only Firefox 3.0 or newer and Internet Explorer 7 and 8 are supported */
 
  
 
if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
 
if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
 
mw.loader.load('//imagemapedit.toolforge.org/ime.js');
 
mw.loader.load('//imagemapedit.toolforge.org/ime.js');
 
}
 
}

Latest revision as of 08:54, 25 March 2021

/* Any JavaScript here will be loaded for all users on every page load. */

/* #1 ImageMapEdit script - A graphical tool to determine the coordinates that can be installed on any wiki. ImageMapEdit is an editor for image map definitions as used by Tim Starling's ImageMap extension. It is shown directly within the image description pages. Only Firefox 3.0 or newer and Internet Explorer 7 and 8 are supported */

if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
	mw.loader.load('//imagemapedit.toolforge.org/ime.js');
}