Extension:MassMessage/ru: Difference between revisions
Updating to match new version of source page |
Updating to match new version of source page |
||
(33 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages |
<languages/> |
||
{{ |
{{Extension|templatemode= |
||
|templatemode = |
|||
|name = MassMessage |
|||
|status = stable |
|status = stable |
||
|type1 = special |
|type1 = special |
||
Line 9: | Line 7: | ||
|description = Позволяет участнику легко отправлять сообщения группе участников. |
|description = Позволяет участнику легко отправлять сообщения группе участников. |
||
|image = Screenshot of MassMessage MediaWiki extension.png |
|image = Screenshot of MassMessage MediaWiki extension.png |
||
|version = 0. |
|version = 0.5.0 |
||
|update = |
|update = 2023-01-08 |
||
|compatibility policy = rel |
|||
|mediawiki = <span class="mw-translate-fuzzy">1.23+, используйте 0.0.2 для версий <1.23</span> |
|||
|mediawiki = <span lang="en" dir="ltr" class="mw-content-ltr">1.25+, use REL1_X branches for your version of MediaWiki</span> |
|||
|php = |
|php = |
||
|needs-updatephp = No |
|||
|schema-registry = |
|schema-registry = |
||
| |
|download = {{WikimediaDownload|phab=EMAM}} |
||
|download = {{TNT|WikimediaDownload|MassMessage}} |
|||
|readme = |
|readme = |
||
|changelog = |
|changelog = |
||
|parameters = |
|||
* $wgNamespacesToPostIn |
|||
* $wgAllowGlobalMessaging |
|||
* $wgNamespacesToConvert |
|||
* $wgMassMessageAccountUsername |
|||
* $wgMassMessageWikiAliases |
|||
|tags = |
|tags = |
||
|rights = |
|||
* massmessage |
|||
|example = |
|example = |
||
|compatibility = |
|compatibility = |
||
|phabricator = MassMessage |
|phabricator = MassMessage |
||
|hook1 = ParserFirstCallInit |
|||
|hook2 = SpecialStatsAddExtra |
|||
|hook3 = APIQuerySiteInfoStatisticsInfo |
|||
|hook4 = RenameUserPreRename |
|||
|hook5 = UserGetReservedNames |
|||
|hook6 = BeforeEchoEventInsert |
|||
|hook7 = SkinTemplateNavigation |
|||
|hook8 = BeforePageDisplay |
|||
|hook9 = ListDefinedTags |
|||
|hook10 = ChangeTagsListActive |
|||
|vagrant-role = massmessage |
|vagrant-role = massmessage |
||
|newhook1 = MassMessageJobBeforeMessageSent |
|||
}} |
}} |
||
The '''MassMessage''' extension allows a user to send a message to a list of pages via special page [[Special:MassMessage]]. |
<span lang="en" dir="ltr" class="mw-content-ltr">The '''MassMessage''' extension allows a user to send a message to a list of pages via special page [[Special:MassMessage]].</span> |
||
<span lang="en" dir="ltr" class="mw-content-ltr">For help on how to use the extension, see {{ll|Help:Extension:MassMessage}}.</span> |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">The API documentation can be found at {{ll|Extension:MassMessage/API}}.</span> |
|||
<span id="Installation"></span> |
|||
== Установка == |
== Установка == |
||
{{ |
{{ExtensionInstall|registration=required}} |
||
<span id="Configuration_parameters"></span> |
|||
== Конфигурационные параметры == |
== Конфигурационные параметры == |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
; Namespaces to post in |
; Namespaces to post in |
||
</div>: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
When posting messages, only post them in the specified namespaces. All talk namespaces are already whitelisted. |
When posting messages, only post them in the specified namespaces. All talk namespaces are already whitelisted. |
||
</div> |
|||
<syntaxhighlight lang="php"> |
<syntaxhighlight lang="php"> |
||
$wgNamespacesToPostIn = |
$wgNamespacesToPostIn = [ NS_PROJECT ]; |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
; Namespaces to convert |
; Namespaces to convert |
||
</div>: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
If you want users to be able to provide a link to a User: page, but have the bot post on their User talk: page you can define that here. |
If you want users to be able to provide a link to a User: page, but have the bot post on their User talk: page you can define that here. |
||
</div> |
|||
<syntaxhighlight lang="php"> |
<syntaxhighlight lang="php"> |
||
$wgNamespacesToConvert = |
$wgNamespacesToConvert = [ NS_USER => NS_USER_TALK ]; |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
; Username |
; Username |
||
</div>: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
What username the bot should post with. By default, this is "MediaWiki message delivery". If the user already exists, the extension will take over the account. It will be impossible for users to [[Extension:Renameuser|rename]] the account. You can ''override'' the default account name by specifying (for example): |
What username the bot should post with. By default, this is "MediaWiki message delivery". If the user already exists, the extension will take over the account. It will be impossible for users to [[Extension:Renameuser|rename]] the account. You can ''override'' the default account name by specifying (for example): |
||
</div> |
|||
<syntaxhighlight lang="php"> |
<syntaxhighlight lang="php"> |
||
Line 70: | Line 67: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
; Enable global messaging |
; Enable global messaging |
||
</div>: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
Whether to enable sending messages from one wiki to another. If running on a wikifarm setup like Wikimedia, you can disable this on all wikis except one to keep the logs in one place. |
Whether to enable sending messages from one wiki to another. If running on a wikifarm setup like Wikimedia, you can disable this on all wikis except one to keep the logs in one place. |
||
</div> |
|||
<syntaxhighlight lang="php"> |
<syntaxhighlight lang="php"> |
||
Line 77: | Line 78: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
⚫ | |||
== Maintenance script == |
|||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
⚫ | |||
You can send messages from the command line with |
|||
</div> |
|||
{{pre|1= |
|||
php sendMessages.php --pagelist <<span lang="en" dir="ltr" class="mw-content-ltr">page list file</span>> --subject <<span lang="en" dir="ltr" class="mw-content-ltr">subject file</span>> --message <<span lang="en" dir="ltr" class="mw-content-ltr">message file</span>> |
|||
}} |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
where each line of <code><page list file></code> contains a page name followed by a wiki (database) name, separated by a tab. |
|||
</div> |
|||
<span id="User_rights"></span> |
|||
⚫ | |||
⚫ | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== Notes == |
== Notes == |
||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
⚫ | |||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== Interface == |
|||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
This extension is visible in three places: |
|||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
* [[Special:CreateMassMessageList]], to create delivery lists. |
|||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
* Wiki pages with the <code>MassMessageListContent</code> content model, which represent delivery lists. These are automatically categorised under {{ll|Category:MassMessage delivery lists}}. |
|||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
* [[Special:MassMessage]], to send a message to a delivery list. |
|||
</div> |
|||
<span id="See_also"></span> |
|||
As of version 0.4.0 (current git master for MediaWiki 1.25), MassMessage requires <code>{{wg|ContentHandlerUseDB}}</code> not to have been explicitly set to false. |
|||
== См. также == |
|||
* {{ll|Extension:MassMessageEmail}} - <span lang="en" dir="ltr" class="mw-content-ltr">Emails users instead of posting on their talk pages.</span> |
|||
⚫ | |||
⚫ | |||
{{Used by}} |
|||
[[Category:Notification extensions{{#translation:}}]] |
|||
⚫ | |||
[[Category: |
[[Category:ContentHandler extensions{{#translation:}}]] |
||
[[Category: |
[[Category:Extensions with StructuredDiscussions support{{#translation:}}]] |
Latest revision as of 15:34, 13 July 2024
Статус релиза: стабильно |
|
---|---|
Реализация | Служебная страница , API |
Описание | Позволяет участнику легко отправлять сообщения группе участников. |
Автор(ы) | Kunal Mehta, wctaiwan |
Последняя версия | 0.5.0 (2023-01-08) |
Политика совместимости | Снэпшоты выходят вместе с MediaWiki. Мастер не имеет обратной совместимости. |
MediaWiki | 1.25+, use REL1_X branches for your version of MediaWiki |
Лицензия | GNU General Public License 2.0 или позднее |
Скачать | |
Помощь | Help:Extension:MassMessage/ru |
|
|
|
|
Ежеквартальные загрузки | 38 (Ranked 102nd) |
Использование общедоступными вики | 1,039 (Ranked 257th) |
Переведите расширение MassMessage, если оно доступно на translatewiki.net | |
Роль Vagrant | massmessage |
Проблемы | Открытые задачи · Сообщить об ошибке |
The MassMessage extension allows a user to send a message to a list of pages via special page Special:MassMessage. For help on how to use the extension, see Справка:Расширение:MassMessage . The API documentation can be found at Extension:MassMessage/API .
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
MassMessage
в вашей папкеextensions/
.
Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MassMessage - Добавьте следующий код в конце вашего файла LocalSettings.php :
wfLoadExtension( 'MassMessage' );
Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Конфигурационные параметры
- Namespaces to post in
:
When posting messages, only post them in the specified namespaces. All talk namespaces are already whitelisted.
$wgNamespacesToPostIn = [ NS_PROJECT ];
- Namespaces to convert
:
If you want users to be able to provide a link to a User: page, but have the bot post on their User talk: page you can define that here.
$wgNamespacesToConvert = [ NS_USER => NS_USER_TALK ];
- Username
:
What username the bot should post with. By default, this is "MediaWiki message delivery". If the user already exists, the extension will take over the account. It will be impossible for users to rename the account. You can override the default account name by specifying (for example):
$wgMassMessageAccountUsername = 'MessengerBot';
- Enable global messaging
:
Whether to enable sending messages from one wiki to another. If running on a wikifarm setup like Wikimedia, you can disable this on all wikis except one to keep the logs in one place.
$wgAllowGlobalMessaging = true;
Maintenance script
You can send messages from the command line with
php sendMessages.php --pagelist <page list file> --subject <subject file> --message <message file>
where each line of <page list file>
contains a page name followed by a wiki (database) name, separated by a tab.
Права участников
massmessage
- Lets a user send out messages. By default assigned to the "sysop" user group.
Notes
Extensions which integrate with this one: Echo, LiquidThreads.
Interface
This extension is visible in three places:
- Special:CreateMassMessageList, to create delivery lists.
- Wiki pages with the
MassMessageListContent
content model, which represent delivery lists. These are automatically categorised under Category:MassMessage delivery lists .
- Special:MassMessage, to send a message to a delivery list.
См. также
- Extension:MassMessageEmail - Emails users instead of posting on their talk pages.
Это расширение используется в одном или нескольких проектах Викимедиа. Вероятно, это означает, что расширение стабильно и работает достаточно хорошо, чтобы использоваться такими сайтами с высоким трафиком. Найдите название этого расширения в файлах конфигурации Викимедиа CommonSettings.php и InitialiseSettings.php, чтобы узнать, где оно установлено. Полный список расширений, установленных на конкретной вики, можно увидеть на странице Special:Version wiki. |
Это расширение включено в следующие вики-фермы/хостинги и/или пакеты: Это не исчерпывающий список. Некоторые вики-фермы/хостинги и/или пакеты могут содержать это расширение, даже если они не перечислены здесь. Всегда сверяйтесь со своими вики-фермами/хостингами или комплектами/бандлами для подтверждения. |
- Stable extensions/ru
- Special page extensions/ru
- API extensions/ru
- GPL licensed extensions/ru
- Extensions in Wikimedia version control/ru
- APIQuerySiteInfoStatisticsInfo extensions/ru
- BeforeEchoEventInsert extensions/ru
- BeforePageDisplay extensions/ru
- ChangeTagsListActive extensions/ru
- ListDefinedTags extensions/ru
- ParserFirstCallInit extensions/ru
- RejectParserCacheValue extensions/ru
- SkinTemplateNavigation::Universal extensions/ru
- UserGetReservedNames extensions/ru
- All extensions/ru
- Extensions used on Wikimedia/ru
- Extensions included in Canasta/ru
- Extensions included in Miraheze/ru
- Extensions included in WikiForge/ru
- Notification extensions/ru
- ContentHandler extensions/ru
- Extensions with StructuredDiscussions support/ru