Template:Hidden ping

From K6ka's Wiki
(Redirected from Template:Hp)
Jump to navigation Jump to search
Template documentation (View · Edit · History · Purge)

Lua-Logo.svg
This template uses Lua

Description[edit]

This template is used to trigger a notification to one or multiple registered users you are replying to in a discussion. It differs from {{Ping}} in that it doesn't display any text when used, whereas {{Ping}} will display the usernames of the users you've mentioned.

Usage[edit]

{{Hidden ping|Username}} Message text. ~~~~

The edit that adds this template must meet the following requirement for notifications to work:

  • The edit must add new lines of text, not just edit existing lines.
  • The edit must be signed by adding ~~~~ to the end of the message.
    • If you have specified a custom signature, it must contain a plain wiki link ([[ ]]) to your user page, user talk page, or contributions page; it cannot be embedded in a template.
  • The edit must either be entirely within an existing sections (it cannot have new section headers in the middle) or start a new section (starts with a new section header).
    • Only sections of level 2 and above count.
  • If the number of detected to-be-pinged users exceeds 50, no notifications will be delivered.

You can also ping multiple users, up to a maximum of 50.

{{Hidden ping|Username1|Username2}} Message text. ~~~~

Error messages[edit]

Because the purpose of this template is to not produce any visible output, error messages are only displayed when previewing the edit.

Error in Template:Hidden ping: Input contains forbidden characters.

This error indicates that one or more of the usernames specified contained a character that is not allowed in usernames.

Error in Template:Hidden ping: Username not given.

This indicates that no usernames were specified. This error can also be produced when the recipient's username contains an equal sign, for example {{hidden ping|test=test}}. To fix this, simply add 1= at the beginning of the username, 2= at the second username, 3= at the third username and so on: {{hidden ping|1=test=test}}

Error in Template:Hidden ping: More than 50 names specified.

If the total number of detected to-be-pinged users in an edit exceeds 50, no notifications will be delivered. An error message will be displayed when previewing the page, but not once the page has been saved.

Credits[edit]

This template's code was taken from the English Wikipedia.

See also[edit]

TemplateData[edit]

This is the TemplateData documentation for this template used by the VisualEditor and other tools.

TemplateData for Hidden ping

Trigger a notification to one or several registered user(s) you are replying to in a discussion without displaying any text.

Template parameters

ParameterDescriptionTypeStatus
Username1

The name of a user that you want to notify

Userrequired
Additional username2

The name of an additional user you want to notify

Useroptional
Additional username3

The name of an additional user you want to notify

Useroptional
Additional username4

The name of an additional user you want to notify

Useroptional
Additional username5

The name of an additional user you want to notify

Useroptional
Additional username6

The name of an additional user you want to notify

Useroptional
Additional username7

The name of an additional user you want to notify

Useroptional
Additional username8

The name of an additional user you want to notify

Useroptional
Additional username9

The name of an additional user you want to notify

Useroptional
Additional username10

The name of an additional user you want to notify

Useroptional

Visit Template:Hidden ping/doc to edit this text! (How does this work?) (Refresh this text - why?)