Wikia

Harry Potter Wiki

Guesty-Persony-Thingy

aka Guesty Persony Thingy

72 Edits since joining this wiki
July 23, 2007
Revision as of 14:25, July 28, 2007 by Manticore (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
| User:Guesty-Persony-Thingy

mmm k, put the below code in the MediaWiki:Common.js and it should work. -Pinky


/** Title rewrite ********************************************************
 * Rewrites the page's title, used by Template:Title
 * By Sikon
 */

function rewriteTitle()
{
   if(typeof(SKIP_TITLE_REWRITE) != 'undefined' && SKIP_TITLE_REWRITE)
       return;

   var titleDiv = document.getElementById('title-meta');

   if(titleDiv == null || titleDiv == undefined)
       return;

   var cloneNode = titleDiv.cloneNode(true);
   var firstHeading = getElementsByClass('firstHeading', document.getElementById('content'), 'h1')[0];
   var node = firstHeading.childNodes[0];

   // new, then old!
   firstHeading.replaceChild(cloneNode, node);
   cloneNode.style.display = "inline";

   var titleAlign = document.getElementById('title-align');
   firstHeading.style.textAlign = titleAlign.childNodes[0].nodeValue;
}

addOnloadHook(rewriteTitle, false);

Re:Above^

Yes check DoneJohn Reaves (talk) 04:38, 26 July 2007 (UTC)

Around Wikia's network

Random Wiki