User:Leszek Manicki (WMDE)/Echo/zh

Extension:Echo provides another notification system for MediaWiki.

提及
提及可以向讨论中提到的用户发送通知；此功能通常称为“ping”. 在带有签名的消息中直接或通过模板链接到用户页面将触发提及通知. 其技术细节如下.



技术细节
When generating mention events, Echo processes revision diffs chunk by chunk, to check when a user has added a new comment which should be searched for mentioned users to ping. As of this writing, for user mention notifications to work:


 * The diff chunk must be recognised as an addition of new lines of text, not a change to existing lines.
 * The user must sign his or her message; the message cannot contain any other signatures.
 * The signature must contain a plain wiki link to the user's page, user talk page, or contributions page, on the local wiki; it cannot be embedded in a template.
 * In order for the signature to be recognised, the post must contain the exact same markup that writing  (and  ) generates.
 * The comment must either belong in its entirety to existing sections (the diff chunk of added lines must not contain new section headers), or start a new section (diff chunk starts with a new section header).  Only sections of level 2 and above count.
 * Links to mentioned users' pages may be embedded in templates or not, since the diff is template-expanded
 * The  and   variables expand to the empty string when Echo parses the diff.
 * If the number of detected to-be-pinged users exceeds 50, no notifications will be delivered.
 * Mentioning self by the user and on user's own talk page is not possible
 * Notifications are only sent to valid non-anonymous users

Also, all markup is parsed with regular expressions; sufficiently tricky markup can trigger bogus results.