Szablon:Username/doc Wyświetl historię

This is a documentation subpage for Szablon:Username.
It contains usage information, categories and other content that is not part of the original szablon page.

This template accepts a username, rank, and returns different results depending upon the optional second parameter.

Usage

Place {{Username|NAME_OF_USER|rank=3}} on a page where one of the desired outputs is desired. The default output is the username as a hyperlink to the users' page in the Wazeopedia, followed by a private message link, and a rank avatar linked to their Editor User Profile.

WazeUserName (PM)  

Parameters

|USERNAME - The first unnamed parameter must be the Waze username exactly as it appears in the forum, and WME.


The following optional parameters can be passed after the username to modify the output:

|desired display name - To change the name displayed put the desired display name as the second unnamed parameter after the username, separated by a pipe character (|). NOTE: this is not necessary if you want your proper username to be displayed.
|rank=3 - To display the correct avatar for your rank, add the rank parameter with your proper rank. NOTE: If no rank is provided the default avatar displayed will be for rank 2.

Examples

{{Username|WAZE_USER_NAME|DISPLAY_NAME}}

Will produce:

DISPLAY_NAME (PM)  

This is useful if you want to display your real name, but still want to be able to receive Personal Messages which require your Waze Username. For example if Bob Smith has a username bsitty29 he might use this to display his real name on a page but still link to his user page and PM.

{{Username|bsmitty29|Bob Smith|rank=4}}

Produces:

Bob Smith (PM)