扩展:Contributors
此扩展目前不再活跃维护! 尽管它可能仍然工作,但任何错误报告或功能请求将很可能被忽略。 如果您对承担开发与维护该扩展的任务工作感兴趣,您可以请求自己的存储库。 As a courtesy, you may want to contact the author. 或者您应移除该模板,并在页面的{{Extension }}信息框中将您自己列为扩展的维护人员。 |
Contributors 发行状态: 不再維護 |
|
---|---|
实现 | 用户活动 , 特殊页面 |
描述 | 概括出文章最突出的贡献者 |
作者 | Rob Church (original), Yaron Koren, Ike Hecht |
最新版本 | 2.1 (2023-09-22) |
兼容性政策 | master分支维持向后兼容。 |
MediaWiki | 1.35-1.39 |
PHP | 7.3+ |
数据库更改 | 是 |
表 | contributors |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | |
|
|
季度下載量 | 3 (Ranked 133rd) |
前往translatewiki.net翻譯Contributors扩展 | |
問題 | 开启的任务 · 报告错误 |
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.
安裝
- 下载文件,并将解压后的
Contributors
文件夹移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Contributors - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'Contributors' );
- 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
- Run the script that will populate the database with contributors from existing articles:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
- upgrade:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
用法
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. (defaulttrue
)
参见
- Extension:PageAuthors - Gets a sensible list of the main page authors.
- 扩展:贡献积分 - adds a ==Contributors== footer on each page.
- 扩展:语义额外特殊属性 - See property
_EUSER
. - 手册:$wgMaxCredits - displays credits without requiring an extension, appending
?action=credits
to the url builtin MediaWiki feature
- Unmaintained extensions/zh
- User activity extensions/zh
- Special page extensions/zh
- GPL licensed extensions/zh
- Extensions in Wikimedia version control/zh
- ArticleRevisionVisibilitySet extensions/zh
- LoadExtensionSchemaUpdates extensions/zh
- PageSaveComplete extensions/zh
- ParserFirstCallInit extensions/zh
- SidebarBeforeOutput extensions/zh
- SkinTemplateToolboxEnd extensions/zh
- All extensions/zh
- Edit extensions/zh