Template:Reply to/doc
This is a documentation subpage for Template:Reply to. It contains usage information, categories and other content that is not part of the original Template page. |
Uses Lua: |
TNT | This template uses Module:TNT for localisation: |
Usage
This template takes advantage of the user mention notifications to ping the user(s) you are replying to in a discussion (so you don't have to use the {{talkback}} template). It works on any talk page or Project namespace page. It also works on the Support Desk.
This template is particularly helpful in discussions that are not threaded, to indicate which user's comment is referenced. If you feel that this template unnecessarily personalizes the discussion, you may still use the {{talkback}} template on the user's talk page to indicate that you have replied to a comment.
Note that it isn't necessary to use this template to ping (indicate) the user if you are already linking to their username from your post.
Single recipient
To use it, just add something like the following to an existing discussion:
{{reply to|User1}} Message text. ~~~~
For example, ":{{reply to|Jimbo Wales}} Message text.
" displays as:
- @Jimbo Wales: Message text.
The comment must be signed and belong to a section in order for the notification to work.
Multiple recipients
You can reply to up to 50 people at once:
{{reply to|User1|UserII|UserC}} Message text. ~~~~
- @Example1: Message text.
- @Example1 and Example2: Message text.
- @Example1, Example2, and Example3: Message text.
- @Example1, Example2, Example3, and Example4: Message text.
Change punctuation
By default, a colon is appended to the list of users. To change this, pass the p
parameter. For example: {{reply to|User1|p=—}}
"@User1—", and to get rid of the punctuation all together, give no value for p
: {{reply to|User1|p=}}
"@User1".
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Reply to
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Prefix Punctuation | prefix | The prefix punctuation.
| Line | optional |
Conjunction | c | The conjunction between the last two user names.
| Line | optional |
Suffix Punctuation | p | The suffix punctuation.
| Line | optional |
User 1 | 1 | The first user to mention. | User | required |
User 1 Label | label1 | The label for the first user link.
| Line | optional |
User 2 | 2 | The second user to mention. | User | optional |
User 2 Label | label2 | The label for the second user link.
| Line | optional |
User 3 | 3 | The third user to mention. | User | optional |
User 3 Label | label3 | The label for the third user link.
| Line | optional |
User 4 | 4 | The fourth user to mention. | User | optional |
User 4 Label | label4 | The label for the fourth user link.
| Line | optional |
User 5 | 5 | The fifth user to mention. | User | optional |
User 5 Label | label5 | The label for the fifth user link.
| Line | optional |
User 6 | 6 | The sixth user to mention. | User | optional |
User 6 Label | label6 | The label for the sixth user link.
| Line | optional |
User 7 | 7 | The seventh user to mention. | User | optional |
User 7 Label | label7 | The label for the seventh user link.
| Line | optional |
User 8 | 8 | The eighth user to mention. | User | optional |
User 8 Label | label8 | The label for the eighth user link.
| Line | optional |
User 9 | 9 | The ninth user to mention. | User | optional |
User 9 Label | label9 | The label for the ninth user link.
| Line | optional |
User 10 | 10 | The tenth user to mention. | User | optional |
User 10 Label | label10 | The label for the tenth user link.
| Line | optional |
Edit parameter translations
Aliases
- {{ping}}
- {{replyto}}
- {{mention}}
- [autogenerated list of redirects]
Related templates
- {{user link}} – To just link to a single user's page (without the @ sign and colon), use this template.
- {{noping}}
- {{FlowMention}}