扩展:更改用户名
A request to archive this extension has been made on Phabricator. See 任务T331218 for the archival request and the rationale for the request, and to leave comments about the request. |
![]() 发行状态: 穩定版 |
|
---|---|
![]() |
|
实现 | 用户身份 , 特殊页面 , 函数钩 |
描述 | 提供一个允许更改用户的用户名的特殊页面 |
作者 | Ævar Arnfjörð Bjarmason讨论 |
最新版本 | 持续更新 |
MediaWiki | <= 1.39.x |
数据库更改 | 否 |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | README |
季度下載量 | 313 (Ranked 33rd) |
正在使用的公开wiki数 | 2,792 (Ranked 182nd) |
前往translatewiki.net翻譯Renameuser扩展 | |
問題 | 开启的任务 · 报告错误 |
The Renameuser extension provides a special page which allows authorized users to rename user accounts. This will cause page histories, etc. to be updated. If you want to rename an account "into" another, already existing one, you need the User Merge and Delete extension.
安装
- 下载文件,并将其放置在您
extensions/
文件夹中的Renameuser
目录内。 - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'Renameuser' );
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
用法
- 行政员:前往页面
Special:RenameUser
- Enter the name of the user to be renamed, and the desired new name, toggle the options to move user/talk pages and their subpages and to create redirects as desired, and click OK
The user will be renamed, and (if the appropriate option was checked) the user page, user talk page and all their subpages will be moved as well.
move-subpages
' userright. The number of subpages moved is not limited by the $wgMaximumMovedPages
parameter. The extension will also move all css
, js
and move-protected pages.You can grant other groups the right to rename users, for example:
$wgGroupPermissions['sysop']['renameuser'] = true;
注释
- In case 扩展:中央认证 is installed, you'll get a warning if you try to rename a local user from an account attached to a global account or to a username reserved by a global account; a check box to rename anyway will be provided (this requires caution).
You should probably use CentralAuth's built-in Special:GlobalRenameUser and Special:GlobalRenameRequest/Special:GlobalRenameQueue.
- You will not be able to rename users to invalid usernames (which doesn't equal usernames which match a blacklist but includes for instance reserved usernames ).
- Due to a bug, you can't rename the same account from where you're performing the rename (任务T267477).
Use the command line maintenance script to do the rename, or use a different account to do the rename.
Technical note
This extension introduces and invokes the RenameUserComplete hook to notify other extensions of user renames.
Frequently asked question
There were so many userpages that it timed out partway through moving them from User:A/subpage... to User:B/subpage... What do I do now?
- You can't fix the situation by immediately trying again to rename User A to User B, because it will simply say "The user 'User A' does not exist." To fix the situation, rename User B back to User A, after unchecking the box "Move user and talk pages (and their subpages) to new name". Then rename User A to User B again, this time leaving the box "Move user and talk pages (and their subpages) to new name" checked. The page moving will resume where it left off.
此扩展在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此扩展。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |