手册:$wgReservedUsernames

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgReservedUsernames and the translation is 77% complete.

Other languages:
English • ‎dansk • ‎magyar • ‎polski • ‎русский • ‎中文 • ‎日本語
用户: $wgReservedUsernames
列出的不应存在的用户名。
引进版本:1.6.4 (r13646)
移除版本:仍在使用
允许的值:(字符串数组)
默认值:see below

细节

一组不能够在表单被注册或登录的用户名。 维护脚本仍然可以使用它们。 扩展程序可以使用钩子UserGetReservedNames 添加这一数组。

If an entry in $wgReservedUsernames starts with msg: then the reserved username is taken to be the value of that message (in the wiki's content language).

默认值

2017年5月

$wgReservedUsernames = [
	'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
	'Conversion script', // Used for the old Wikipedia software upgrade
	'Maintenance script', // Maintenance scripts which perform editing, image import script
	'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
	'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
	'Unknown user', // Used in WikiImporter when importing revisions with no author
	'msg:double-redirect-fixer', // Automatic double redirect fix
	'msg:usermessage-editor', // Default user for leaving user messages
	'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
	'msg:spambot_username', // Used by cleanupSpam.php
	'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
];

2012年9月

$wgReservedUsernames = array(
	'MediaWiki default', // 默认的“首页”和 MediaWiki: 消息页面
	'Conversion script', // 用于旧的维基百科软件升级
	'Maintenance script', // 执行编辑的维护脚本和图像导入脚本
	'Template namespace initialisation script', // 用于1.2 -> 1.3 的升级
	'ScriptImporter', // 用于 maintenance/importSiteScripts.php 的默认用户名
	'msg:double-redirect-fixer', // 自动修复双重重定向
	'msg:usermessage-editor', // 用于用户留言的默认用户
	'msg:proxyblocker', // 用于Special:Blockme
);

在1.13版本之前

“double redirect fixer”在1.13版本被添加。

在1.9.0版本之前

在1.9.0版本之前,存在以下默认值:

$wgReservedUsernames = array( 'MediaWiki default', 'Conversion script' );

Changing the default values

// Add just one user name to the default array
$wgReservedUsernames[] = 'John Doe';
// Add several user names to the default array
$wgReservedUsernames = array_merge(
    $wgReservedUsernames,
    [ 'John Doe', 'Jane Doe', 'N.N.' ]
);

Overriding the default with a bundle of different user names and discarding the user names set by default is not recommended.