Extension:ContributionsList

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
ContributionsList
Release status: beta
Implementation Parser function
Description Generates a list of user contributions using a parser function
Author(s) Ike Hecht (Tosfostalk)
Latest version 0.3 (February 2018)
MediaWiki 1.31+ (master)
PHP 5.3
Database changes No
License GNU General Public License 2.0 or later
Download
Hooks used
ParserFirstCallInit
Translate the ContributionsList extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

The ContributionsList extension generates a list of user contributions using a parser function.

Installation[edit]

  • Download and place the file(s) in a directory called ContributionsList in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ContributionsList' );
    
  • 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( 'ContributionsList' );, you need to use:

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

Usage[edit]

 {{#contributionslist:
 | user=username
 | category=categoryname
 | type=createonly/notcreate/all
 | datefrom=fromdate
 | dateto=todate
 | format=plain/ol/ul
 }}
user 
The username of the user whose contributions will be displayed. Mandatory.
category
Restrict results to a certain category.
type 
Set to either:
createonly
Show only contributions where this user has created a page.
notcreate
Show only contributions where this user has not created the page.
all
Show all contributions for this user. (default)
datefrom
Show only contributions on or after this date. The date can be in any format accepted by PHP's strtotime() function.
dateto
Show only contributions on or before this date.
format
The format to be used for display of the contributions. Can be set to plain, ol or ul. Defaults to ul.

See also[edit]