Manual:InitUserPreference.php/zh
Appearance
| MediaWiki文件: initUserPreference.php | |
|---|---|
| 位置: | maintenance/ |
| 源代码: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| 类: | InitUserPreference |
详情
initUserPreference.php is a maintenance script that initializes a user preference based on the value of another preference.
选项
| 选项 | 说明 | 必需 |
|---|---|---|
| --target | Name of the user preference to initialize | Required |
| --source | Name of the user preference to take the value from | Required |
Usage
php maintenance/run.php initUserPreference target source
Terminal
$ php maintenance/run.php initUserPreference --target visualeditor-hidebetawelcome --source rcfilters-rc-collapsed Initializing 'visualeditor-hidebetawelcome' based on the value of 'rcfilters-rc-collapsed' Processed 7 user(s) Finished!