Template:PrivateMessage View history

(Created template)
 
(Additional coding)
Line 2: Line 2:
| type  = mail
| type  = mail
| style = background: #CFECEC;
| style = background: #CFECEC;
| text  = This user can be reached by  
| text  = {{#if: {{{username|}}}
[http://www.waze.com/forum/ucp.php?i=pm&mode=compose&subject={{{subject}}}&username={{{username}}} private message].
    | This user can be reached by  
[http://www.waze.com/forum/ucp.php?i=pm&mode=compose&subject=A%20Wiki%20Question&username={{{username}}} private message].
    | {{red|Username not specified.}}
    }}
}}<!--This category is for the page on which this template will get transcluded
}}<!--This category is for the page on which this template will get transcluded
--><includeonly>[[Category:Construction]]</includeonly><!--
--><includeonly>[[Category:Construction]]</includeonly><!--


--><noinclude>{{doc}}</noinclude><!-- Code flow
--><noinclude>{{doc}}</noinclude>
 
| text  = This user can be reached by [<1--
    {#ifeq
 
 
 
 
| text  = This user can be reached by [http://www.waze.com/forum/ucp.php?i=pm&mode=compose&subject={{{subject}}}&username={{{username}}} private message].
   
-->

Revision as of 20:51, 15 May 2014

Username not specified.
Documentation icon Template documentation[view] [edit] [history] [purge]

This template provides a private message link to a username. It is designed to go on user pages.

Usage

Place {{PrivateMessage}} on a user page. When on a user page, it will automatically identify the username to be used in the private message link. The subject of the private message will be populated with "A Wiki Question" and can be changed in the Private Message

Alternately, the following optional variables can be used to adjust the generic message:

{{PrivateMessage
| username    = user name for the private message
}}

Parameters

username

Optional parameter listing the user name for the private message. When the template is placed on a user's page, this parameter is not required. It can be used to create a private message link to a user when the template is not on the user page.

Currently if a user name has a space or underline in the middle of it, it has to be manually entered with the username parameter using an underline character. In theory this may be able to be fixed in the template itself.

Example

{{PrivateMessage}} will generate the following on FastWazer's user page:

This user can be reached by private message.


{{PrivateMessage}} will generate the following on any page:

This user can be reached by private message.


Category added

No category is added to pages with this template.

See also

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