Template:USERNAME: Difference between revisions

From Ages of Conflict
Content added Content deleted
(Created page with "<span class="insertusername">{{{1|Chief}}}</span><noinclude>Category:User templates ---- Displays the username of the user viewing the page. If the user is not logged in, then the template will display "Chief" by default. 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 b...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="insertusername">{{{1|Chief}}}</span><noinclude>[[Category:User templates]]
<span class="InputUsername explain" title="Your username was inserted automatically with {<nowiki/>{USERNAME}}.">{{{1|user}}}</span><noinclude>
{{documentation}}
----
[[Category:Templates]]</noinclude>

Displays the username of the user viewing the page.

If the user is not logged in, then the template will display "Chief" by default. 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.'''

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

See also:
{| class="wikitable" cellpadding="3" width="66%"
|+
!Code
!Gives
|+
|<nowiki>[[Special:Mypage|{{USERNAME}}]]</nowiki>
|[[Special:Mypage|{{USERNAME}}]]
|+
|<nowiki>[[Special:Mytalk|{{USERNAME}}'s talkpage]]</nowiki>
|[[Special:Mytalk|{{USERNAME}}'s talkpage]]
|+
|<nowiki>[[Special:Mycontributions|{{USERNAME}}'s Contribs]]</nowiki>
|[[Special:Mycontributions|{{USERNAME}}'s Contribs]]
|}

This is from the source of CoC Wiki,{{SITENAME}} has no credit in it.

Latest revision as of 17:28, 19 November 2023

user