Template:UserName/doc

From Moegirlpedia
< Template:UserName
Revision as of 08:39, 23 May 2021 by GuoPC (talk | contribs) (Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.