Template:DW/USERNAME/doc
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [create]
- This template doesn't have any documentation yet! Help out by writing some. There may also be documentation on Wikia Templates which can be copied.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/USERNAME/doc/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/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]] |