Extension:CategoryWatch

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
CategoryWatch
Release status: stableCategory:Stable extensions
Implementation NotifyCategory:Notification extensions
Description Extends watchlist functionality to include notification about membership changes of watched categories.
Author(s)
Latest version 2.0.0 (2018-08-02)
MediaWiki 1.27+Category:Extensions with manual MediaWiki version
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgCategoryWatchNotifyEditor
  • $wgCategoryWatchUseAutoCat
  • $wgCategoryWatchUseAutoCatRealName
Quarterly downloads 3 (Ranked 97th)
Translate the CategoryWatch extension if it is available at translatewiki.net
Category:All extensions

The CategoryWatch extension extends watchlist functionality to include notification about membership changes of watched categories.

The extension integrates with Echo notifications.

Rationale

A feature that's missing from the MediaWiki Watchlist functionality is that if you watch a category page, you will only be notified when the content of the category page text changes. You won't be notified when pages are added to or removed from that category though which is probably the main information you were wanting when deciding to watch a category page.

This extension was developed primarily to be used in conjunction with the RecordAdmin extensions (which is obsolete), but it's also very useful by itself. When used with these extensions, it's used to allow roles to be notified when work items have changed state and been moved into a category they're responsible for.

Installation

  • Download and move the extracted CategoryWatch folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryWatch
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'CategoryWatch' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

  • In PreferencesWatchlist, enable "Add all pages in a category to your watchlist when you add a category"
  • $wgCategoryWatchNotifyEditor can be set to true which will allow the user who re-categorises an article to also receive the notification message if it is a category they are watching. This is useful so that the editor has an audit trail of all membership changes to categories they're watching.
  • $wgCategoryWatchUseAutoCat can be set to true which causes users to automatically be watching a category of the name Category:Automatically watched by <USERNAME> (set it the categorywatch-autocat message). For example, if you were logged in to the wiki as User:Foo, then you would automatically be notified of any changes to articles in Category:Automatically watched by Foo.
  • $wgCategoryWatchUseAutoCatRealName modifies the automatically watched category function to work with real names instead of usernames. If this was set to true for the example discussed in the previous paragraph, the category name might be something like Category:Automatically watched by Henry McFoo.

See also

Category:Category extensions Category:Watchlist extensions
Category:All extensions Category:BeforeCreateEchoEvent extensions Category:CategoryAfterPageAdded extensions Category:CategoryAfterPageRemoved extensions Category:Category extensions Category:EchoGetBundleRules extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:GetPreferences extensions Category:Notification extensions Category:Stable extensions Category:Watchlist extensions