<insert name here>

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Xean_Wiki/Template:XWusername/doc to edit this documentation. (How does this work?)

Adds the username of the registered user viewing the page into the page.

Uses Javascript to replace contents in span with viewing username:

<span class="insertusername">Text_will_be_replace_with_username</span>
<you> is the best. <you>'s userpage is good too.

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


This template requires you to add the following to your MediaWiki:Common.js:

/* Replaces {{XWusername}} with the name of the user browsing the page.
   Requires copying Template:XWusername. */

function UserNameReplace() {
    if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;

/* End of the {{XWusername}} replacement */

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.