Template:Username/doc View history

(added info on rank template data, and updated documentation)
m (included template data)
 
Line 40: Line 40:
[[Category:Templates]]
[[Category:Templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>


<templatedata>
<templatedata>
Line 68: Line 66:
}
}
</templatedata>
</templatedata>
</includeonly>

Latest revision as of 15:22, 28 August 2016

This is a documentation subpage for Template:Username.
It contains usage information, categories and other content that is not part of the original template 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 [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:

DISPLAY_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:

Bob Smith (PM [Help])