Board Thread:Support Requests - Getting Technical/@comment-27028628-20160706021129/@comment-24055022-20160706022217

First, you make it's documentation, Template:USERNAME/doc and add this code to it:

Adds the username of the registered user viewing the page into the page, so that with the sentences:
 * You is the best. Userpage 's userpage is good too.

The user reading will always see a compliment directed toward them and their userpage, no matter who they are.

Second, you make Template:USERNAME and add this code to it:

And finally, you add this code to your wiki's Common.js:

function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName === null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

Make sure you test it to make sure it's working, then send it off for review. I hope that helps!