扩展:AuthorInfo

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:AuthorInfo and the translation is 45% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎polski • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
Author Info
发布状态: 测试
px
实现 Tag
描述 Displays a list of authors that contributed to an article, sorted by number of edits.
作者 ThomasKeldertalk
MediaWiki Tested on 1.12-1.13 (but could work on older versions)
许可协议 Apache License 2.0
下载 svn.bigcat.unimaas.nl
例子 Homo_sapiens:Sandbox
翻译AuthorInfo扩展如果在translatewiki.net可用
检查使用和版本矩阵。

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.

用法

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:

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

$IP代表MediaWiki安装的安装路径(或“目录”),即LocalSettings.phpindex.php所在的目录

安装

要安装此扩展,将下列代码加入$LocalSettings即可:

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

备注

There appears to be a typo in AuthorInfo.php which causes the incorrect path to be created for the javascript and therefore fails:

第六行:

$wfAuthorInfoPath = WPI_URL . "/extensions/AuthorInfo";

Should be:

$wfAuthorInfoPath = $WPI_URL . "/extensions/AuthorInfo";

参见