(added optional second parameter to change displayed name) |
m (usa:Template:Username سے 8 نسخے درآمد کیے گئے: Importing Templates from USA) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[User:{{#if:{{{2|}}}<!-- If a second parameter is present | <includeonly>[[User:{{{1|}}}|{{#if:{{{2|}}}<!-- If a second parameter is present | ||
-->|{{{2|}}} | -->|{{{2|}}}<!-- Display second parameter as the visible name | ||
-->|{{{1|}}}<!-- | -->|{{{1|}}}<!-- Otherwise display the username as the visible name | ||
-->}}<!-- end IF | -->}}<!-- end IF | ||
-->|{{{1|}}}]] {{ | -->]] {{small|({{PM|{{{1|}}}|PM}})}} <!-- add rank avatar which links to user profile | ||
--> {{#switch: {{{rank|}}} | |||
| 1 = [[File:Profile_L1.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 3 = [[File:Profile_L3.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 4 = [[File:Profile_L4.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 5 = [[File:Profile_L5.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 6 = [[File:Profile_L6.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| [[File:Profile_L2.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]]}}<!-- add user profile link with image, if no rank is provided the avatar for rank 2 will be used by default. | |||
--></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 12:53, 30 April 2020
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.
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:
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:
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Username | 1 | This must be the Waze username exactly as it appears in the forum, and WME. | User | required |
Display Name (if different from username) | 2 | To change the name displayed put the desired display name here. | String | optional |
Editor Rank | rank | To display the correct avatar for your rank, add the rank parameter with your proper rank.
| Number | suggested |
The above documentation is transcluded from Template:Username/doc. Please add categories to the /doc subpage. Subpages of this template. |