扩展:Contributors

This page is a translated version of the page Extension:Contributors and the translation is 30% complete.
MediaWiki擴充功能手冊
OOjs UI icon advanced-invert.svg
Contributors
发布状态: 稳定版
Contributors.png
实现 使用者動態 , 特殊页面
描述 概括出文章最突出的贡献者
作者 Rob Church (original), Yaron Koren, Ike Hecht
最新版本 2.0 (2015-07-08)
MediaWiki 1.25+
PHP 5.4+
数据庫更改
contributors
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
  • $wgContributorsLinkUsers
翻譯Contributors擴充功能如在translatewiki.net可用

检查使用和版本矩阵。

问题 尚未完成的工作 · 回報錯誤

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.

安装

  • 下载文件,并将其放置在您extensions/文件夹中的Contributors目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/Contributors/Contributors.php";
    
  • 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
  • Run the script that will populate the database with contributors from existing articles:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

用法

The list can be accessed as a conventional special page, or through inclusion into another 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.

引用/嵌入

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}}

参数

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

参见