Extension: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.1 (February 2020) |
MediaWiki | 1.31+ |
PHP | 5.3 |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | |
Quarterly downloads | 1 (Ranked 163rd) |
Translate the ContributionsList extension if it is available at translatewiki.net | |
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 yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'ContributionsList' );
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.