Manual:$wgAutopromote/id

Detail
Larik ini berisi kriteria promosi otomatis. Sintaksnya adalah:

di sini mungkin:


 * Kondisi tunggal
 * SEBUAH set ketentuan

Kondisi yang memungkinkan
Kondisi yang memungkinkan (ditentukan dalam ;ekstensi dapat menambahkan lebih banyak melalui hook ):

Kondisi dengan dan tanpa argumen
Setiap kondisi dapat ditulis dalam dua bentuk:

Set kondisi
Kumpulan kondisi memiliki sintaks berikut:

Ada 4 operan yang tersedia:


 * & (AND) — promosikan jika pengguna cocok dengan kondisi semua
 * | (OR) — promote if user matches any condition
 * ^ (XOR) — promote if user matches only one of two conditions
 * ! (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.

Peringatan
Autopromotion does not 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. Atau, (MW 1.16+) mungkin berguna untuk Anda.

Contoh
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: