Punteggi dei contributi
Stato della release: stabile |
|
|---|---|
| Implementazione | Attività utente, Pagina speciale, Funzione parser |
| Descrizione | Interroga il database del wiki per individuare gli utenti con il maggior volume di contributi. |
| Autore(i) | Tim Laquadiscussione |
| Versione | 1.26.1 (2023-09-03) |
| MediaWiki | >= 1.40.0 |
| Modifiche al Database | No |
|
|
| Licence | GNU General Public License 2.0 or later |
| Scaricare | log |
| Esempio | |
| Traduci l'estensione Contribution Scores se è disponibile su translatewiki.net | |
| Problemi | Compiti aperti · Riportare un bug |
L'estensione Contribution Scores interroga il database del wiki per identificare gli utenti che hanno fornito il maggior numero di contributi. L'estensione è pensata per aggiungere una metrica ludica che permetta ai contributori di vedere quanto stanno aiutando il progetto.
Installazione
- Download and move the extracted
ContributionScoresfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContributionScores
- Aggiungi il seguente codice al tuo $LocalSettings (preferibilmente alla fine):
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 it to true to disable the cache for the parser function and the inclusion of the 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 ] ];
Done – Naviga in Special:Versionnella tua wiki per verificare che l'estensione sia stata installata correttamente.
Punteggio dei contributi
Il punteggio è definito come (numero di pagine uniche modificate) + 2 * radice quadrata ((numero di modifiche) - (numero delle pagine uniche modificate)):
page_count+SQRT(rev_count-page_count)*2
Personalizzazione
Aspetto
Le seguenti classi CSS sono utilizzate ma NON definite - puoi definirle nel tuo articolo MediaWiki:Common.css:
.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;
}
Aggiungere un collegamento nella barra laterale
Modificare MediaWiki:Sidebar ed aggiungere la linea
** Special:Contributionscores|contributionscores
Uso
Pagina speciale
Sarà disponibile una nuova pagina speciale denominata Punteggi dei contributi.
Inclusion/Transclusion
È possibile inserire questa pagina speciale in altre pagine utilizzando il seguente wikitesto:
{{Special:ContributionScores/<limit>/<days>/<options>}}
I 10 utenti con il maggior numero di contributi negli ultimi 5 giorni
{{Special:ContributionScores/10/5}}
I 10 utenti con il maggior numero di contributi dall'avvio del wiki
{{Special:ContributionScores/10/all}}
- I 15 principali contributori degli ultimi 7 giorni, senza link agli strumenti
{{Special:ContributionScores/15/7/notools}}
- I 15 utenti con il maggior numero di contributi negli ultimi 3 giorni, non ordinabili e senza link agli strumenti
{{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}}
See also
| This extension is included in the following wiki farms/hosts and/or packages: |
- Stable extensions/it
- User activity extensions/it
- Special page extensions/it
- Parser function extensions/it
- ParserFirstCallInit extensions/it
- GPL licensed extensions/it
- Extensions in Wikimedia version control/it
- All extensions/it
- Social tools/it
- Extensions included in Canasta/it
- Extensions included in Miraheze/it
- Extensions included in ProWiki/it
- Edit extensions/it
