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=" |
<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
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |