Template:Username/doc View history

(fixed category)
(added doc for second parameter)
Line 11: Line 11:
The following parameters can be passed after the username to return these additional links:
The following parameters can be passed after the username to return these additional links:


(NOTE: Currently no other parameters have been defined yet.)
To change the name displayed put the desired display name after the username, separated by a pipe character (|).


{|class="wikitable"
{{tl|Username|WAZE_USER_NAME|DISPLAY_NAME}}
! Parameter
 
! Output
Will produce:
|-
 
| (none)<br/>default
{{Username|WAZE_USER_NAME|DISPLAY_NAME}}
| {{Username|WazeUserName}}
 
|-
This is usefull 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 id 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.
|
 
|
{{tl|Username|bsmitty29|Bob Smith}}
|}
 
Produces:
 
{{Username|bsmitty29|Bob Smith}}





Revision as of 03:04, 20 August 2014

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 and returns different results depending upon the optional second parameter.

Usage

Place {{Username}} on a page where one of the desired outputs is desired. The default output is a hyperlink to a user name with a private message link.

WazeUserName (PM [Help])  

Parameters

The following parameters can be passed after the username to return these additional links:

To change the name displayed put the desired display name after the username, separated by a pipe character (|).

{{Username}}

Will produce:

DISPLAY_NAME (PM [Help])  

This is usefull 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 id 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}}

Produces:

Bob Smith (PM [Help])