Information icon This is a documentation subpage for Template:USERNAME (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Displays the username of the user viewing the page.

If the user is not logged in, then the template will display <insert name here>. You can control this by adding a parameter to the template with a value of the default text. For example, {{USERNAME|foo}} outputs "foo" if the user is not logged in.


Code Gives
[[Special:Mypage|{{USERNAME}}]] <insert name here>
[[Special:Mytalk|{{USERNAME}}'s talkpage]] <insert name here>'s talkpage
[[Special:Mycontributions|{{USERNAME}}'s Contribs]] <insert name here>'s Contribs

Community content is available under CC-BY-SA unless otherwise noted.