Manual:$wgAutopromote/zh

详情
此数组包含自动升级的标准. 语法是：

这里 可以是：


 * 一个单一数值
 * 一系列条件

可能的条件
可能的条件（在中定义；扩展可以通过钩子添加更多）：

有和没有参数的条件
每种情况都可以用两种形式写成：

条件集
条件集具有以下语法：

There are 4 operands available:


 * & (AND) — 如果用户符合所有条件，则授权
 * | (OR) — 如果用户符合任何条件，则授权
 * ^ (XOR) — 如果用户只匹配两个条件中的一个，则授权
 * ! (NOT) &mdash; promote if user matches no conditions.

The sets of conditions are evaluated recursively, so you can use nested sets of conditions linked by operands.

敬告
Autopromotion doesn't actually add users to a group; MediaWiki will check whether a user meets the conditions for autopromotion whenever it checks the user's rights or effective groups. This means that a user will only appear to be in a group on Special:ListUsers if they were added to it through Special:UserRights.

Since you can use  instead, which adds users normally to a group, if they match the given criteria and have not been demoted before. Alternatively, (MW 1.16+) might be useful for you.

例子
If you wanted to autopromote each user to captain upon their having both confirmed their email address and either made at least 100 edits or registered their account at least 60 days ago, you would use:

Note that this would get rid of all other autopromote groups; to instead add the captain autopromote group while keeping those autopromote groups that already exist, one would use: