Template:Reply to

(Redirected from Template:Ping)

@Example:

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Reply to/doc.

Usage

In 2013 Wikimedia projects adopted a user notification system which allows any user to ping others in discussion replies. This system replaces or complements the {{talkback}} template in use previously. It works on any talk page or Commons namespace page.

Using this template is one of the main ways to use the notification system. 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.

Per mw:Extension:Echo#Usage, you must link to another user's page and sign in the same edit in order to effectively mention, notify, or ping them, and even then only if they have "Notify me when someone links to my user page" set (which is the default here).

Multiple recipients

You can reply to up to 50 people at once:

{{reply to|User1|UserII|UserC}} Message text. ~~~~

Specify a prefix

To change the "@" prefix, use |prefix=custom prefix. For example:

"{{reply to|Example|prefix=Hello }}" produces "Hello Example: "

Or you can remove the prefix entirely by using |prefix=. For example:

"{{reply to|Example|prefix=}}" produces "Example: "

A shorter alias form for that parameter is @. For example:

"{{reply to|Example|@=Hi |p=,}}" produces "Hi Example,"

Customise punctuation

By default, the template will insert a colon after the final name. To change this, specify the required character using the |p= parameter. For example:

  • {{reply to|Example|p=---}} produces @Example---
  • {{reply to|Example|p=}} produces @Example

Just the pure username

  • {{reply to|Example|prefix=|p=}} produces Example

Aliases

TemplateData

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

No description.

Template parameters

ParameterDescriptionTypeStatus
Prefix Punctuationprefix

The prefix punctuation.

Default
@
Lineoptional
Conjunctionc

The conjunction between the last two user names.

Default
and
Lineoptional
Suffix Punctuationp

The suffix punctuation.

Default
:
Lineoptional
User 11

The first user to mention.

Userrequired
User 1 Labellabel1

The label for the first user link.

Default
{{{1}}}
Lineoptional
User 22

The second user to mention.

Useroptional
User 2 Labellabel2

The label for the second user link.

Default
{{{2}}}
Lineoptional
User 33

The third user to mention.

Useroptional
User 3 Labellabel3

The label for the third user link.

Default
{{{3}}}
Lineoptional
User 44

The fourth user to mention.

Useroptional
User 4 Labellabel4

The label for the fourth user link.

Default
{{{4}}}
Lineoptional
User 55

The fifth user to mention.

Useroptional
User 5 Labellabel5

The label for the fifth user link.

Default
{{{5}}}
Lineoptional
User 66

The sixth user to mention.

Useroptional
User 6 Labellabel6

The label for the sixth user link.

Default
{{{6}}}
Lineoptional
User 77

The seventh user to mention.

Useroptional
User 7 Labellabel7

The label for the seventh user link.

Default
{{{7}}}
Lineoptional
User 88

The eighth user to mention.

Useroptional
User 8 Labellabel8

The label for the eighth user link.

Default
{{{8}}}
Lineoptional
User 99

The ninth user to mention.

Useroptional
User 9 Labellabel9

The label for the ninth user link.

Default
{{{9}}}
Lineoptional
User 1010

The tenth user to mention.

Useroptional
User 10 Labellabel10

The label for the tenth user link.

Default
{{{10}}}
Lineoptional
Edit parameter translations

See also