MediaWiki:Monobook.js: Difference between revisions

From Halopedia, the Halo wiki

(moving stuff to Common.js)
No edit summary
Line 51: Line 51:
ta['ca-nstab-help'] = new Array('c','View the help page');
ta['ca-nstab-help'] = new Array('c','View the help page');
ta['ca-nstab-category'] = new Array('c','View the category page');
ta['ca-nstab-category'] = new Array('c','View the category page');
if (matches && matches[1].indexOf("Editing") == -1)
{
skinName = matches[1];
document.write('<style type="text/css">/*<![CDATA[*/ @import "/index.php?title=' + skinName + '/monobook.css' + '&action=raw&ctype=text/css"; /*]]>*/</style>');
document.write('<script type="text/javascript" src="/index.php?title=MediaWiki:Skin/' + skinName + '/monobook.js' + '&action=raw&ctype=text/javascript"></script>');
}
if (window.location.href.indexOf("printable=yes") != -1)
{
document.write('<style type="text/css">/*<![CDATA[*/ @import "/index.php?title=MediaWiki:PrintableTweaks.css&action=raw&ctype=text/css"; /*]]>*/</style>');
}
// onload stuff
function loadFunc()
{
document.getElementById('searchform').getElementsByTagName('a')[0].href = "http://halo.wikia.com/index.php?title=Special:Search&adv=1";
if(document.getElementById('infoboxinternal') != null)
{
document.getElementById('infoboxend').innerHTML = '<a id="infoboxtoggle" href="javascript:infoboxToggle()">[Hide]</a>';
}
fillEditSummaries();
fillDeleteReasons();
if(typeof onPageLoad != "undefined")
{
onPageLoad();
}
}