FS#46190 - {wiki} Hide 'minordefault' and 'forceeditsummary' user preferences

Attached to Project: Arch Linux
Opened by Jakub Klinkovský (lahwaacz) - Thursday, 03 September 2015, 15:19 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 24 July 2016, 05:43 GMT
Task Type Feature Request
Category Web Sites
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

MediaWiki has these two items in user preferences:

* Mark all edits minor by default
* Prompt me when entering a blank edit summary

There is little wrong in letting the users configure these settings, but setting the first one to true or the second one 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. To decrease the effort of the Maintenance Team spent on guiding the editors and to generally increase the quality of user contributions, I propose the following:

* Set appropriate default values for these two fields.
* Hide the options from the user preferences, which will result in everybody using the default values.

The editors will still be able to explicitly mark edits as minor and to submit an empty edit summary, but they will need to ignore the displayed warning and submit again. The necessary changes to the LocalSettings.php file are the following:

# set defaults for 'minordefault' and 'forceeditsummary'
$wgDefaultUserOptions["minordefault"] = 0;
$wgDefaultUserOptions["forceeditsummary"] = 1;
# disable overriding defaults of 'minordefault' and 'forceeditsummary' in user preferences
$wgHiddenPrefs = array(
"minordefault",
"forceeditsummary",
);

There are likely other user preferences already hidden, so the above snippet needs to be merged into the existing configuration. Of course if  FS#35545  were fixed, we could do that and submit a patch. Documentation for the $wgDefautUserOptions and $wgHiddenPrefs variables can be found in [2] and [3] respectively.

[1] https://wiki.archlinux.org/index.php/ArchWiki:Contributing#The_3_fundamental_rules
[2] https://www.mediawiki.org/wiki/Manual:$wgHiddenPrefs
[3] https://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 24 July 2016, 05:43 GMT
Reason for closing:  Implemented
Additional comments about closing:  https://git.archlinux.org/vhosts/wiki.ar chlinux.org.git/commit/?id=4bdf6e63e50da 874ac4db65096d6d3af7f50aa64

Loading...