Template:Username View history

Revision as of 20:43, 19 August 2014 by PesachZ (talk | contribs) (added optional second parameter to change displayed name)
Documentation icon Template documentation[view] [edit] [history] [purge]

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 [Help])

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:

[[User:DISPLAY_NAME display second parameter

-->|WAZE_USER_NAME]] (PM [Help])

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:

[[User:Bob Smith display second parameter

-->|bsmitty29]] (PM [Help])

This template accepts a username, rank, and returns different results depending upon the optional second parameter. 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.

Template parameters

ParameterDescriptionTypeStatus
Username1

This must be the Waze username exactly as it appears in the forum, and WME.

Userrequired
Display Name (if different from username)2

To change the name displayed put the desired display name here.

Stringoptional
Editor Rankrank

To display the correct avatar for your rank, add the rank parameter with your proper rank.

Default
2
Numbersuggested
The above documentation is transcluded from Template:Username/doc.
Please add categories to the /doc subpage.
Subpages of this template.