Phabricator のプロジェクト名 #ContributionScores

Extension:Contribution Scores

Jump to navigation Jump to search
This page is a translated version of the page Extension:Contribution Scores and the translation is 26% complete.

Other languages:
English • ‎português • ‎中文 • ‎日本語 • ‎한국어
MediaWiki 拡張機能マニュアル
OOjs UI icon advanced.svg
Contribution Scores
リリースの状態: 安定
実装 User activity, Special page, Parser function
説明 Polls wiki database for highest user contribution volume.
作者 Tim Laquatalk
最新バージョン 1.25.0 (2016-02-17)
MediaWiki 1.25+
データベースの変更 いいえ
ライセンス ライセンス未指定
$wgContribScoreIgnoreBots, $wgContribScoreIgnoreBlockedUsers, $wgContribScoresUseRealName, $wgContribScoreDisableCache, $wgContribScoreReports
User で翻訳を利用できる場合は、Contribution Scores 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。
問題点 未解決のタスク · バグを報告

The Contribution Scores extension polls the wiki database to locate contributors with the highest contribution volume – it is also in stable use on a high-volume wiki such as The extension is intended to add a fun metric for contributors to see how much they are helping out.

The score is defined as (number of unique pages edited) + 2 * square root ((number of edits) - (number of unique pages edited)).


  • ダウンロードして、ファイルを extensions/ フォルダー内の ContributionScores という名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    require_once "$IP/extensions/ContributionScores/ContributionScores.php";
    $wgContribScoreIgnoreBots = true;          // Exclude Bots from the reporting - Can be omitted.
    $wgContribScoreIgnoreBlockedUsers = true;  // Exclude Blocked Users from the reporting - Can be omitted.
    $wgContribScoresUseRealName = true;        // Use real user names when available - Can be omitted. Only for MediaWiki 1.19 and later.
    $wgContribScoreDisableCache = false;       // Set to true to disable cache for parser function and inclusion of table.
    //Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted.
    $wgContribScoreReports = array(
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。



You will have a new Special Page titled "Contribution Scores"


You can include this special page in to other pages using the following wikitext:


# 10 top contributors from the last 5 days

# 10 top contributors since the beginning of wiki

# 15 top contributors from the last 7 days, no tool links

# 15 top contributors from the last 3 days, not sortable and no tool links

Appearance Customization

The following CSS classes are used, but NOT defined - you can define them in your MediaWiki:Common.css article:

.contributionscores-wrapper       {  }
.contributionscores-title         { background-color: #aaaaaa; margin-bottom: 0px; padding-left: .4em; }
.contributionscores .header { background-color: #cccccc; border-bottom: 1px solid #999999; font-weight: bold; }
.contributionscores .odd        { background-color: #eeeeee; }
.contributionscores .header td   { padding-left: .2em; padding-right: .2em; }
.contributionscores .content   { padding-left: .2em; padding-right: .2em; }

#cscore Parser Function Examples

Contribution Score for Tim Laqua

{{#cscore:Tim Laqua|score}}

Changes Made for Tim Laqua

{{#cscore:Tim Laqua|changes}}

Unique Pages Edited for Tim Laqua

{{#cscore:Tim Laqua|pages}}

Adding a link to in the sidebar

Edit MediaWiki:Sidebar and add the line

** Special:Contributionscores|contributionscores