Difference between revisions of "Modèle:PrivateMessage/doc"

From Wazeopedia
(replace stand-alone transclusion by redirection)
(Page créée avec « {{doc subpage}} This template provides a private message link to a username. It is designed to go on user pages. == Usage == Place {{tl|PrivateMessage}} on a user page.... »)
 
Line 1: Line 1:
#REDIRECT [[Development plans and priorities]]
+
{{doc subpage}}
 +
This template provides a private message link to a username. It is designed to go on user pages.
 +
 
 +
== Usage ==
 +
Place {{tl|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:
 +
 
 +
<pre>
 +
{{PrivateMessage
 +
| username    = user name for the private message
 +
}}
 +
</pre>
 +
 
 +
== 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 ==
 +
{{tl|PrivateMessage|}} will generate the following on FastWazer's user page:
 +
{{PrivateMessage|username=FastWazer}}
 +
 
 +
 
 +
{{tl|PrivateMessage|username{{=}}FastWazer}} will generate the following on any page:
 +
{{PrivateMessage|username=FastWazer}}
 +
 
 +
 
 +
== Category added ==
 +
No category is added to pages with this template.
 +
 
 +
== See also ==
 +
* {{tl|mbox}}
 +
 
 +
<includeonly>
 +
<!-- ADD CATEGORIES BELOW THIS LINE -->
 +
[[Category:Mbox templates]]
 +
[[Category:Communication templates]]
 +
 
 +
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 +
</includeonly>

Latest revision as of 10:38, 23 February 2017

This is a documentation subpage for Modèle:PrivateMessage.
It contains usage information, categories and other content that is not part of the original modèle page.

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:

FastWazer peut être contacté par message privé.


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

FastWazer peut être contacté par message privé.


Category added

No category is added to pages with this template.

See also