MediaWiki:BracketRedirect

 if (typeof wgUserName == "undefined") { redirectToBlog; } else if(wgUserName) { redirectToBracket(wgUserName); } else { redirectToBlog; }

function redirectToBlog { window.location = '/wiki/Wookieepedia_Contests:Predict_the_Madness?useskin=oasis&bracketSubmit=You+have+not+created+a+bracket.+Please+make+sure+you+are+logged+in.'; }

function redirectToBracket(username) { window.location = '/wiki/Bracket:' + wgUserName + '?useskin=oasis'; }