User:Iritscen/vector.js: Difference between revisions
Jump to navigation
Jump to search
(testing search-focus code, taken from https://en.wikipedia.org/wiki/MediaWiki:Gadget-searchFocus.js) |
m (+cat) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
{ | { | ||
mw.loader.load('/w/index.php?title=User:Iritscen/TestSpace.js&action=raw&ctype=text/javascript'); | mw.loader.load('/w/index.php?title=User:Iritscen/TestSpace.js&action=raw&ctype=text/javascript'); | ||
} | } | ||
Line 21: | Line 12: | ||
ModifySidebar("add", "navigation", "Slaves of War", "http://wiki.oni2.net/Oni2:Slaves_of_War"); | ModifySidebar("add", "navigation", "Slaves of War", "http://wiki.oni2.net/Oni2:Slaves_of_War"); | ||
});*/ | });*/ | ||
/*[[Category:Userspace]]*/ |
Latest revision as of 15:12, 8 April 2023
// Use test JS if we're on a test page if (mw.config.get('wgPageName') === 'User:Iritscen/TestSpace' || mw.config.get('wgPageName') === 'User:Iritscen/TestSpace2') { mw.loader.load('/w/index.php?title=User:Iritscen/TestSpace.js&action=raw&ctype=text/javascript'); } // This code is disabled but left in place since it is referred to on [[MediaWiki:Common]] // Add handy links to my sidebar /*$(function() { ModifySidebar("sep", "navigation", "", ""); ModifySidebar("add", "navigation", "Slaves of War", "http://wiki.oni2.net/Oni2:Slaves_of_War"); });*/ /*[[Category:Userspace]]*/