Extensão:Contribution Scores
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Modelo:Extensão }} infobox. |
Contribution Scores Estado de lançamento: sem manutenção |
|
---|---|
Implementação | Atividade do utilizador , Página espacial , Função do analisador |
Descrição | Procura no banco de dados wiki os usuários com maior volume de contribuição. |
Autor(es) | Tim Laquadiscussão |
Última versão | 1.26.1 (2023-09-03) |
MediaWiki | >= 1.34.0 |
Alterações à base de dados | Não |
Licença | GNU - Licença Pública Geral 2.0 ou superior |
Transferência | log |
Exemplo | |
|
|
Traduza a extensão Contribution Scores se ela estiver disponível em translatewiki.net | |
Problemas | Tarefas em aberto · Reportar um erro |
A extensão Contribution Scores procura no banco de dados wiki contribuidores com maior volume de contribuição - faz também em wiki com volumes altos como o translatewiki.net. A extensão tem a intenção de adicionar um jeito divertido de medir contribuidores para ver quanto eles estão ajudando.
Instalação
- Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado
ContributionScores
, na sua pastaextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContributionScores - Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
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 ] ];
- Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.
Contribution score
A nota é definida como (número únicos de páginas editadas) + 2 * raiz quadrada ((número de edições) - (número único de páginas editadas)).
page_count+SQRT(rev_count-page_count)*2
Customizar a aparência
Appearance
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;
}
Adicionando a link no sidebar
Edite MediaWiki:Sidebar e adicione a linha
** Special:Contributionscores|contributionscores
Uso
Páginas especiais
Você terá uma nova página Especial chamada "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
Nota de contribuição por Tim Laqua
{{#cscore:Tim Laqua|score}}
Mudanças feitas por Tim Laqua
{{#cscore:Tim Laqua|changes}}
Edições únicas feitas por Tim Laqua
{{#cscore:Tim Laqua|pages}}
Ver também
This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Unmaintained extensions/pt
- User activity extensions/pt
- Special page extensions/pt
- Parser function extensions/pt
- GPL licensed extensions/pt
- Extensions in Wikimedia version control/pt
- ParserFirstCallInit extensions/pt
- All extensions/pt
- Social tools/pt
- Extensions included in Canasta/pt
- Extensions included in Miraheze/pt
- Extensions included in WikiForge/pt
- Edit extensions/pt