Template:Ping: Difference between revisions
en.wikipedia.org>Technical 13 Also results in a much larger template transclusion size when used multiple times on one page (like noticeboards), which crashes pages and causes chaos. Let's discuss it! |
en.wikipedia.org>Technical 13 Undid revision 583449283 for inclusion size testing to see which one is actually better (yeah, probably should have used sandbox, but over half the data is already done.. Won't take long and not a lot of effect on most pages.) |
||
Line 1: | Line 1: | ||
{{ | {{<includeonly>safesubst:</includeonly>#if:{{{1|<noinclude>$</noinclude>}}} | ||
|@[[:User:{{ | |@[[:User:{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{1|Example}}}}}|{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{1|Example}}}}}]]{{<includeonly>safesubst:</includeonly>#if:{{{2|}}} | ||
|, [[:User:{{ | |, [[:User:{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{2|Example}}}}}|{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{2|Example}}}}}]]{{<includeonly>safesubst:</includeonly>#if:{{{3|}}} | ||
|, [[:User:{{ | |, [[:User:{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{3|Example}}}}}|{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{3|Example}}}}}]]{{<includeonly>safesubst:</includeonly>#if:{{{4|}}} | ||
|, [[:User:{{ | |, [[:User:{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{4|Example}}}}}|{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{4|Example}}}}}]]{{<includeonly>safesubst:</includeonly>#if:{{{5|}}} | ||
|, [[:User:{{ | |, [[:User:{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{5|Example}}}}}|{{<includeonly>safesubst:</includeonly>SUBPAGENAME:{{{5|Example}}}}}]] | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
}}{{{p|:}}} | }}{{{p|:}}} | ||
|{{ | |{{<includeonly>safesubst:</includeonly>error|Error in [[Template:Replyto]]: Username not given.}} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 01:23, 27 November 2013
@Example:
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}}