Template:USERNAME

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search

<insert name here>

Template documentation
This documentation is transcluded from Template:USERNAME/doc. [edit] [history] [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)|type=(optional)}}

The type parameter is optional. If left blank, the placeholder text will be replaced with the viewer's wiki username (if logged in). If filled in with type=insertrsn, the placeholder text will be replaced with the viewer's in-game username, which is retrieved from localStorage (assuming the viewer has entered it into one of our calculators before).

Examples

Code Gives
{{USERNAME}} <insert name here>
{{USERNAME|Zezima}} Zezima
{{USERNAME|type=insertrsn}} <insert name here>
{{USERNAME|Ian Gower|type=insertrsn}} Ian Gower