Template:Username: Difference between revisions

From Inkipedia, the Splatoon wiki
No edit summary
mNo edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:
Displays the username of the user viewing the page.
Displays the username of the user viewing the page.


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


'''Use this template sparingly. Misuse of it may result in a ban.'''
'''Use this template sparingly. Misuse of it may result in a ban.'''


For example, the following is ''not'' acceptable: <nowiki>{{USERNAME}}.</nowiki>
For example, the following is ''not'' acceptable: <nowiki>{{USERNAME}} is an idiot.</nowiki>


See also:  
See also:  
Line 16: Line 16:
!Gives
!Gives
|-
|-
|<nowiki>[[Special:Mypage|{{USERNAME}}]]</nowiki>
|<nowiki>[[Special:Mypage|{{Username}}]]</nowiki>
|[[Special:Mypage|{{USERNAME}}]]
|[[Special:Mypage|{{Username}}]]
|-
|-
|<nowiki>[[Special:Mytalk|{{USERNAME}}'s Talkpage]]</nowiki>
|<nowiki>[[Special:Mytalk|{{Username}}'s Talkpage]]</nowiki>
|[[Special:Mytalk|{{USERNAME}}'s Talkpage]]
|[[Special:Mytalk|{{Username}}'s Talkpage]]
|-
|-
|<nowiki>[[Special:Mycontributions|{{USERNAME}}'s Contributions]]</nowiki>
|<nowiki>[[Special:Mycontributions|{{Username}}'s Contributions]]</nowiki>
|[[Special:Mycontributions|{{USERNAME}}'s Contributions]]
|[[Special:Mycontributions|{{Username}}'s Contributions]]
|}
|}


[[Category:Templates]]
[[Category:Inline templates]]
</noinclude>
</noinclude>

Latest revision as of 23:38, 17 November 2022

YourUsername


Displays the username of the user viewing the page.

If the user is not logged in, then the template will display YourUsername. 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.

Use this template sparingly. Misuse of it may result in a ban.

For example, the following is not acceptable: {{USERNAME}} is an idiot.

See also:

Code Gives
[[Special:Mypage|{{Username}}]] YourUsername
[[Special:Mytalk|{{Username}}'s Talkpage]] YourUsername's Talkpage
[[Special:Mycontributions|{{Username}}'s Contributions]] YourUsername's Contributions