Jump to content

Extension:Contributors/pt

From mediawiki.org
This page is a translated version of the page Extension:Contributors and the translation is 0% complete.
Manual de extensões do MediaWiki
Contributors
Estado de lançamento: sem manutenção
Implementação Atividade do utilizador , Página espacial
Descrição Summarizes the most prominent contributors to an article
Autor(es) Rob Church (original), Yaron Koren, Ike Hecht
Última versão 2.1 (2023-09-22)
Política de compatibilidade Original mantém a compatibilidade com versões anteriores.
MediaWiki 1.35-1.39
PHP 7.3+
Alterações à base de dados Sim
Tabelas contributors
Licença GNU - Licença Pública Geral 2.0 ou superior
Transferência
  • $wgContributorsLinkUsers
Quarterly downloads 3 (Ranked 133rd)
Traduza a extensão Contributors se ela estiver disponível em translatewiki.net
Problemas Tarefas em aberto · Reportar um erro

The Contributors extension provides an includable special page which summarizes the most prominent contributors to an article. The page can be accessed as a normal special page, or included into other pages to provide an automated list, which is useful for attribution.

Installation

  • Exporte e coloque o ficheiro, ou ficheiros, num diretório chamado Contributors, na sua pasta extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Contributors
  • Acrescente o seguinte código ao fundo do ficheiro $LocalSettings:
    wfLoadExtension( 'Contributors' );
    
  • Execute o script de atualização que irá criar automaticamente as tabelas da base de dados necessárias para esta extensão.
  • Run the script that will populate the database with contributors from existing articles:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
  • Yes Pronto – Na página especial Special:Version da sua wiki verifique se a extensão foi instalada.
  • upgrade: php extensions/Contributors/maintenance/PopulateContributorsTable.php


Usage

The list can be accessed as a conventional special page, or through inclusion into another page.

Special page

The special page is located at "Special:Contributors" and provides an interface to select an article. You can also access this page using the "main contributors" link in the toolbox when viewing an article; the results for that page will be shown.

Transclusion

You can transclude a list of names into another page using the inclusion mechanism, e.g.

{{Special:Contributors/Article}}

You can also create a template with the following code on it, and add it to your articles.

{{Special:Contributors/{{FULLPAGENAME}}}}

will produce a list of the most prominent contributors to Article.

Parser function

There's also a parser function that displays the contributors in a plain list, like so: Joe, Moe and Jane.

{{#contributors:{{FULLPAGENAME}}}}

You can also filter anons from the list of contributors, like so:

{{#contributors:{{FULLPAGENAME}}|filteranon}}

Parameters

  • $wgContributorsLinkUsers links the user names to their User page. Doesn't affect the Special page, which is always linked. (default true)

See also