Extension:SimpleChanges

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
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.25, likely earlier versions as well
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
Parameters
$wgSimpleChangesOnlyContentNamespaces, $wgSimpleChangesOnlyLatest, $wgSimpleChangesShowUser
Translate the SimpleChanges extension if it is available at translatewiki.net
Check usage and version matrix.

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 place the file(s) in a directory called SimpleChanges in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/SimpleChanges/SimpleChanges.php";
    
  • 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]