Template:USERNAME: Difference between revisions

From Ages of Conflict
Content added Content deleted
m (Cosmoj0sh moved page Template:Username to Template:USERNAME without leaving a redirect)
No edit summary
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>

<span class="InputUsername explain" title="Your username was inserted automatically with {<nowiki/>{USERNAME}}.">{{{1|user}}}</span><noinclude>
Displays the username of the user viewing the page.
{{documentation}}

[[Category:Templates]]</noinclude>
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.

Revision as of 02:04, 19 November 2023

user

user