Extension:Contributions

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Contributions

Release status: experimental

Implementation User activity, Page action, Special page
Description Polls wiki database for author contributions
Author(s) Tian Ming
Last version 1.0 (2011-09-08)
MediaWiki 1.10+
PHP 5.0+
License GPL License
Download Project page
Download snapshot
Subversion [Help]

Browse source code
View code changes
Note: no localisation updates provided by translatewiki.net.

Hooks used
ParserFirstCallInit

LanguageGetMagic

Check usage and version matrix

Contents

What can this extension do? [edit]

This extension is based on Extension:Contribution Scores for polling the Wiki Database to measure the contributions of individual athors. We determine six metrics in the light of related research’s findings to measure author contribution namely: number of pages, number of edits, number of words, number of views, edit longevity and user ratings. Finally, you will have a new Special Page titled "Contributions".

The Contributions extension is still working in progress. It depends on Extension:AjaxRatingScript.

Usage [edit]

Download instructions [edit]

The extension is available here: version1.0

Installation [edit]

  1. Make sure you have Extension:AjaxRatingScript installed
  2. Download the files and place them under $IP/extensions/Contributions
  3. Add the required tables and corresponding initialization to the database: EditDistance.sql (your designated database user needs to have CREATE rights on your MediaWiki database)
  4. Add the following code to your LocalSettings.php (at the bottom)
  5. Installation can be verified through Special:Version
require_once( "$IP/extensions/Contributions/Contributions.php" );
 
$wgContribScoreIgnoreBots = true;          // Exclude Bots from the reporting - Can be omitted.
$wgContribScoreIgnoreBlockedUsers = true;  // Exclude Blocked Users from the reporting - Can be omitted.
$wgContribScoreDisableCache = false;       // Set to true to disable cache for parser function and inclusion of table
$wgContribScoreReports = array(
     array(7,50),
     array(30,50),
     array(0,50));

See also [edit]

Extension:Contribution Scores

Extension:AjaxRatingScript