Template:USERNAME

Revision as of 08:26, 2 June 2020 by Banri (talk | contribs) (Created page with "<span class="{{{type|insertusername}}}">{{{1|<insert name here>}}}</span><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<insert name here>

Template documentation
This documentation is transcluded from Template:USERNAME/doc. [edit] [purge]


{{USERNAME}} displays the username of the user viewing the page. It relies on MediaWiki:Gadget-Username.js.

If the user is not logged in, then the template will display <insert name here>. You can control the text by adding a parameter to the template with a value of the default text. For example, {{USERNAME|foo}} outputs "foo" if the user viewing it is not logged in.

Usage

{{USERNAME|fallback (optional)}}

The type parameter is optional. If left blank, the placeholder text will be replaced with the viewer's wiki username (if logged in).

Examples

Code Gives
{{USERNAME}} <insert name here>
{{USERNAME|Zezima}} Banri