Forum:How to make a "USERNAME" Template?

Okay, so i have recently been trying to make a USERNAME template for The Call of Duty Wiki, trying to make it like the one on Wookieepedia but everytime I try it, it doesn't work. Could I have some help on this please? CodExpert18:44, May 21, 2010 (UTC)
 * You need some js:

// ============================================================ // UserNameReplace // ============================================================ function UserNameReplace { if (typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);. Add that to your MediaWiki:Common.js.  Manyman  Talk  01:32, May 22, 2010 (UTC)