Template:Ping: Difference between revisions
en.wikipedia.org>Cymru.lass added new code developed at Template:Reply to/sandbox to accept both User:Example and Example as parameters per request on talkpage |
en.wikipedia.org>BullRangifer removed colon per talk page discussion |
||
Line 8: | Line 8: | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
|{{error|Error in replyto template: Username not given. See [[Template:Replyto]] for usage.}} | |{{error|Error in replyto template: Username not given. See [[Template:Replyto]] for usage.}} | ||
}}<noinclude> | }}<noinclude> |
Revision as of 01:01, 14 October 2013
Lua error: bad argument #1 to "get" (not a valid title).
This template is used to link one or more users' names, in the form "@Username:", to trigger a notification for user(s) you are replying to in a discussion. The notification will work successfully only if you sign your post in the same edit in which you use this template. It works on any talk page or Project namespace page.
You cannot directly type the "@" symbol to notify a user of your reply, you must use the template documented here or manually create a wikilink to their user page.
The "@" symbol is used by this template for display purposes only.
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 post on the user's talk page to indicate that you have replied to a comment. IP addresses are only notified if you post to their user talk page.
Usage
Template | Result |
---|---|
{{ping|Example}} |
@Example |
{{ping|Example|John}} |
@Example, John |
Single recipient
Use the following syntax:
{{ping|Username}} Message text. ~~~~
For example,
generates "@Example:" and notifies Example
{{ping|Example}}
Multiple recipient
You can reply to up to 50 people at once. Use the following syntax:
{{ping|User1|User2|User3|User4|User5|User6|User7|User8|User9|User10|...}} Message text. ~~~~
For example, {{ping|Example|John}}
will produce:
Warning: If the total number of detected to-be-pinged users in an edit exceeds 50, no notifications will be delivered. This is a software limit, and applies to the entire edit, even if the mentions are split between multiple templates. If you need to ping more than 50 users, it will need to be spread across multiple edits, and each edit needs to add new lines and be signed by you.
See also
{{#lst:Template:Template list|inline-talk-templates}}