Predefinição:USERNAME

De RuneScape Wiki
Ir para: navegação, pesquisa

<inserir nome aqui>

Documentação da predefinição
Esta documentação é transcluída de Predefinição:USERNAME/doc. [editar] [atualizar]


{{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}} <inserir nome aqui>
{{USERNAME|Zezima}} Zezima
{{USERNAME|type=insertrsn}} <inserir nome aqui>
{{USERNAME|Ian Gower|type=insertrsn}} Ian Gower