Jump to content

Punteggi dei contributi

From mediawiki.org
This page is a translated version of the page Extension:Contribution Scores and the translation is 76% complete.
Manuale sulle Estensioni MediaWiki
Contribution Scores
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
  • $wgContribScoreIgnoreBots
  • $wgContribScoreIgnoreBlockedUsers
  • $wgContribScoreIgnoreUsernames
  • $wgContribScoresUseRealName
  • $wgContribScoreDisableCache
  • $wgContribScoreReports
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 ContributionScores folder to your extensions/ 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 ]
    ];
    
  • Yes Done – Naviga in Special:Version nella 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