User:Leszek Manicki (WMDE)/Echo/fr

From mediawiki.org
This page is a translated version of the page User:Leszek Manicki (WMDE)/Echo and the translation is 22% complete.

Extension:Echo provides another notification system for MediaWiki.

Mentions

Echo can send notifications to users mentioned in discussions; this feature is often referred to as "pinging". Linking to a user's page in a signed message, either directly or through a template, will trigger a mention notification for them. The technical details of this are laid out below.

Détails techniques

Lorsque Echo génère des évènements de mention, elle analyse les diffs morceaux par morceaux et vérifie si un utilisateur a ajouté un nouveau commentaire où l'extension devrait chercher des utilisateurs mentionnés à notifier. À l'heure de ces lignes, pour que les mentions de notifications fonctionnent :

  • The diff chunk must be recognised as an addition of new lines of text, not a change to existing lines.[1]
  • The user must sign his or her message; the message cannot contain any other signatures.[2]
    • 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.[3]
    • In order for the signature to be recognised, the post must contain the exact same markup that writing ~~~ (and ~~~~) generates.[4]
  • The comment must either belong in its entirety to existing sections (the diff chunk of added lines must not contain new section headers)[5][6], or start a new section (diff chunk starts with a new section header).[7][8] Only sections of level 2 and above count.[9]
  • Links to mentioned users' pages may be embedded in templates or not, since the diff is template-expanded[10]
  • If the number of detected to-be-pinged users exceeds 50, no notifications will be delivered.[11]
  • Mentioning self by the user [12] and on user's own talk page [13] is not possible
  • Notifications are only sent to valid [14] non-anonymous [15] users

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

Références