Extension:Contribution Scores/de
![]() Freigabestatus: stabil |
|
---|---|
![]() |
|
Einbindung | Benutzeraktivität , Spezialseite , Parser-Funktion |
Beschreibung | Polls wiki database for highest user contribution volume. |
Autor(en) | Tim LaquaDiskussion |
Letzte Version | 1.26.0 (2021-02-08) |
MediaWiki | 1.33+ |
Datenbankänderungen | Nein |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | log |
Beispiel | |
$wgContribScoreIgnoreBots, $wgContribScoreIgnoreBlockedUsers, $wgContribScoreIgnoreUsernames, $wgContribScoresUseRealName, $wgContribScoreDisableCache, $wgContribScoreReports |
|
Public wikis using | 368 (Ranked 346th) |
Übersetze die Contribution Scores-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
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 translatewiki.net. 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)).
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
ContributionScores
im Ordnerextensions/
ablegen. - Folgenden Code am Ende der
LocalSettings.php
einfügen:wfLoadExtension( 'ContributionScores' ); // Exclude Bots from the reporting - Can be omitted. $wgContribScoreIgnoreBots = true; // Exclude Blocked Users from the reporting - Can be omitted. $wgContribScoreIgnoreBlockedUsers = true; // Exclude specific usernames from the reporting - Can be omitted. $wgContribScoreIgnoreUsernames = []; // Use real user names when available - Can be omitted. Only for MediaWiki 1.19 and later. $wgContribScoresUseRealName = true; // Set to true to disable cache for parser function and inclusion of table. $wgContribScoreDisableCache = false; // Use the total edit count to compute the Contribution score. $wgContribScoreUseRoughEditCount = false; // Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50" - Can be omitted. $wgContribScoreReports = [ [ 7, 50 ], [ 30, 50 ], [ 0, 50 ] ];
Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Für Benutzer, die MediaWiki in der Version 1.35 und früher betreiben:
Die oben stehenden Anweisungen beschreiben die neue Installationsanweisung für diese Erweiterung unter der Verwendung von wfLoadExtension()
.
Wird diese Erweiterung in einer dieser früheren Versionen (MediaWiki 1.35 und früher) – an Stelle von wfLoadExtension( 'ContributionScores' );
– installiert, benutze:
require_once "$IP/extensions/ContributionScores/ContributionScores.php";
Contribution score
The contribution score is computed using the following SQL formula:
page_count+SQRT(rev_count-page_count)*2
Anpassung
Aussehen
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: #aaa;
margin-bottom: 0px;
padding-left: .4em;
}
.contributionscores .header {
background-color: #ccc;
border-bottom: 1px solid #999;
font-weight: bold;
}
.contributionscores .odd {
background-color: #eee;
}
.contributionscores .header td {
padding-left: .2em;
padding-right: .2em;
}
.contributionscores .content {
padding-left: .2em;
padding-right: .2em;
}
Adding a link to in the sidebar
Edit MediaWiki:Sidebar and add the line
** Special:Contributionscores|contributionscores
Verwendung
Spezialseite
You will have a new Special Page titled "Contribution Scores"
Inclusion/Transclusion
You can include this special page in to other pages using the following wikitext:
{{Special:ContributionScores/<limit>/<days>/<options>}}
- 10 top contributors from the last 5 days
{{Special:ContributionScores/10/5}}
- 10 top contributors since the beginning of wiki
{{Special:ContributionScores/10/all}}
- 15 top contributors from the last 7 days, no tool links
{{Special:ContributionScores/15/7/notools}}
- 15 top contributors from the last 3 days, not sortable and no tool links
{{Special:ContributionScores/15/3/nosort,notools}}
#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}}
Siehe auch
![]() | Diese Erweiterung ist in den folgenden Paketen und/oder WikiFarmen beinhalten: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Stable extensions/de
- User activity extensions/de
- Special page extensions/de
- Parser function extensions/de
- GPL licensed extensions/de
- Extensions in Wikimedia version control/de
- ParserFirstCallInit extensions/de
- All extensions/de
- Social tools/de
- Extensions included in Canasta/de
- Extensions included in Miraheze/de
- Edit extensions/de