跳转到内容

Help:用户等级

本站通过SocialProfile开启了Wikipoint的计算,以及相对应的等级制度。另通过Editcount扩展与一定的计算公式,存在另一套积分算法和方案。

SocialProfile

等级划分

$wgUserLevels = [
    'Recruit' => 0,
    'Apprentice' => 1200,
    'Private' => 1750,
    'Corporal' => 2500,
    'Sergeant' => 5000,
    'Gunnery Sergeant' => 10000,
    'Lieutenant' => 20000,
    'Captain' => 35000,
    'Major' => 50000,
    'Lieutenant Commander' => 75000,
    'Commander' => 100000,
    'Colonel' => 150000,
    'Brigadier' => 250000,
    'Brigadier General' => 350000,
    'Major General' => 500000,
    'Lieutenant General' => 650000,
    'General' => 800000,
    'General of the Army' => 1000000,
];

Wikipoint获取方式

$wgUserStatsPointValues['edit'] = 50; // Points awarded on a mainspace edit
$wgUserStatsPointValues['vote'] = 0; // Points awarded for voting for an article
$wgUserStatsPointValues['comment'] = 20; // Points awarded for leaving a comment
$wgUserStatsPointValues['comment_plus'] = 20; // Points awarded if your comment gets a thumbs up
$wgUserStatsPointValues['comment_ignored'] = 0; // Points awarded if another user ignores your comments
$wgUserStatsPointValues['opinions_created'] = 20; // Points awarded for writing a blog article
$wgUserStatsPointValues['opinions_pub'] = 20; // Points awarded for having that article hit the "Blogs" page
$wgUserStatsPointValues['referral_complete'] = 20; // Points awarded for recruiting a new user
$wgUserStatsPointValues['friend'] = 20; // Points awarded for adding a friend
$wgUserStatsPointValues['foe'] = 0; // Points awarded for adding a foe
$wgUserStatsPointValues['gift_rec'] = 50; // Points awarded for receiving a gift
$wgUserStatsPointValues['gift_sent'] = 50; // Points awarded for giving a gift
$wgUserStatsPointValues['points_winner_weekly'] = 100; // Points awarded for having the most points for a week
$wgUserStatsPointValues['points_winner_monthly'] = 1000; // Points awarded for having the most points for a month
$wgUserStatsPointValues['user_image'] = 1000; // Points awarded for adding your first avatar
$wgUserStatsPointValues['poll_vote'] = 20; // Points awarded for taking a poll
$wgUserStatsPointValues['quiz_points'] = 20; // Points awarded for answering a quiz question
$wgUserStatsPointValues['quiz_created'] = 20; // Points awarded for creating a quiz question
$wgNamespacesForEditPoints = [ 0 ]; // Array of namespaces that can earn you points. Use numerical keys. Default is 0 -- only main namespace edits can earn a user points.

基于Editcount的盐式积分

计算公式

编辑积分 = 主条目编辑数 * 3 + 模板编辑数 * 2.5 + 帮助编辑数 * 2 + 分类编辑数 * 1 + 项目页面编辑数 * 1 + 文件编辑数 / 4 + 讨论编辑数 / 8

注意事项

  • 用户(User)用户讨论(User talk)均不计入此公式中。
  • 部分需要管理员权限编辑的名字空间不计入此公式中,因为现阶段计算这些数据没有意义。
  • 编辑积分只能作为参考数据,其数值并不代表编辑者的贡献多寡与水平高低。

用户编辑积分等级模板

由[[mcbbswiki:用户:Sheep-realms|Template:Color]]设计,盐酱编写代码的用户编辑积分等级显示模板,根据编辑积分计算等级,可以较为直观地展示编辑积分的大小。

代码:Widget:SaltUserScoreLevelTemplate:User edit score level

在页面的合适位置使用此模板即可(快速使用:{{User edit score level|用户名}}),详细使用方式见模板文档;因为使用起来比较简单,因此可以放入你的签名中。

参见

Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。