Extension:RecentActivity
From MediaWiki.org
![]() |
This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc. Note: No localisation updates are provided for this extension by translatewiki.net. |
RecentActivity Release status: stable |
|
---|---|
Implementation | Parser function |
Description | Adds parser functions for listing recently created and edited articles. |
Author(s) | Aran Dunkley (Nadtalk) |
Latest version | 1.1.1 (2012-05-25) |
MediaWiki | all versions |
Database changes | No |
License | GPL |
Download | GitHub |
Translate the RecentActivity extension if it is available at translatewiki.net |
|
Check usage and version matrix; code metrics |
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.
Usage[edit | edit source]
- 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=**}}
Installation[edit | edit source]
- Copy the code into a file and extract the tarball in your
extensions/
folder. It should generate a new folder calledRecentActivity
directly inside yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/RecentActivity/RecentActivity.php";
- If necessary configure at your convenience
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Configuration[edit | edit source]
- Exclusions
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 set in the $wgRecentActivityExclusionsCat
configuration variable.