MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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' );