Difference between revisions of "Template:UserName/doc"
m (→Usage) |
|||
Line 9: | Line 9: | ||
* If logged in, it will display the current user's name. | * If logged in, it will display the current user's name. | ||
* If not: | * If not: | ||
− | ** <code><nowiki>{{UserName}}</nowiki></code> → Moegirlpe-tan | + | ** <code><nowiki>{{UserName}}</nowiki></code> → Moegirlpe-tan |
− | ** <code><nowiki>{{UserName|Doctor}}</nowiki></code> → Doctor | + | ** <code><nowiki>{{UserName|Doctor}}</nowiki></code> → Doctor |
== Note == | == Note == |
Latest revision as of 08:39, 23 May 2021
This template is used to display the current user's name, but please note that it cannot be used as a parameter or variable of templates other than formatting templates, it should be only used to display user names.
Contents
Parameter
This template can specify an anonymous parameter to display a name when the user is not logged in, the default value is "Moegirlpe-tan".
Usage
- Current
{{UserName}}
→ -[1]
- If logged in, it will display the current user's name.
- If not:
{{UserName}}
→ Moegirlpe-tan{{UserName|Doctor}}
→ Doctor
Note
This template may make readers confused or panicked, so please only use it reasonably and cautiously when necessary, and make annotations appropriately. Do not write offensive words or other inappropriate contents with this template.
In view of the above, there would be an annotation show compulsively to notice readers. You can refer to the Annotation section at the bottom of this documentation.