MessageBlock

MessageBlock adds a checkbox in the Special:Block page that allows you to send a message with the block reason and duration to the blocked user's talk page directly from the block page.
== ==
== Customization ==
To add the title and the text of this new message, just add this in MediaWiki:Common.js (or before the import statements if using for personal use):
Then, just change title by the title of the message and message by the text you want.
Note: You can't include quotation marks or newlines in the message template.
=== Include duration and block reason ===
If you want to include the duration, the reason of the block, or your username, type in the message $1 (for the reason), $2 (for the duration), and/or $3 for your username. For example, your message can be: "$3 blocked you for $2 because you have $1". You can also use $3 to create a link to a Community Central message wall, for example: "You can contact your blocking admin on Community Central with <a href=\"community.fandom.com/wiki/Message_Wall:$3\">this</a> link."
=== Auto-check the checkbox ===
By default, the checkbox isn't checked and have to be checked manually. If you want to check it by default, just put this before import statements:
(window.MessageBlock = window.MessageBlock || {}).autocheck = true;
=== ===
== Updates ==
* 2020/10/07: Modernize and add UCP support
* 2014/11/25: Solve minor issues and add improvements