如何在MediaWiki

时间:2016-05-25 09:02:11

标签: mediawiki

我将帐户创建仅限于官僚。也就是说,只有官僚才能为其他用户创建帐户。

在MediaWiki中成功创建帐户后,会向新创建的用户发送确认电子邮件。但是,想知道在哪里可以更改我在MediaWiki中收到的确认电子邮件模板的内容。

我在哪里可以找到MediaWiki中使用的各种电子邮件模板?

  For eg: Content of Confirmation Email upon successful account creation is as below.

  Someone, probably you, from IP address ::1,has changed the email 
  address of the account "Admin" to this address on admin's Wiki!.

  To confirm that this account really does belong to you and reactivate
  email features on admin's Wiki!, open this link in your browser:

我想更改上述内容,但无法找到这些电子邮件内容的存储位置或调用位置。

感谢任何帮助。

2 个答案:

答案 0 :(得分:3)

电子邮件模板作为普通系统消息存储在MediaWiki命名空间中,例如, MediaWiki:Notificationemail_body_changed

您可以过滤掉所有相关的系统消息:Special:AllMessages&prefix=Notificationemail

目前,有四个:

  • MediaWiki:notificationemail_body_changed
  • MediaWiki:notificationemail_body_removed
  • MediaWiki:notificationemail_subject_changed
  • MediaWiki:notificationemail_subject_removed

这些页面会以wiki的默认语言显示消息。要更改特定语言(用户可能选择的语言),请使用MediaWiki:notificationemail_subject_removed/ar(阿拉伯语),MediaWiki:notificationemail_subject_removed/en(英语)等

答案 1 :(得分:1)

@ leo的答案对于发送的有关电子邮件身份验证的邮件是正确的。

与页面中的更改等相关的所有其他电子邮件都存储在以enotif_开头的系统消息中,您可以使用此过滤器查看所有这些消息: Special:AllMessages&prefix=enotif_

vanilla * MediaWiki的消息是:

  • enotif_impersonal_salutation
  • enotif_subject_deleted
  • enotif_subject_created
  • enotif_subject_moved
  • enotif_subject_restored
  • enotif_subject_changed
  • enotif_body_intro_deleted
  • enotif_body_intro_created
  • enotif_body_intro_moved
  • enotif_body_intro_restored
  • enotif_body_intro_changed
  • enotif_lastvisited
  • enotif_lastdiff
  • enotif_anon_editor
  • enotif_body

你可以使用这个过滤器看到它们: Special:AllMessages&prefix=enotif_

*使用extension:Echo的人有一些其他消息需要更改。

相关问题