Jump to content

扩展:贡献积分

From mediawiki.org
This page is a translated version of the page Extension:ContributionCredits and the translation is 61% complete.
MediaWiki扩展手册
ContributionCredits
发行状态: 稳定版
实现 皮肤
描述 在页脚上显示贡献积分
作者
维护者 Sophivorus
最新版本 3.1 (2019-04-04)
MediaWiki 1.29+
数据库更改
许可协议 GNU通用公眾授權條款3.0或更新版本
下載
示例 http://proteopedia.org

  • $wgContributionCreditsHeader
  • $wgContributionCreditsUseRealNames
季度下載量 4 (Ranked 125th)
前往translatewiki.net翻譯ContributionCredits扩展

The ContributionCredits extension adds an automatically generated list of the page contributors to the end of every page in the wiki.

用法

The extension works out of the box, no configuration is needed. Just enable the extension and see the credits displayed at the bottom of every page in the main namespace.

安裝

  • 下载文件,并将解压后的ContributionCredits文件夹移动到extensions/目录中。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ContributionCredits
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'ContributionCredits' );
    
  • 按需求配置
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

配置

参数名称 默认值 描述
$wgContributionCreditsHeader false Show the credits as a full section with a list, rather than a compact list
$wgContributionCreditsUseRealNames false 使用真实姓名,而不是用户名
$wgContributionCreditsUsersExclude [] List of user names to exclude from the contributors list, for example:
$wgContributionCreditsUsersExclude = [
	'MediaWiki default',
	'Maintenance Script',
];
$wgContributionCreditsExcludedCategories [] Array of categories whose pages will not show credits, for example:
$wgContributionCreditsExcludedCategories = [
	'Category:No credits',
	'Category:High visibility pages',
];


参见