Rozszerzenie:UserMerge

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:UserMerge and the translation is 21% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Podręcznik rozszerzeń MediaWikiManual:Extensions
Crystal Clear action run.svg
UserMerge

Status wydania:Extension status stabilne

UserMergeScreenshot.png
RealizacjaTemplate:Extension#type Special page, User identity
OpisTemplate:Extension#description Merges references from one user to another user in the Wiki database - can also delete old users following merge
AutorzyTemplate:Extension#username Tim Laqua, Thomas Gries, Siebrand Mazeland
Ostatnia wersjaTemplate:Extension#version 1.10.1 (2017-04-15)
MediaWikiTemplate:Extension#mediawiki 1.29+
PHPTemplate:Extension#php 5.4+
Zmiany w bazie danychTemplate:Extension#needs-updatephp Nie
LicencjaTemplate:Extension#license GNU General Public License 2.0 or later
Pobieranie
ParametryTemplate:Extension#parameters
* $wgUserMergeProtectedGroups
Dodawane prawaTemplate:Extension#rights
usermerge
Dostarczane hakiTemplate:Extension#newhook
UserMergeAccountFieldsExtension:UserMerge/UserMergeAccountFields
MergeAccountFromToExtension:UserMerge/MergeAccountFromTo
UserMergeAccountDeleteTablesExtension:UserMerge/UserMergeAccountDeleteTables
DeleteAccountExtension:UserMerge/DeleteAccount

Przetłumacz rozszerzenie UserMerge jeżeli jest dostępne na translatewiki.net

Sprawdź wykorzystywanie i version matrix.

ProblemyPhabricator

Otwarte zadania · Zgłoś błąd

The UserMerge extension allows wiki users with the usermerge permission (Bureaucrat by default) to merge one Wiki user's account with another Wiki user's account.

The extension allows to

  • merge (refer contributions, texts, watchlists, edit count of a first account A to a second account B
  • delete the first account A after the merge (option box)

Limitations

  • you cannot delete a user A without having merged the user A to B
  • you cannot merge your own account (logged-in user) into a different user

Extras

  • if you omit the "New User" field, then the extension auto-populates the New User as "Anonymous" (user_id 0), and ask you to confirm a merge to Anonymous. This is used for user deletion: you first empty (merge to user 0) contributions of a user A, and then delete the user A.
    • If your version of the extension complains about an empty "New User" field you can fill in  "Anonymous"
  • the extension creates a User Merge log and logs all User Merge extension activity.[1]

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie UserMerge w swoim katalogu extensions/.
  • Dodaj poniższy kod na dole swojego pliku LocalSettings.php:
    wfLoadExtension( 'UserMerge' );
    // By default nobody can use this function, enable for bureaucrat?
    $wgGroupPermissions['bureaucrat']['usermerge'] = true;
    
    // optional: default is array( 'sysop' )
    $wgUserMergeProtectedGroups = array( 'groupname' );
    
  • YesY Zrobione – Przejdź do Special:Version na swojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Do użytkowników mających wersję MediaWiki 1.25 lub wcześniejszą:

Powyższe instrukcje opisują nowy sposób instalowania tego rozszerzenia, poprzez wfLoadExtension() Jeżeli chcesz zainstalować to rozszerzenie we wcześniejszych wersjach (MediaWiki 1.25 i wcześniejsze), zamiast wfLoadExtension( 'UserMerge' ); użyj:

require_once "$IP/extensions/UserMerge/UserMerge.php";
The change to group-based merge protection ($wgUserMergeProtectedGroups) in v1.5, r30872.
The addition of the 'usermerge' permission in v1.2 - this must be explicitly granted as shown above.

Użycie

  • follow Installation Instructions
  • a new Special Page Special:UserMerge with the title Merge and Delete Users is created
  • unmergeable users can be defined (examples):
# Allow all users to be merged (by default, the 'sysop' group is unmergeable)
$wgUserMergeProtectedGroups = array();

# Disallow merging of the users in the 'sysop' or 'awesomeusers' groups
$wgUserMergeProtectedGroups = array( 'sysop', 'awesomeusers' );


Znane błędy

  • phab:T41636 - The extension lacks an API interface module
  • phab:T162563 - The merge will fail if both accounts have at least one page watchlisted in common.


Przypisy

  1. since version 1.2

Zobacz też