Jump to content

Template:Request ping/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Reverted to revision 953606937 by Sdkb: Reverting accidental rollback by User:JzG (TW)
add {{Notice|Click the <code>[subscribe]</code> link on the right of discussion section headings, as an alternative to this template, and get pinged whenever anyone replies. '''See WP:SUBSCRIBE'''.}}
 
Line 1: Line 1:
{{redirect|Template:ReqP|the template for requesting the addition of a photo to an article|Template:Reqp}}
{{redirect|Template:ReqP|the template for requesting the addition of a photo to an article|Template:Reqp}}
{{Notice|Click the <code>[subscribe]</code> link on the right of discussion section headings, as an alternative to this template, and get [[Wikipedia:Ping|pinged]] whenever anyone replies. '''See [[WP:SUBSCRIBE]]'''.}}
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->

Latest revision as of 15:53, 14 April 2024

Purpose

[edit]

This template is used on talk pages to ask other users to ping the poster with any reply. It would normally be placed just before the poster's signature.

Substitution

[edit]

This template must be substituted with the subst: keyword for it to work properly.

Usage and examples

[edit]

The most common usage is simply {{subst:Request ping}}

which renders as

If you reply here, please ping me by adding {{u|<Current user name>}} to your message, and signing it.

Where "<Current user name>" is transformed into to the username of the user saving the edit; the template substitutes the magic word {{REVISIONUSER}}.

{{subst:Request ping|Example}}

renders as

If you reply here, please ping me by adding {{u|Example}} to your message, and signing it.

{{subst:Request ping|Example|cond=you want to talk}}

renders as

If you want to talk, please ping me by adding {{u|Example}} to your message, and signing it.

Parameters

[edit]
first (unnamed) parameter
This should be the user name of the user who wished to be pinged, as Example for User:Example. If not supplied, this parameter is replaced with the name of the user who saved the edit. To keep this from changing with later edits, the template must be substituted using "subst:"
cond
This optional parameter is for text to replace you reply here in the output wih some other condition. It should be appropriate to follow "If" and precede "please ping me." See example above. (alias condition)

Aliases

[edit]

{{Repi}} and {{ReqP}} are shortcuts to this template.

Credit

[edit]

Credit goes to User:I dream of horses, who wrote a basically similar piece of code for use in her signature, but without the parameters.

See also

[edit]