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. It also means you can't directly remove a user from an autopromotion group through Special:UserRights: might be useful for you, or if you're not using MediaWiki 1.16+, a workaround is available.

例子
If you wanted to autopromote each user to captain upon his having both confirmed his email address and either made at least 100 edits or registered his 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: