Forum:USERNAME

Hi, guys and I want to address you a problem: when I insert the template USERNAME from wookieepedia to my wiki, it won't work properly and almost always show. It suppose to show the viewer's username! How can you fix it? Mand&#39;alor Skyobiliviator The Devastator 00:33, August 19, 2011 (UTC)


 * You need Wookiepeedia's JS that makes the template work. I believe it's in their Common.js.
 * Then can you make a username template for these sites? Republic Commando wiki and battlefront wiki. Mand&#39;alor Skyobiliviator The Devastator 00:46, August 19, 2011 (UTC)


 * Create a template with  and put   in MediaWiki:Common.js on your wiki.


 * I did this on my own wiki and it shows up as username. It doesn't say my username on any pages. -- 01:03, August 19, 2011 (UTC)


 * You need the js as well as the template.--


 * I added both Js and the template. Another user on the wiki is working on trying to fix it. -- 01:08, August 19, 2011 (UTC)
 * Should it look like this? Mand&#39;alor Skyobiliviator The Devastator 01:10, August 19, 2011 (UTC)
 * Uh, I looked and I got a problem, instead of it saying "Welcome, Anakin Skyobiliviator," my username replacing the, it show "Welcome, username." Mand&#39;alor Skyobiliviator The Devastator 01:19, August 19, 2011 (UTC)

Your template is calling on the wrong class. ;) If you change it to read  instead, the problem should resolve.  The 888th Avatar   (talk)  01:25, August 19, 2011 (UTC)


 * Katbluedog: If the problem is still unresolved on your wiki, would you be able to provide a link to your wiki? That would help us. :) The 888th Avatar   (talk)  01:26, August 19, 2011 (UTC)
 * Problem fixed! Thank you, sir! Mand&#39;alor Skyobiliviator The Devastator 01:27, August 19, 2011 (UTC)


 * The code you gave above worked for me too. Thanks for the help, The 888th Avatar. -- 01:29, August 19, 2011 (UTC)


 * You're welcome. :) The 888th Avatar   (talk)  01:30, August 19, 2011 (UTC)