MediaWiki extensions manual
RecentActivity
Release status: stable
Implementation Parser function
Description Adds parser functions for listing recently created and edited articles.
Author(s)
  • Aran Dunkley
  • Luca Mauri
Latest version 1.6.1 (2020-05-31)
MediaWiki 1.33+
Database changes No
License GNU General Public License 2.0 or later
Download

GitLab:

Note:
No localisation updates are
provided by translatewiki.net .

The RecentActivity extension allows the generation of lists of recently created articles or recent edits either by anyone, or by a specific user. By default it will give five results ordered by most recent first in a bullet list format.

Installation

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

To users running MediaWiki 1.24 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.24 and earlier), instead of wfLoadExtension( 'RecentActivity' );, you need to use:

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

Configuration

$wgRAExclusionsCat
By default, articles that are members of the Excluded from RecentActivity category will not be shown in the list. The category used to exclude articles can be customized by assigning the string as a value to $wgRAExclusionsCat configuration variable.

Usage

Show the last five articles that have been edited
{{RecentActivity:type=edits}}
Show the last five articles that have been created
{{RecentActivity:type=new}}
Show the last five articles that have been created by user Foo
{{RecentActivity:type=new|user=Foo}}
Show the last ten articles that have been edited
{{RecentActivity:type=edits|count=10}}
Show the last five articles that have been edited, each preceded by two asterisks (useful for putting in treeviews)
{{RecentActivity:type=edits|format=**}}

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.