Template:USERNAME/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 22:46, 11 October 2024 (Created page with "{{documentation}} __NOEDITSECTION__ {{t|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, <code><nowiki>{{USERNAME|foo}}</nowiki></code> outputs "foo" if the user viewing it is not logged in. ===Examples=== {| class="wikitable" cellpadding="3" width="66%" |+..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:USERNAME.
It contains usage information, categories, and other content that is not part of the original template 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}}]] <insert name here>
[[Special:MyTalk|{{USERNAME}}'s talkpage]] <insert name here>'s talk page
[[Special:MyContributions|{{USERNAME}}'s Contribs]] <insert name here>'s contribs