Extension:SimpleChanges

From mediawiki.org
MediaWiki extensions manual
SimpleChanges
Release status: beta
Implementation Special page
Description Special page that displays a barebones Recent Changes list - ideal for transclusion
Author(s) Ike Hecht (tosfostalk)
Latest version 1.1 (July 2015)
MediaWiki >= 1.34.0
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
$wgSimpleChangesOnlyContentNamespaces, $wgSimpleChangesOnlyLatest, $wgSimpleChangesShowUser
Quarterly downloads 11 (Ranked 129th)
Translate the SimpleChanges extension if it is available at translatewiki.net

The SimpleChanges extension creates a Special page that displays a barebones Recent Changes list. It is ideal for transclusion. For example, you may want a list of recent changes on your Main page, but you don't need all the extra text that shows up on Special:Recentchanges. This extension displays only the titles of the modified pages. You may also want to restrict your list to show only pages in a content namespace. This extension allows that while maintaining the features and options of the standard Recent Changes page. It also prevents log actions from displaying.

Installation[edit]

  • Download and move the extracted SimpleChanges 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/SimpleChanges
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'SimpleChanges' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

$wgSimpleChangesOnlyContentNamespaces
Defaults to false. Change this to true after including the extension in order to restrict the list to display only content namespaces. See Manual:$wgContentNamespaces for more information.
$wgSimpleChangesOnlyLatest
Defaults to true, which avoids duplicate titles showing up in the list by only showing changes that match each page's most recent revision.
$wgSimpleChangesShowUser
Defaults to false. Change this to true after including the extension to show the user name of the user who made the change, in parentheses.

Usage[edit]

Transclusion[edit]

You can transclude the simple list of Recent Changes in the same way you would transclude the standard Recent Changes page. It uses the same format and offers the same options. See the Recent Changes help page for more information. Here are some examples:

This special page can be transcluded, with the first unnamed parameter specifying how many entries should be displayed.

{{Special:SimpleChanges/50}}

Additional parameters may be used in a comma separated list such as:

{{Special:SimpleChanges/days=5,limit=40}}

The Recent Changes help page has more parameters, which should all work with this extension.

Special Page[edit]

Navigate to Special:SimpleChanges for a customizable, simple display of the Recent Changes list.

See also[edit]