Difference between revisions of "Template:UserName/doc"

From Moegirlpedia
Jump to: navigation, search
(Created page with "{{UserName}}")
 
Line 1: Line 1:
{{UserName}}
+
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.
 +
 
 +
== 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:
 +
: <code><nowiki>{{UserName}}</nowiki></code> → {{UserName}}
 +
* If logged in, it will display the current user's name.
 +
* If not:
 +
** <code><nowiki>{{UserName}}</nowiki></code> → Moegirlpe-tan.
 +
** <code><nowiki>{{UserName|Doctor}}</nowiki></code> → 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.
 +
 
 +
== Annotation ==
 +
<references /><noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 10:18, 22 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.

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.

Annotation

  1. Tip: This is your user name displayed automatically by the {{UserName}} template.