Difference between revisions of "MediaWiki:Common.js"

From Melissa Data Wiki
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. */


importScript('MediaWiki:' + wgPageName + '.js'); //This loads a js file for the page with the same name.
/* importScript('MediaWiki:' + wgPageName + '.js'); //This loads a js file for the page with the same name. */
 
mw.loader.load( '/index.php?title=MediaWiki:' + mw.config.get('wgPageName') + '.js&action=raw&ctype=text/javascript' );

Latest revision as of 19:34, 30 April 2021

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

/* importScript('MediaWiki:' + wgPageName + '.js'); //This loads a js file for the page with the same name. */

mw.loader.load( '/index.php?title=MediaWiki:' + mw.config.get('wgPageName') + '.js&action=raw&ctype=text/javascript' );