MediaWiki extensions manual
GroupsSidebar
Release status: stable
Implementation User interface
Description Allows to add sidebar elements for specific user groups
Author(s) churchofemacs (Church of emacstalk)
Latest version 0.3.0 (2022-07-19)
MediaWiki 1.35+
License GNU General Public License 3.0 or later
Download
Hooks used
  • SidebarBeforeOutput
Quarterly downloads 14 (Ranked 156th)
Translate the GroupsSidebar extension if it is available at translatewiki.net

The GroupsSidebar extension allows to add sidebar elements for specific user groups. If you have usergroups and would like to add sidebar elements just for certain usergroups, you can use this extension.

Installation

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

To users running MediaWiki 1.34 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.34 and earlier), instead of wfLoadExtension( 'GroupsSidebar' );, you need to use:

require_once "$IP/extensions/GroupsSidebar/GroupsSidebar.php";

System messages

The resulting message names are "MediaWiki:Sidebar-groupname" whereas groupname is something like "sysop" or "user". For example, the message name could be "MediaWiki:Sidebar-sysop". You can edit it the same way you edit the normal sidebar.

See also

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.