Extension:StaffEdits

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
StaffEdits
Release status: stable
StaffEdits.png
Implementation User interface
Description Allows to tag edits as "official staff edits" in the edit view
Author(s) Jack Phoenix
Latest version 0.1.3 (2016-12-16)
MediaWiki 1.32+
License Public domain
Download
Example ShoutWiki
Parameters
$wgStaffEditsMessagePrefix
Added rights
staffedit
Hooks used
EditPage::showEditForm:initial
ListDefinedTags
ChangeTagsListActive
RecentChange_save
Translate the StaffEdits extension if it is available at translatewiki.net
Check usage and version matrix.

StaffEdits is an extension which enables users with the staffedit user right (i.e. ShoutWiki staff on ShoutWiki) to choose to tag their edits as "official ShoutWiki staff edits" in the action=edit mode in a way that cannot be faked by anyone.

When the extension is enabled, the staffedit tag is displayed on Special:Tags as well as on Special:RecentChanges, next to each and every staff edit, if there are any such edits.

Installation[edit]

  • Download and place the file(s) in a directory called StaffEdits in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'StaffEdits' );
    
  • Configure at your convenience
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

$wgStaffEditsMessagePrefix

This sets a simple lowercase abbreviation of the organization the Staff are a part of. So "sw" for ShoutWiki, or "wmf" for the Wikimedia Foundation, etc. Once you set this, you really shouldn't change it. Defaults to "sw".

system messages
user right and user group

The user right "staffedit" is by default set to the user group, e.g. "staff" which also comes with this exension:

$wgGroupPermissions['staff']['staffedit'] = true;

Example[edit]

The StaffEdits drop-down menu shown on edit view (action=edit) for privileged users (users who have the staffedit user right).