Manual:$wgPasswordPolicy/zh

细节
密码策略按以下形式

If the same check applies to a user via multiple groups, it will be applied with the  of the values. A fatal status means the password can't be used, even for login; a non-fatal error means the value is not accepted as a new password (on account creation or password change), but can be used for login; the user will be shown a (skippable) password change form. Removed in MW 1.35+, use  instead. Deprecated in MW 1.35+, use  instead.
 * etc. are user groups, plus the special group  which is required to be present and applies to everyone.
 * etc. are arbitrary check names, defined in the  subarray.
 * etc. are policy values, passed to the appropriate callback defined in the  subarray.
 * Alternatively,  could be an array with the fields   (same as above),   (when set to true, users will be shown a password change form during login if the check fails) and   (like   but the form cannot be skipped).
 * etc. are PHP callables, which receive three arguments: the defined value, the object and the password, and return a StatusValue.
 * Default checks (found in ):
 * &mdash; 使用者能夠設定的密碼最小長度
 * &mdash; 密碼短於這個設定值將不允許登入，無論密碼是否正確.
 * &mdash; 使用者能夠嘗試的最長密碼. Prevents DoS attacks with pbkdf2.
 * &mdash; 密碼不可符合用戶名
 * &mdash; Your password must not appear within your username.
 * &mdash; 禁用先前已用於MediaWiki單元測試中的密碼.
 * &mdash; 禁用廣為人知的常用密碼. 設定整數n來禁止前n個密碼.  如果你想要禁止檔案中所有常用密碼，使用常數 .  參見（MediaWiki中附帶的預設檔案，有1萬個密碼）.
 * &mdash; Same as the previous one, except uses the larger blacklist that comes with the wikimedia/password-blacklist library.
 * &mdash; Password not in best practices list of 100,000 commonly used passwords.

-{zh-hans:示例; zh-hant:範例;}-
This example shows how to change selected policies for all users:

This example shows how to change selected policies for users of the "sysop" group:

Disabling all password policies
For development machines, it might be helpful to disable all password policies, which can be done with the following line:

默认
