Extension:Contributors

MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
Contributors
Release status: stable
Contributors.png
Implementation User activity , Special page
Description Summarizes the most prominent contributors to an article
Author(s) Rob Church (original), Yaron Koren, Ike Hecht
Latest version 2.0 (2015-07-08)
MediaWiki 1.25+
PHP 5.4+
Database changes Yes
Tables contributors
License GNU General Public License 2.0 or later
Download
  • $wgContributorsLinkUsers
Translate the Contributors extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

The Contributors extension provides an includable special page which summarizes the most prominent contributors to an article. The page can be accessed as a normal special page, or included into other pages to provide an automated list, which is useful for attribution.

Installation

  • Download and place the file(s) in a directory called Contributors in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Contributors/Contributors.php";
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Run the script that will populate the database with contributors from existing articles:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

The list can be accessed as a conventional special page, or through inclusion into another page.

Special page

The special page is located at "Special:Contributors" and provides an interface to select an article. You can also access this page using the "main contributors" link in the toolbox when viewing an article; the results for that page will be shown.

Transclusion

You can transclude a list of names into another page using the inclusion mechanism, e.g.

{{Special:Contributors/Article}}

You can also create a template with the following code on it, and add it to your articles.

{{Special:Contributors/{{FULLPAGENAME}}}}

will produce a list of the most prominent contributors to Article.

Parser function

There's also a parser function that displays the contributors in a plain list, like so: Joe, Moe and Jane.

{{#contributors:{{FULLPAGENAME}}}}

You can also filter anons from the list of contributors, like so:

{{#contributors:{{FULLPAGENAME}}|filteranon}}

Parameters

  • $wgContributorsLinkUsers links the user names to their User page. Doesn't affect the Special page, which is always linked. (default true)

See also