Jump to content

Manual:$wgReservedUsernames

From mediawiki.org
This page is a translated version of the page Manual:$wgReservedUsernames and the translation is 25% complete.
利用者アカウント、認証: $wgReservedUsernames
使用できないアカウント名の一覧。
導入されたバージョン:1.6.4 (r13646)
除去されたバージョン:使用中
許容される値:(文字列の配列)
既定値:下記参照

詳細

アカウント作成やログインのフォームで使用できなくする利用者名の配列です。 なお、メンテナンス スクリプトはこれらの利用者名を使用できます。 拡張機能は、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).

既定値

MediaWiki バージョン:
1.39
$wgReservedUsernames = [
	'MediaWiki default', // 既定の「メイン ページ」と、MediaWiki: メッセージ ページ
	'Conversion script', // 以前のウィキペディア ソフトウェアのアップグレードに使用されました
	'Maintenance script', // 編集を行うメンテナンス スクリプト、画像取り込みスクリプト
	'Template namespace initialisation script', // 1.2->1.3 のアップグレードで使用されました
	'ScriptImporter', // maintenance/importSiteScripts.php で使用される既定の利用者名
	'Delete page script', // maintenance/deleteBatch.php で使用される既定の利用者名
	'Move page script', // maintenance/deleteBatch.php で使用される既定の利用者名
	'Command line script', // maintenance/undelete.php で使用される既定の利用者名
	'Unknown user', // Used in WikiImporter & RevisionStore for revisions with no author and in User for invalid user id
	'msg:double-redirect-fixer', // 二重リダイレクトの自動修正
	'msg:usermessage-editor', // 利用者メッセージを投稿するのに使用される既定の利用者
	'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
	'msg:sorbs', // For $wgEnableDnsBlacklist etc.
	'msg:spambot_username', // Used by cleanupSpam.php
	'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
];
MediaWiki バージョン:
1.36 – 1.38
$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 & RevisionStore for revisions with no author and in User for invalid user id
	'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:sorbs', // For $wgEnableDnsBlacklist etc.
	'msg:spambot_username', // Used by cleanupSpam.php
	'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
];
MediaWiki バージョン:
1.31 – 1.35
$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 and RevisionStore for 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:sorbs', // For $wgEnableDnsBlacklist etc.
	'msg:spambot_username', // Used by cleanupSpam.php
	'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
];
MediaWiki バージョン:
1.29 – 1.30
$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)
];
MediaWiki バージョン:
1.19 – 1.25
$wgReservedUsernames = array(
	'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
	'msg:double-redirect-fixer', // Automatic double redirect fix
	'msg:usermessage-editor', // Default user for leaving user messages
	'msg:proxyblocker', // For Special:Blockme
);
MediaWiki バージョン:
1.9 – 1.12

The double redirect fixer has been added in 1.13.

$wgReservedUsernames = array(
	'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
	'Conversion script', // Used for the old Wikipedia software upgrade
	'Maintenance script', // ... maintenance/edit.php uses this?
	'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
);
MediaWiki バージョン:
1.6 – 1.8
$wgReservedUsernames = [ '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.