MediaWiki:Gadget-Less.js: Difference between revisions

From Old School Near-Reality Wiki
Jump to navigation Jump to search
(try again)
No edit summary
 
Line 1: Line 1:
/*
MediaWiki:Gadget-Less.js
*/
window.lessTargets = [
window.lessTargets = [
     // globals
     // globals
Line 17: Line 14:
mw.loader.load( '//near-reality.wiki/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' )
mw.loader.load( '//near-reality.wiki/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' )
}
}
mw.loader.state({
    "ext.gadget.Less": "ready"
});

Latest revision as of 21:49, 4 October 2022

 1 window.lessTargets = [
 2     // globals
 3     'MediaWiki:Common.css',
 4     'MediaWiki:Kartographer.css',
 5     'MediaWiki:Minerva.css',
 6     'MediaWiki:Test.css',
 7     'MediaWiki:Vector.css',
 8     'MediaWiki:Vector-darkmode.css',
 9     // gadgets
10     'MediaWiki:Gadget-toplinksDropdown.css',
11 ]
12 
13 if ( window.lessTargets.includes( mw.config.get( 'wgPageName' ).replace(new RegExp('\.less$'),'.css' ) ) ) {
14 	mw.loader.load( '//near-reality.wiki/w/MediaWiki:Gadget-Less-core.js?action=raw&ctype=text/javascript' )
15 }