Podręcznik:$wgReservedUsernames

From mediawiki.org
This page is a translated version of the page Manual:$wgReservedUsernames and the translation is 21% complete.
Outdated translations are marked like this.
User accounts, authentication: $wgReservedUsernames
Lista nazw kont, które nie mogą być tworzone.
Wprowadzono w wersji:1.6.4 (r13646)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(tablica z ciągami znaków)
Domyślna wartość:patrz poniżej

Szczegóły

Tablica zawierająca nazwy użytkowników, których nie można używać do zakładania kont lub logowania. Skrypty konserwacyjne mogą nadal z nich korzystać. Rozszerzenia mogą wykorzystać hak UserGetReservedNames , aby dopisać coś do tej tablicy.

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).

Domyślna wartość

Wersja MediaWiki:
1.39
$wgReservedUsernames = [
	'MediaWiki default', // Tworzy domyślną stronę główną i zarządza stronami komunikatów w MediaWiki:
	'Conversion script', // Wykorzystywany przez aktualizacje starego oprogramowania Wikipedii
	'Maintenance script', // Skrypty konserwacyjne dokonujące edycji i skrypt importu zdjęć
	'Template namespace initialisation script', // Używane przy aktualizacji 1.2->1.3
	'ScriptImporter', // Domyślna nazwa użytkownika wykorzystywana przez maintenance/importSiteScripts.php
	'Delete page script', // Default user name used by maintenance/deleteBatch.php
	'Move page script', // Default user name used by maintenance/deleteBatch.php
	'Command line script', // Default user name used by 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', // Automatyczne poprawianie podwójnych przekierowań
	'msg:usermessage-editor', // Domyślny użytkownik zostawiający wiadomości użytkownikom
	'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)
];
Wersje 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)
];
Wersje 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)
];
Wersje 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)
];
Wersje 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
);
Wersje MediaWiki:
1.9 – 1.12

Double redirect fixer został dodany w 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
);
Wersje 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.