Extension:AuthorInfo

From MediaWiki.org
Jump to: navigation, search

Other languages:
català • ‎Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎sicilianu
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
Author Info

Release status:Extension status beta

px
ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Displays a list of authors that contributed to an article, sorted by number of edits.
Author(s)Template:Extension#username ThomasKeldertalk
MediaWikiTemplate:Extension#mediawiki Tested on 1.12-1.13 (but could work on older versions)
LicenseTemplate:Extension#license Apache License 2.0
Download svn.bigcat.unimaas.nl
ExampleTemplate:Extension#example Homo_sapiens:Sandbox

Translate the AuthorInfo extension if it is available at translatewiki.net

Check usage and version matrix.

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.

Usage[edit]

Add this text to the page where you want to show the list of authors for:

<AuthorInfo limit="4"></AuthorInfo>

Download instructions[edit]

Download the following files:

And place them in $IP/extensions/ExtensionName/ExtensionName.php.

$IP stands for the Installation Path (or "directory") of your MediaWiki installation, the same directory that holds LocalSettings.php, index.php etc..

Installation[edit]

To install this extension, add the following to LocalSettings.phpManual:LocalSettings.php:

#add configuration parameters here
#setup user rights here
require_once("$IP/extensions/AuthorInfo/AuthorInfo.php");

Notes[edit]

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";

See also[edit]