Template:Reply to/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 21: Line 21:
<nowiki>{{reply to|Username1|Username2}} Message text. ~~~~</nowiki>
<nowiki>{{reply to|Username1|Username2}} Message text. ~~~~</nowiki>


== See also ==
== Error messages ==
===Username not given===
* [[Module:Reply to]] – the Lua module on which this template is based
Sometimes, when the recipient's username contains an equal sign, for example <code><nowiki>{{reply to|test=test}}</nowiki></code>, it will show:<br />

{{reply to|test=test}}
<br />

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:<br />

<code><nowiki>{{reply to|1=test=test}}</nowiki></code>

===More than 50 names specified===
If more than 50 names are specified in the template, it will show:

{{reply to|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51}}

This is a limitation of the notification system, as documented in the [[:mw:Manual:Echo|manual]]. Note that the system limitation is ''per edit'', so while splitting a longer list between two templates will avoid this error message, none of the notifications will be sent. In the rare case you need to notify more than 50 people, it will need to be done in multiple edits.


==Credits==
==Credits==
This template was copied from the [[wikipedia:Template:Reply to|English Wikipedia]]. This template's documentation was partially copied from [[wikipedia:Template:Reply to/doc|there]] as well.
This template was copied from the [[wikipedia:Template:Reply to|English Wikipedia]]. This template's documentation was partially copied from [[wikipedia:Template:Reply to/doc|there]] as well.


==See also==
<includeonly>[[Category:Lua-based templates|{{PAGENAME}}]][[Category:Discussion page templates|{{PAGENAME}}]]</includeonly>
* {{tl|Hidden ping}} - when you need to mention users without displaying any text
* {{tl|No ping}} - when you need to link to users without mentioning them

<includeonly>[[Category:Discussion page templates|{{PAGENAME}}]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 12:33, 29 May 2019

{{Ping}}

This template uses Lua

Description

This template is used to trigger notifications for users when replying to a thread on a talk page or other discussion noticeboard. Normally, this can be accomplished simply by adding a link to the user's userpage (e.g. [[User:Example|Example]]. This template simplifies the process and adds an "@" symbol at the beginning to make it a little more aesthetically pleasing.

Usage

{{reply to|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.

{{reply to|Username1|Username2}} Message text. ~~~~

Error messages

Username not given

Sometimes, when the recipient's username contains an equal sign, for example {{reply to|test=test}}, it will show:

Error in Template:Reply to: Username not given.

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:

{{reply to|1=test=test}}

More than 50 names specified

If more than 50 names are specified in the template, it will show:

Error in Template:Reply to: More than 50 names specified.

This is a limitation of the notification system, as documented in the manual. Note that the system limitation is per edit, so while splitting a longer list between two templates will avoid this error message, none of the notifications will be sent. In the rare case you need to notify more than 50 people, it will need to be done in multiple edits.

Credits

This template was copied from the English Wikipedia. This template's documentation was partially copied from there as well.

See also

  • {{Hidden ping}} - when you need to mention users without displaying any text
  • {{No ping}} - when you need to link to users without mentioning them