Forum:Why won't these templates work on my wiki?

Hello, I am Pikapi, and I have yet another question. I was browsing Wookiepedia when I found two templates, Template:USERNAME and Template:Title. I tried putting them on my wiki but they didn't work. Can someone tell me why, or add a working one to Communipedia for me? -- " PiKaPi  talk   blog  20:51, July 2, 2010 (UTC)
 * They require you to add code to w:c:communipedia:MediaWiki:Common.js. -- 20:54, July 2, 2010 (UTC)
 * Hiya! Yep, Pcj is right. Check out the template pages at the Templates wiki for help: w:c:templates:Template:Title and w:c:templates:Template:USERNAME. These should get it working ;). Mark  ( talk ) 20:58, July 2, 2010 (UTC)

The title thing still doesn't work... -- " PiKaPi  talk   blog  22:08, July 2, 2010 (UTC) So can someone please help me out with this. Is it because I have that subtitle saying "From Communipedia, the Wiki-Styled Online Community"?


 * Please explain in detail exactly what you want to do. It sounds like you though the two templates mentioned above would do what you wanted, but if they are the reason we can't help you even if they work. -- Fandyllic  (talk &middot; contr) 9:31 AM PST 11 Jul 2010

I already have the USERNAME template thing figured out, but the Title templates don't work at all. -- " PiKaPi  talk   blog  16:43, July 11, 2010 (UTC)


 * I did some investigation and I don't think this template works anymore (or the Javascript is broken). The template is supposed to be used on w:c:templates:Template:Title/doc and I added the JS code to my w:c:templates:Special:MyPage/monaco.js which should make it work, but it doesn't. The template may use CSS classes or ids that are no longer in the Monaco skin.
 * Maybe you should contact Mark who said he fixed it once. -- Fandyllic  (talk &middot; contr) 9:57 AM PST 11 Jul 2010
 * Not sure what the problem is... I'm probably missing some JavaScript (wasn't written by me). I'll check it out. Mark  ( talk ) 19:54, July 11, 2010 (UTC)
 * Anybody with JavaScript experience around who can fix it? Mark  ( talk ) 20:02, July 11, 2010 (UTC)

Well it works on Wookipedia, but I don't know which part of Wookipedia's Common.js it is in...-- " PiKaPi  talk   blog  23:49, July 11, 2010 (UTC)

Soooo... can anyone help... --  Chris  talk   blog  16:55, July 15, 2010 (UTC)


 * Well it doesent appear to work on the templates wiki anyway (if it does what i think is supposed to). I did wonder if its designed to be used on a transcluded page as you are using it or is it supposed to be directly on the page it is used on ?
 * Sorry canot help as any more as I cannot be bothered to go searching for the one at wookipedia to look at how that one works if you cannot link to were you found it. And whats with everybody hiding behind different names from their Username ? - BulldozerD11 21:02, July 15, 2010 (UTC)

So nobody who is familiar with Javascript can just isolate the coding from Wookiepedia and give it to me!? --  Chris  talk   blog  16:57, July 19, 2010 (UTC)


 * Looks like this could be it from a quick scan down the common,JS at Starwars wikia rurned up this code,  but I dont know anything about JS to fix any problems with it.

// ============================================================ // BEGIN JavaScript title rewrite -- jQuery version by Grunny

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

if( $('#title-meta').length == 0 ) { return; }

var newTitle = $('#title-meta').html; $('.firstHeading').html(' ' + newTitle + ' '); $('.firstHeading').attr('style','text-align:' + $('#title-align').html + ';'); }

function showEras(className) { if( typeof( SKIP_ERAS ) != 'undefined' && SKIP_ERAS ) return;

var titleDiv = document.getElementById( className );

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

var cloneNode = titleDiv.cloneNode(true); var firstHeading = getFirstHeading; firstHeading.insertBefore(cloneNode, firstHeading.childNodes[0]); cloneNode.style.display = "block"; } // END JavaScript title rewrite
 * A link to the site would have been useful as a search for wookipedia turns up several wikis non actualy called wookipedia But starwars wikia is apparently wookipedia ! - BulldozerD11 18:51, July 19, 2010 (UTC)


 * This has been a problem for awhile. I believe wookieepedia.com (notice the 2nd 'e') redirects to starwars.wikia.com. Unfortunately, wookiepedia.com goes to a Star Wars merchandise site. Very confusing. -- Fandyllic  (talk &middot; contr) 5:48 PM PST 19 Jul 2010

It doesn't work either. --  Chris  talk   blog  20:02, July 20, 2010 (UTC)


 * What is "It"? -- Fandyllic  (talk &middot; contr) 1:13 PM PST 20 Jul 2010
 * Does your wiki have jQuery installed? jQuery is a javascript toolkit that that code sayins it needs. -- 00:22, July 21, 2010 (UTC)