Jump to content

Extension:MassMessage/da: Difference between revisions

From mediawiki.org
Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages />
<languages/>
{{Extension|templatemode=
{{Extension|templatemode=
|status = stable
|status = stable
Line 5: Line 5:
|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.4.0
|version = 0.5.0
|update = 2016-12-06
|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 =
|license = GPL-2.0+
|download = {{WikimediaDownload|phab=EMAM}}
|download = {{WikimediaDownload}}
|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
|hook11 = EmailConfirmed
|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]]. For help on how to use the extension, see {{ll|Help:Extension:MassMessage}}. The API documentation can be found at [[Special:MyLanguage/Extension:MassMessage/API|Extension:MassMessage/API]].
<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}}
{{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">
Line 56: Line 47:
</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">
Line 63: Line 58:
</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 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 ==
== 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>


{{pre|1=
{{pre|1=
php sendMessages.php --pagelist &lt;page list file> --subject &lt;subject file> --message &lt;message file>
php sendMessages.php --pagelist &lt;<span lang="en" dir="ltr" class="mw-content-ltr">page list file</span>> --subject &lt;<span lang="en" dir="ltr" class="mw-content-ltr">subject file</span>> --message &lt;<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.
where each line of <code>&lt;page list file></code> contains a page name followed by a wiki (database) name, separated by a tab.
</div>


<span id="User_rights"></span>
== Brugerrettigheder ==
== Brugerrettigheder ==
*<code>massmessage</code> - Lets a user send out messages. By default assigned to the "sysop" user group.
*<code>massmessage</code> - <span lang="en" dir="ltr" class="mw-content-ltr">Lets a user send out messages. By default assigned to the "sysop" user group.</span>


<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">
== Se også ==
== Interface ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* {{ll|Extension:MassMessageEmail}} - Emails users instead of posting on their talk pages.
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>
== Se også ==
* {{ll|Extension:MassMessageEmail}} - <span lang="en" dir="ltr" class="mw-content-ltr">Emails users instead of posting on their talk pages.</span>


{{OnWikimedia}}
{{OnWikimedia}}
{{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

MediaWiki extensions manual
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
  • $wgNamespacesToConvert
  • $wgMassMessageAccountUsername
  • $wgNamespacesToPostIn
  • $wgAllowlistedMassMessageTargets
  • $wgAllowGlobalMessaging
  • $wgMassMessageWikiAliases
  • massmessage
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 your extensions/ 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' );
    
  • Yes DoneNavigate 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:

Se også