MediaWiki:Common.js: Difference between revisions

From Melissa Data Wiki
Jump to navigation Jump to search
Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: importScript('MediaWiki:' + wgPageName + '.js');"
 
No edit summary
 
(One intermediate revision by the same user not shown)
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');
/* 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' );