Extensão:AuthorInfo
Jump to navigation
Jump to search
Author Info Estado da versão: beta |
|
---|---|
![]() |
|
Implementação | Tag |
Descrição | Displays a list of authors that contributed to an article, sorted by number of edits. |
Autor(es) | ThomasKeldertalk |
MediaWiki | Tested on 1.12-1.13 (but could work on older versions) |
Licença | Apache License 2.0 |
Download | svn.bigcat.unimaas.nl |
Exemplo | Homo_sapiens:Sandbox |
Traduzir a extensão AuthorInfo, se estiver disponível no translatewiki.net | |
Verificar uso e matriz de versões |
The AuthorInfo extension displays a list of users that contributed to an article. The list is sorted by number of edits and you can optionally set maximum number of users to display.
This extension was built for the WikiPathways project. You can find an example here.
Uso
Add this text to the page where you want to show the list of authors for:
<AuthorInfo limit="4"></AuthorInfo>
Download instructions
Download the following files:
- http://svn.bigcat.unimaas.nl/wikipathways/trunk/wpi/extensions/AuthorInfo/AuthorInfo.css
- http://svn.bigcat.unimaas.nl/wikipathways/trunk/wpi/extensions/AuthorInfo/AuthorInfo.js
- http://svn.bigcat.unimaas.nl/wikipathways/trunk/wpi/extensions/AuthorInfo/AuthorInfo.php
And place them in $IP/extensions/ExtensionName/ExtensionName.php
.
A variável $IP refere-se ao caminho (ou “diretório”) de sua instalação do MediaWiki, o mesmo diretório que contém os arquivos LocalSettings.php, index.php, etc.
Instalação
To install this extension, add the following to LocalSettings.php :
#add configuration parameters here
#setup user rights here
require_once("$IP/extensions/AuthorInfo/AuthorInfo.php");
Notas
There appears to be a typo in AuthorInfo.php
which causes the incorrect path to be created for the javascript and therefore fails:
Line 6:
$wfAuthorInfoPath = WPI_URL . "/extensions/AuthorInfo";
Should be:
$wfAuthorInfoPath = $WPI_URL . "/extensions/AuthorInfo";