Extension:EmailDiff
![]() | この拡張機能は、MediaWiki コアのコードへのパッチ当て を必要とします。 パッチ当ての手段を使用して実装された拡張機能は、アップグレードやセキュリティ パッチの適用に干渉したり適用を不可能にしてしまうおそれがあります。 パッチを当てることなく使用できる拡張機能がある場合は、その拡張機能を使用することをお勧めします。 |
![]() | 現在、この拡張機能は積極的な保守が行われていません! それでも機能する可能性はありますが、バグ報告や機能の要望は無視される可能性が高くなります。 この拡張機能の開発や保守の作業を引き受けることに興味がある場合は、リポジトリの所有権を申請できます。 礼儀として、作者に問い合わせることをお勧めします。 保守を引き継いだ場合、このテンプレートは除去すべきです。また、拡張機能ページの {{extension}} 基礎情報ボックス内のリストにあなたの名前を保守担当者として追加してください。 |
![]() リリースの状態: 保守されていない |
|
---|---|
実装 | 通知 |
説明 | 通知メールに編集の差分をテキストで送信 |
作者 | Greg Sabino Mullane (Turnstepトーク) |
最新バージョン | 1.9 (2017-11-14) |
MediaWiki | 1.29+ |
ライセンス | MIT ライセンス |
ダウンロード | |
|
|
Quarterly downloads | 4 (Ranked 172nd) |
translatewiki.net で翻訳を利用できる場合は、EmailDiff 拡張機能の翻訳にご協力ください | |
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.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のEmailDiff
という名前のディレクトリ内に配置します。 - 以下のコードを
LocalSettings.php
の末尾に追加します:A new hook will need to be added to the filewfLoadExtension( 'EmailDiff' );
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 ] );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
テンプレートの編集
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;
構成パラメーター
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.