Thread:Phantomlink959/@comment-24055022-20160923190748

Hey, you left chat before I could give the coding for

Anyway, create a page, title it Template:USERNAME/doc, and add this 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.

Create another page, title it Template:USERNAME, and put this code in it:

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

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

After you Publish the js code, press Enter Test Mode on the right side, go to your profile, and type to make sure it's working. If it is, go back to MediaWiki:Common.js and send the code for review, under where you press Enter Test Mode. I hope that helps! 