Erweiterung:EmailDiff

This page is a translated version of the page Extension:EmailDiff and the translation is 85% complete.
MediaWiki-Erweiterungen
EmailDiff
Freigabestatus: ohne Wartung
Einbindung Benachrichtigung
Beschreibung Versenden von textlichen Diffs von Seitenänderungen in den Benachrichtigungs-E-Mails
Autor(en) Greg Sabino Mullane (TurnstepDiskussion)
Letzte Version 1.9 (2017-11-14)
MediaWiki 1.29+
Lizenz MIT-Lizenz
Herunterladen
  • $wgEmailDiffSubjectSuffix
  • $wgEmailDiffCommand
Quarterly downloads 2 (Ranked 138th)
Übersetze die EmailDiff-Erweiterung, wenn sie auf translatewiki.net verfügbar ist

The EmailDiff extension modifies outgoing notification emails by providing a text diff of all changes made. This enables you to see the changes without having to leave your mail client.

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens EmailDiff im Ordner extensions/ ablegen.
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'EmailDiff' );
    
    A new hook will need to be added to the file includes/mail/EmailNotification.php. Inside the function sendPersonalised, right before the "return" line, add:
Hooks::run( 'SendNotificationEmail',
    [ $watchingUser, $this->oldid, $this->title, &$headers, &$this->subject, &$body ] );
  •   Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Die Vorlage bearbeiten

The extension works by replacing the word $PAGEDIFF in the email notification template with the actual diff. Therefore, you will need to edit the MediaWiki:Enotif_body page on your wiki to add that string.

Es wird empfohlen, dass du eine kurze Zusammenfassung oben vor dem Diff. Hier ist ein Vorschlag für das Layout:

Page: $PAGETITLE
Summary: $PAGESUMMARY $PAGEMINOREDIT
User: $PAGEEDITOR  Time: $PAGEEDITDATE
$PAGEDIFF
$NEWPAGE

Aktivieren für Benutzer

In Preferences -> User profile add a tick in Send a diff of changes

 

Or activate the extension for all users in LocalSettings.php by adding:

$wgDefaultUserOptions['enotifshowdiff'] = true;

Konfigurationsparameter

If you need to change these, add them to your LocalSettings.php after the wfLoadExtension command above:

  • $wgEmailDiffSubjectSuffix - String, der am Ende der Betreffzeile hinzugefügt wird. Defaults to (diff)
  • $wgEmailDiffCommand - Befehl, um den Vergleich durchzuführen. Die Standardeinstellung muss selten geändert werden.