Template:USERNAME/doc
{{USERNAME}}
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 the text displayed by adding a parameter to the template with a value of the default text. For example, {{USERNAME|foo}}
outputs "foo" if the user viewing it is not logged in.
Examples[edit source]
Code | Gives |
---|---|
[[Special:Mypage|{{USERNAME}}]] | <insert name here> |
[[Special:Mytalk|{{USERNAME}}'s talkpage]] | <insert name here>'s talk page |
[[Special:Mycontributions|{{USERNAME}}'s Contribs]] | <insert name here> contribs |