MediaWiki:Monaco.js

function ShoutboxNotice { $(' Also try the IRC channel ').prependTo('#widget_302_content'); }

addOnloadHook( ShoutboxNotice );

/////////////////////////////////////////////////////

$(function { // my super function for properly organizing content and fiction  if ( var wgUserName == 'Ose' ) { //check namespace

var wgTitleLastPart = wgTitle.split('/').slice(-1)[0] //get the "last" part of the pagename, the title var wgPageNameFirstPart = wgPageName.split('/')[0] //get the full basepage name var basepageURL = '/index.php?title=' + encodeURIComponent(wgPageNameFirstPart) + '&action=render'; //get the render url of the base page

$('h1.firstHeading').html(wgTitleLastPart); //change title to last pagename

$(' ').appendTo('#page_bar'); //add the content-banner to the page

$(' .').prependTo('#content-banner'); //add container for title $(' .').appendTo('#content-banner'); //add container for blurb $(' .').appendTo('#content-banner'); //add temp container for image

$('#title-container').load(basepageURL + ' .banner_title'); //get title, add it   $('#blurb-container').load(basepageURL + ' .banner_blurb'); //get blurb, add it    $('#image-container').load(basepageURL + ' .banner_image'); //get image, add it

var imageURL = $('.banner_image img').attr('src'); //set image url to variable

$('#content-banner').css('background-image', 'url(' + imageURL + ')'); //set bg to url

$('#image-container').remove; //remove image

} //end if }); //end function