User:Iritscen/vector.js: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(load test JS in either test page)
m (+cat)
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
// Load XEB to augment the editing toolbar; see [[XEB]] for documentation
// Use test JS if we're on a test page
// The onlyinclude and pre tags below allow me to transclude the enclosed code onto the XEB docs page
if (mw.config.get('wgPageName') === 'User:Iritscen/TestSpace' || mw.config.get('wgPageName') === 'User:Iritscen/TestSpace2')
//<onlyinclude><pre>
if (wgAction == "edit" || wgAction == "submit" || wgPageName == "Special:Upload")
{
{
   XEBOrder="0,1,U,S,F,I1,I2,J1,J2,D,C,D1,4,A,R1,R2,2,3,K,T,Y1,Y2,Z,E,5,AI,G,8,P,T1,O,H,FS,9,V,N,B";
   mw.loader.load('/w/index.php?title=User:Iritscen/TestSpace.js&action=raw&ctype=text/javascript');
}


  //myButtons=[];
// 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");
});*/


  importScript('MediaWiki:Common.js/edit.js');
/*[[Category:Userspace]]*/
}//</pre></onlyinclude>
 
if (wgPageName == "User:Iritscen/TestSpace" || wgPageName == "User:Iritscen/TestSpace2")
{
    importScript("User:Iritscen/TestSpace.js")
}

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]]*/