summaryrefslogtreecommitdiff
path: root/LocalSettings.archlinux.org.php
diff options
context:
space:
mode:
authorJakub Klinkovský <j.l.k@gmx.com>2016-07-20 10:27:19 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-23 20:45:33 +0200
commit4bdf6e63e50da874ac4db65096d6d3af7f50aa64 (patch)
treec6ccc7acd8d6b8e3a865a8423047bd87f3f69a32 /LocalSettings.archlinux.org.php
parentc20bddf2d35e5d9185262a46fda7ca91a4eade0c (diff)
LocalSettings: Hide "minordefault" and "forceeditsummary" user options
There is little wrong in letting the users configure these settings, but setting "Mark all edits as minor by default" to true or "Prompt me when entering a blank edit summary" to false has bad impact on the quality of the wiki edits, because such users tend to ignore the fundamental rules [1] and there is nothing to remind it to them. Disabling these user preferences and forcing the default values according to this patch will decrease the effort of the Maintenance Team spent on guiding the editors and also generally increase the quality of user contributions. This will solve FS#46190 [2]. [1] https://wiki.archlinux.org/index.php/ArchWiki:Contributing#The_3_fundamental_rules [2] https://bugs.archlinux.org/task/46190
Diffstat (limited to 'LocalSettings.archlinux.org.php')
-rw-r--r--LocalSettings.archlinux.org.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/LocalSettings.archlinux.org.php b/LocalSettings.archlinux.org.php
index e5249dc9..0d5d0d2c 100644
--- a/LocalSettings.archlinux.org.php
+++ b/LocalSettings.archlinux.org.php
@@ -199,14 +199,21 @@ $wgFooterIcons = array();
## Access control settings
##
+# disable anonymous editing
$wgEmailConfirmToEdit = true;
$wgDisableAnonTalk = true;
$wgGroupPermissions['*']['edit'] = false;
+
+# extra rights for admins
$wgGroupPermissions['sysop']['deleterevision'] = true;
+
+# disable uploads by normal users
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['autoconfirmed']['upload'] = false;
+
+# maintainers' rights
$wgGroupPermissions['maintainer']['autopatrol'] = true;
$wgGroupPermissions['maintainer']['patrol'] = true;
$wgGroupPermissions['maintainer']['noratelimit'] = true;
@@ -232,6 +239,16 @@ $wgAutoConfirmAge = 86400*3; // three days
# require at least 20 normal edits before granting the 'writeapi' right
$wgAutoConfirmCount = 20;
+# Enforce basic editing etiquette (FS#46190)
+# We set the defaults for "minordefault" (disabled) and "forceeditsummary"
+# (enabled) options and hide them from the user preferences dialog. Note that
+# hiding the user preferences with $wgHiddenPrefs results in everybody using
+# the defaults, regardless of the users' earlier preference.
+$wgDefaultUserOptions["minordefault"] = 0;
+$wgDefaultUserOptions["forceeditsummary"] = 1;
+$wgHiddenPrefs[] = "minordefault";
+$wgHiddenPrefs[] = "forceeditsummary";
+
##
## Additional extensions