Forum:How to use Template:USERNAME?

Everytime I use this template on my wiki, it only displays " ". I want to know how to change the " " into this. Thanks. The Fan  of Wiki  05:53, June 7, 2012 (UTC)
 * You should be able to just type without needing a template, however it does show if you're not logged in. That said, this might work:

< is the best. 's userpage is good too.
 * Try that in the template and see what happens. —ฬ ђ tคlк 05:57, June 7, 2012 (UTC)


 * My mistake, I was under the assumption that is a MediaWiki keyword. To make it work add this to the MediaWiki:Common.js file on your wiki:

 /* Username replace feature * Inserts viewing user's name into * Put text inside the spans to be viewed by logged out users * Originally by Splarka, then by Spang, * This (jQuery) version by wikia:User:Joeyaa, written to be backwards compatible */ if (wgUserName != 'null') { $('.insertusername').html(wgUserName); }
 * —ฬ ђ tคlк 06:00, June 7, 2012 (UTC)


 * Wogan is correct. It requires javascript to do. The JS adds the user's name in place of the default text. You can change his further to add something for anons too (IE, "anonymous user" instead of "Insert name here").
 * Edit: Ahh, that code takes into consideration for anons. Just add anonymous user to do that. Rappy 06:03, June 7, 2012 (UTC)

For Registered Users
How about registered users' usernames? Sorry if I don't mentioned this earlier. The Fan  of Wiki  07:08, June 7, 2012 (UTC)


 * The javascript is for registered users. What's there by default is for anonymous users. Rappy 21:06, June 7, 2012 (UTC)

Okay, Thanks for the help. I figured it out. :) The Fan  of Wiki  01:48, June 8, 2012 (UTC)