Extension:Sanctions

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Sanctions
Release status: beta
Implementation Special page , Hook
Description Offers convenient way to handle sanctions.
Author(s) lorentz21
Latest version 1.0.2 (2018-10-07)
MediaWiki 1.31.1+
Database changes Yes
License GNU General Public License 2.0 or later
Download
Translate the Sanctions extension if it is available at translatewiki.net
Check usage and version matrix.

The Sanctions extension adds special page Special:Sanctions and let users handle sanctions. This extension is orginally designed for Femiwiki.

Installation[edit]

Sanctions requires the Renameuser extension and the StructuredDiscussions extension be installed as a prerequisite.
  • Download and place the file(s) in a directory called Sanctions in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Sanctions/Sanctions.php";
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
  • (Optional) Add "제재안" Bot to the Mediawiki:Echo-blacklist Page.

Configuration[edit]

These messages below are Configuration of Sanctions. Sanctions uses messages to prepare absence of the sysop.

  • Mediawiki:Sanctions-discussion-page-name: The page name for proposing sanctions. By default, 페미위키토론:제재안에 대한 의결.
  • Mediawiki:Sanctions-voting-period: Voting period for sanction proposals. Default 3 (days).
  • Mediawiki:Sanctions-max-block-period‎: Maximum sanction date. Default 30 (days).
  • Mediawiki:Sanctions-voting-right-verification-period: Minimum requirement for voters to participate in santion process - "X days past registration, Y edits within last X days, no sanction logs for last X days" - this value represents X. Default 20.
  • Mediawiki:Sanctions-voting-right-verification-edits: Minimum requirement for voters to participate in santion process - "X days past registration, Y edits within last X days, no sanction logs for last X days" - this value represents Y. Default 3.
  • Mediawiki:sanctions-autoblock: Whether or not to enable autoblock when blocking. 1 for autoblock on and 0 for autoblock off. Default 1.