Template:Ping: Difference between revisions

From Meta Wiki
Jump to navigation Jump to search
en.wikipedia.org>Kaldari
fixing params
en.wikipedia.org>Kaldari
Hiding the output
Line 1: Line 1:
@[[User:{{{1|<noinclude>Someone</noinclude>}}}|{{{1|<noinclude>Someone</noinclude>}}}]]<includeonly>{{#if:{{{2|}}}|, [[User:{{{2}}}|{{{2}}}]]}}{{#if:{{{3|}}}|, [[User:{{{3}}}|{{{3}}}]]}}{{#if:{{{4|}}}|, [[User:{{{4}}}|{{{4}}}]]}}{{#if:{{{5|}}}|, [[User:{{{5}}}|{{{5}}}]]}}</includeonly>:<noinclude>
{{#if:{{{hide|}}}|<span style="display:none;">}}@[[User:{{{1|<noinclude>Someone</noinclude>}}}|{{{1|<noinclude>Someone</noinclude>}}}]]<includeonly>{{#if:{{{2|}}}|, [[User:{{{2}}}|{{{2}}}]]}}{{#if:{{{3|}}}|, [[User:{{{3}}}|{{{3}}}]]}}{{#if:{{{4|}}}|, [[User:{{{4}}}|{{{4}}}]]}}{{#if:{{{5|}}}|, [[User:{{{5}}}|{{{5}}}]]}}</includeonly>:{{#if:{{{hide|}}}|</span>}}<noinclude>
==Instructions==
==Instructions==
This template takes advantage of the new mention [[Wikipedia:Notifications|notification]] to ping the user(s) you are replying to in a discussion (so you don't have to use the {{tl|talkback}} template). Right now it works on any talk page, and will soon work on Wikipedia namespace pages as well (pending {{bug|47964}}).
This template takes advantage of the new mention [[Wikipedia:Notifications|notification]] to ping the user(s) you are replying to in a discussion (so you don't have to use the {{tl|talkback}} template). Right now it works on any talk page, and will soon work on Wikipedia namespace pages as well (pending {{bug|47964}}).
Line 15: Line 15:
  <nowiki>{{replyto|Larry|Moe|Curly}} Nyuk! Nyuk! Nyuk! ~~~~</nowiki>
  <nowiki>{{replyto|Larry|Moe|Curly}} Nyuk! Nyuk! Nyuk! ~~~~</nowiki>
</noinclude>
</noinclude>
====Hiding the output====
If you want to notify the person you are replying to without outputting the salutation ('@[[User:Someone|Someone]]:'), add 'hide=true' to your template call:
<nowiki>{{replyto|Jerry|hide=true}} Oh, Jerry, don't let's ask for the moon. We have the stars. ~~~~</nowiki>

Revision as of 07:19, 2 May 2013

@Someone:

Instructions

This template takes advantage of the new mention notification to ping the user(s) you are replying to in a discussion (so you don't have to use the {{talkback}} template). Right now it works on any talk page, and will soon work on Wikipedia namespace pages as well (pending Template:Bug).

Single recipient

To use it, just add something like the following to an existing discussion:

{{replyto|Cool Hand Luke}} What we've got here is failure to communicate! ~~~~

The comment must be signed and belong to a section in order for the notification to work.

You can also substitute the template, if you prefer:

{{subst:replyto|Scarlett O'Hara}} Frankly, my dear, I don't give a damn. ~~~~

Multiple recipients

You can reply to up to 5 people at once:

{{replyto|Larry|Moe|Curly}} Nyuk! Nyuk! Nyuk! ~~~~


Hiding the output

If you want to notify the person you are replying to without outputting the salutation ('@Someone:'), add 'hide=true' to your template call:

{{replyto|Jerry|hide=true}} Oh, Jerry, don't let's ask for the moon. We have the stars. ~~~~