Extension:MassMessage/da: Difference between revisions
Saederup92 (talk | contribs) Created page with "; Brugernavn" |
Updating to match new version of source page |
||
(31 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages |
<languages/> |
||
{{ |
{{Extension|templatemode= |
||
|templatemode = |
|||
|name = MassMessage |
|||
|status = stable |
|status = stable |
||
|type1 = special |
|type1 = special |
||
|type2 = api |
|type2 = api |
||
|author = [[User:Legoktm|Kunal Mehta]], [[User:wctaiwan|wctaiwan]] |
|author = [[User:Legoktm|Kunal Mehta]], [[User:wctaiwan|wctaiwan]] |
||
|description = Allows a user to easily send a message to a list of users. |
|description = <span lang="en" dir="ltr" class="mw-content-ltr">Allows a user to easily send a message to a list of users.</span> |
||
|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 |
|compatibility policy = rel |
||
|mediawiki = 1.25+, use REL1_X branches for your version of MediaWiki |
|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> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== Installation == |
== Installation == |
||
</div> |
|||
{{ |
{{ExtensionInstall|registration=required}} |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== Configuration parameters == |
== Configuration parameters == |
||
</div> |
|||
<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> |
||
; Brugernavn |
; Brugernavn: |
||
<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 71: | 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 78: | Line 78: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== Maintenance script == |
== Maintenance script == |
||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
You can send messages from the command line with |
You can send messages from the command line with |
||
</div> |
|||
php sendMessages.php --pagelist <page list file> --subject <subject file> --message <message file> |
|||
⚫ | |||
{{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"> |
|||
⚫ | |||
⚫ | |||
</div> |
|||
<span id="User_rights"></span> |
|||
⚫ | |||
== Brugerrettigheder == |
|||
⚫ | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== Notes == |
== Notes == |
||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
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. |
|||
Extensions which integrate with this one: [[Special:MyLanguage/Extension:Echo|Echo]], [[Special:MyLanguage/Extension:LiquidThreads|LiquidThreads]]. |
Extensions which integrate with this one: [[Special:MyLanguage/Extension:Echo|Echo]], [[Special:MyLanguage/Extension:LiquidThreads|LiquidThreads]]. |
||
</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> |
|||
== See also == |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{Used by}} |
|||
⚫ | |||
[[Category:Notification extensions{{#translation:}}]] |
[[Category:Notification extensions{{#translation:}}]] |
||
[[Category:ContentHandler extensions{{#translation:}}]] |
[[Category:ContentHandler extensions{{#translation:}}]] |
||
[[Category:Extensions with StructuredDiscussions support{{#translation:}}]] |
Latest revision as of 15:33, 13 July 2024
MassMessage Release status: stabil |
|
---|---|
Implementation | Special page , API |
Beskrivelse | Allows a user to easily send a message to a list of users. |
Forfatter(e) | Kunal Mehta, wctaiwan |
Latest version | 0.5.0 (2023-01-08) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.25+, use REL1_X branches for your version of MediaWiki |
Licens | GNU General Public License 2.0 or later |
Download | |
|
|
|
|
Quarterly downloads | 55 (Ranked 83rd) |
Public wikis using | 1,039 (Ranked 257th) |
Translate the MassMessage extension if it is available at translatewiki.net | |
Vagrant role | massmessage |
Issues | Open tasks · Report a bug |
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 Help:Extension:MassMessage . The API documentation can be found at Extension:MassMessage/API .
Installation
- Download and move the extracted
MassMessage
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MassMessage - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'MassMessage' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters
- 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 ];
- Brugernavn
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.
Brugerrettigheder
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.
Se også
- Extension:MassMessageEmail - Emails users instead of posting on their talk pages.
This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Stable extensions/da
- Special page extensions/da
- API extensions/da
- GPL licensed extensions/da
- Extensions in Wikimedia version control/da
- APIQuerySiteInfoStatisticsInfo extensions/da
- BeforeEchoEventInsert extensions/da
- BeforePageDisplay extensions/da
- ChangeTagsListActive extensions/da
- ListDefinedTags extensions/da
- ParserFirstCallInit extensions/da
- RejectParserCacheValue extensions/da
- SkinTemplateNavigation::Universal extensions/da
- UserGetReservedNames extensions/da
- All extensions/da
- Extensions used on Wikimedia/da
- Extensions included in Canasta/da
- Extensions included in Miraheze/da
- Extensions included in WikiForge/da
- Notification extensions/da
- ContentHandler extensions/da
- Extensions with StructuredDiscussions support/da