Template:Request Ping

From RationalWiki
Jump to navigation Jump to search

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

[edit] [purge] Documentation

This template has a sandbox (edit) and testcases (edit) for editors to experiment.

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

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

Usage and examples

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

which renders as

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

Where "<Current user name>" is transformed to the username of the user saving the edit.


{{subst:Request Ping|Example}}

renders as

If you reply here, please ping me by adding {{ping|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 {{ping|Example}} to your message, and signing it.

Parameters

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 approrpaite to follow "If" and precede "please ping me." See example above. (alias condition)


Credit

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