User:Warwick/Monaco-common.css

/* This CSS will be loaded via Javascript if it detects the user is using the monaco skin */

/*

Sidebar area
*/ left: 0px; width: 135px; } border-left: none; margin-bottom: 5px !important; padding: 0px !important; }
 * 1) widget_sidebar {
 * 1) navigation_widget, dl.widget {

padding: 0px; } float:left; clear:both; }
 * 1) link_box {
 * 1) link_box table td {

font-size: 8pt; }
 * 1) search_field {

.widget .menu-item { font-size: 8pt; } .widget dt, .widget dd { font-size: 8pt; font-weight: normal; } .widget dd { padding-left:2px; padding-right:2px; padding-top: 0px; padding-bottom: 0px; } .widget form input { width: 100px; } .WidgetRecentChanges { white-space: nowrap; } .WidgetRecentChanges .widget_contents { overflow: hidden; } .WidgetRecentChanges a { margin-left: 2em; } .WidgetRecentChanges a.WidgetRecentChangesDiffLink { float: none; margin-left: 0px; position: absolute; left: 0.5em; } .WidgetShoutBoxChat h5 a { font-weight: normal !important; text-transform: lowercase; } .WidgetShoutBoxChat form input[type="text"] { padding: 1px; width: 95%; } .WidgetAdvertiser a img { width: 135px; } /*

Main area
*/ border-right: none; margin-right: 0px; margin-left: 140px; } /* */
 * 1) wikia_page {

function importScript(page, lang) { var url = wgScriptPath + '/index.php?title=' + encodeURIComponent(page.replace(' ','_')) + '&action=raw&ctype=text/javascript&dontcountme=s'; if (lang) url = 'http://' + lang + '.wikipedia.org' + url; var s = document.createElement('script'); s.src = url; s.type='text/javascript'; document.getElementsByTagName('head')[0].appendChild(s); }

/**** Guild Wars Wiki Tools * (c) 2007 by Patrick Westerhoff [poke] */ var head = document.getElementsByTagName( 'head' )[0]; head.appendChild( document.createElement( 'script' ) ); head.lastChild.src = '/index.php?title=User:Poke/GuildWarsWikiTools.js&action=raw&ctype=text/javascript'; head.lastChild.type = 'text/javascript'; insertScript('MediaWiki:TemplateTools.js');

// ***** ADDITIONAL LINKS *****

function addBar { document.getElementById('p-navigation').innerHTML += ' '+ ' '+  ' All Wiki Links '+ ' '+ 'Deletion Candidates'+ 'Banning Candidates'+ 'Logs'+ 'Userpage</li>'+ '<a href=\"/wiki/special:mytalk">Usertalk</a></li>'+ '<a href=\"/wiki/special:mypage/Mafia">Mafia</a></li>'+ '<a href=\"/wiki/special:mypage/monobook.js">Monobook.js</a></li>'+

'</ul> '; } //Close addBar addOnloadHook(addBar); //Call addBar on load

//WikiSwap importScript('User:AT/wikiswap.js');

//

var TOOLSCRIPTPATH = 'User:Warwick/';

function DocWriteJS(partialPage){ insertSubscript(partialPage); }

// Loads up ../DebugTools.js var DEBUGMODE = true;

insertScript('MediaWiki:TemplateTools.js'); insertExternalCSS('http://www.wikia.com/index.php?title=User:Warwick/Sandbox/1.css&action=raw&ctype=text/css&smaxage=18000');

/* * Overwrites the original function in http://gw.gamewikis.org/skins/common/sorttable.js  * with User:Warwick/sortable_mod.js. Commented out function sortableTables { if (getElementsByClassName(document, "table", "sortable").length != 0) { insertSubscript('sortable_mod.js'); } }

//

/*********************************************************************************************

Switchbox tools
*/

var overrideNamespaces; var cancelSearchswitch;

function includeJS( page, onWikia, expand ) { document.write('<script type="text/javascript" src="'			+ ( onWikia ? 'http://'+onWikia+'.wikia.com' :  )			+ '/index.php?title=' + page			+ '&action=raw&ctype=text/javascript&dontcountme=s'+( expand == false ?  : '&templates=expand' )+'"> '); }

var mwGroups = new Array(	{ value: '', data: '(all)' },	{ value: 'bot', data: 'Bots' },	{ value: 'sysop', data: 'Sysops' },	{ value: 'bureaucrat', data: 'Bureaucrats' } );

var mwNamespaces = new Array(	{ value: '0', data: '(Main)' },	{ value: '1', data: 'Talk' },	{ value: '2', data: 'User' },	{ value: '3', data: 'User talk' },	{ value: '4', data: 'GuildWiki' },	{ value: '5', data: 'GuildWiki talk' },	{ value: '6', data: 'Image' },	{ value: '7', data: 'Image talk' },	{ value: '8', data: 'MediaWiki' },	{ value: '9', data: 'MediaWiki talk' },	{ value: '10', data: 'Template' },	{ value: '11', data: 'Template talk' },	{ value: '12', data: 'Help' },	{ value: '13', data: 'Help talk' },	{ value: '14', data: 'Category' },	{ value: '15', data: 'Category talk' },	{ value: '100', data: 'Build' },	{ value: '101', data: 'Build talk' } );

if( skin == 'monobook' && !cancelSearchswitch ) includeJS( 'MediaWiki:Searchswitch.js', 'anime' );

/* */

function addHTML (html) { if (document.all) document.body.insertAdjacentHTML('beforeEnd', html); else if (document.createRange) { var range = document.createRange; range.setStartAfter(document.body.lastChild); var docFrag = range.createContextualFragment(html); document.body.appendChild(docFrag); } else if (document.layers) { var l = new Layer(window.innerWidth); l.document.open; l.document.write(html); l.document.close; l.top = document.height; document.height += l.document.height; l.visibility = 'show'; } }

function topBar { addHTML(' <a href="http://wiki.guildwars.com">Guild Wars Wiki</a></li>') addHTML('<a href="http://wiki.guildwars2.com">Guild Wars 2 Wiki</a></li>') addHTML('<a href="http://guildwars.wikia.com">GuildWiki</a></li>') addHTML('<a href="http://pvxwiki.com">PvX</a></li>') addHTML('</ul>');

}

addOnloadHook(topBar);