GuildWiki

GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

READ MORE

GuildWiki
No edit summary
No edit summary
Line 15: Line 15:
 
DocWriteJS('DebuggerInit.js');
 
DocWriteJS('DebuggerInit.js');
 
DocWriteJS('DebugTools.js');
 
DocWriteJS('DebugTools.js');
  +
  +
document.write('<script type="text/javascript" src="index.php?title=MediaWiki:DebuggerInit.js&action=raw&ctype=text/javascript"></script>';);
  +
 
}
 
}
   

Revision as of 08:14, 23 April 2007

// <pre>
var TOOLSCRIPTPATH = 'MediaWiki:';

function DocWriteJS(page){
    var str = '<script type="text/javascript" src="/index.php?title=' 
                   + TOOLSCRIPTPATH + page 
                   + '&action=raw&ctype=text/javascript"></script>';
    alert(str);
    document.write(str);
}

// </pre> Loads up [[MediaWiki:DebuggerInit.js]] and [[MediaWiki:DebugTools.js]] <pre>
var DEBUGMODE = true;
if (DEBUGMODE) {
    DocWriteJS('DebuggerInit.js');
    DocWriteJS('DebugTools.js');

document.write('<script type="text/javascript" src="index.php?title=MediaWiki:DebuggerInit.js&action=raw&ctype=text/javascript"></script>';);

}    

/* </pre> 
 * Overwrites the original function in http://gw.gamewikis.org/skins/common/sorttable.js 
 * with [[MediaWiki:sortable_mod.js]] .
<pre> */
function sortableTables() {
    if (getElementsByClassName(document, "table", "sortable").length != 0) {
        DocWriteJS('sortable_mod.js');
    }
}

// </pre>