Extension:EmailDiff/fr
<translate> This extension requires {{<tvar name=2>ll|Do not hack MediaWiki core</tvar>|patches to core MediaWiki code}}{{<tvar name=1>#if:</tvar>| when used with MediaWiki <tvar name=ver>{{{version}}}</tvar> and before}}.</translate> <translate> Extensions implemented using patches may be disabled by or interfere with upgrades and security patches.</translate> <translate> If a suitable alternative without a patch is available, we recommend you use that extension instead.</translate> |
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> <translate> If you are interested in taking on the task of developing and maintaining this extension, [[<tvar name=request>Special:MyLanguage/Gerrit/Privilege policy#Requesting Gerrit privileges</tvar>|you can request repository ownership]].</translate> <translate> As a courtesy, you may want to contact the author.</translate> <translate> You should also remove this template and list yourself as maintaining the extension in the page's <tvar name=extension>{{Modèle:Extension }}</tvar> infobox.</translate> |
EmailDiff État de la version : non-maintenu |
|
---|---|
Implémentation | Notifier |
Description | Envoyer des différences textuelles des modifications de page dans les e-mails de notification |
Auteur(s) | Greg Sabino Mullane (Turnsteptalk) |
Dernière version | 1.9 (2017-11-14) |
MediaWiki | 1.29+ |
Licence | Aucune licence spécifiée |
Téléchargement | |
Téléchargements trimestriels | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Utilisé par les wikis publics | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Traduire l’extension EmailDiff sur translatewiki.net si elle y est disponible |
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
- <translate> <tvar name=1>Télécharger</tvar> and place the file(s) in a directory called <tvar name=name>
EmailDiff/fr
</tvar> in your <tvar name=ext>extensions/
</tvar> folder.</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate> A new hook will need to be added to the file
wfLoadExtension( 'EmailDiff/fr' );
includes/mail/EmailNotification.php
. Inside the functionsendPersonalised
, right before the "return" line, add:
Hooks::run( 'SendNotificationEmail',
[ $watchingUser, $this->oldid, $this->title, &$headers, &$this->subject, &$body ] );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Modifier le modèle
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.
It is recommended that you put some short summary information at the top before the diff. Here is one suggested layout:
Page: $PAGETITLE Summary: $PAGESUMMARY $PAGEMINOREDIT User: $PAGEEDITOR Time: $PAGEEDITDATE $PAGEDIFF $NEWPAGE
Activate for users
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;
Paramètres de configuration
If you need to change these, add them to your LocalSettings.php after the wfLoadExtension command above:
$wgEmailDiffSubjectSuffix
- String to be added to the end of the subject line. Defaults to (diff)$wgEmailDiffCommand
- Command to perform the diff. Seldom needs to be changed from the default.
- Pages with script errors
- Pages with broken file links
- Extensions requiring patches/fr
- Unmaintained extensions/fr
- Notification extensions/fr
- Extensions with manual MediaWiki version
- Extensions with no license specified/fr
- Extensions in Wikimedia version control/fr
- All extensions/fr
- Extensions not in ExtensionJson
- Email notification extensions/fr
- Email extensions/fr