Template:DW/USERNAME
Template page
More actions
<insert name here>
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:DW/USERNAME/doc
The above text is transcluded from Template:DW/USERNAME/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/USERNAME/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/USERNAME/doc. (View all subpages of this page.)
{{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
| Code | Gives |
|---|---|
| [[Special:MyPage|{{USERNAME}}]] | [[Special:MyPage|Template:USERNAME]] |
| [[Special:MyTalk|{{USERNAME}}'s talkpage]] | [[Special:MyTalk|Template:USERNAME's talk page]] |
| [[Special:MyContributions|{{USERNAME}}'s Contribs]] | [[Special:MyContributions|Template:USERNAME's contribs]] |