Расширение:DeletePagesForGood

This page is a translated version of the page Extension:DeletePagesForGood and the translation is 53% complete.
Outdated translations are marked like this.
Справка по расширениям MediaWiki
DeletePagesForGood
Статус релиза: стабильно
Реализация Действие страницы
Описание Позволяет пользователям навсегда удалять страницы из базы данных
Автор(ы) Paladoxобсуждение
Последняя версия 2.0
MediaWiki >= 1.38.0
Изменения в БД Нет
Composer mediawiki/deletepagesforgood
Лицензия GNU General Public License 2.0 или позднее
Скачать
  • $wgDeletePagesForGoodNamespaces
  • $wgDeletePagesForGoodDeleteContent
  • deleteperm
Ежеквартальные загрузки 19 (Ranked 113rd)
Переведите расширение DeletePagesForGood, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке

Расширение DeletePagesForGood позволяет пользователям навсегда удалять страницы из базы данных, добавляя новую вкладку удаления на каждую страницу. Even if you permanently delete a page, the page title, how many edits does the page have and the time of edits can still be seen through CheckUser if you enter the user or IP address who created or edited the page.

When a page is permanently deleted, it removes the title from all users' watchlist. Unlike normal deletion, DeletePagesForGood does not delete the "you have a new talk page message" from other users when their user talk page is deleted.

If a root userpage is deleted, the user rights log, user creation log and block log for that user are also deleted. Sudo actions are also deleted too but it is the performer rather than the target.

DeletePagesForGood can bypass page protection but not namespace protection.

A page being permanently deleted is like deleting a file on a hard drive. It does not necessarily ensure all references to the page have been purged from the files storing the database, or the hard drive that those files are stored on.

While the message says "All versions and log entries will be deleted.", it does not delete revision deletion or suppression logs for logs of that page that has been deleted or suppressed.

Files and deleted pages cannot be permanently deleted directly. You have to delete the page (if it has not been deleted) then create a new page then delete that new page permanently. Even if you did permanently delete the file, it will still remain on the database.

DeletePagesForGood does not decrease Special:Statistics content page and page count by 1 when a page is permanently deleted using this extension. This will fix itself if Manual:InitSiteStats.php is run.

DeletePagesForGood may make the database unupgradable in the future when it is used.

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием DeletePagesForGood в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DeletePagesForGood
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'DeletePagesForGood' );
    
  •   Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.

Права участников

Вы можете настроить права пользователя в LocalSettings.php :

По умолчанию в DeletePagePermanently.php:

$wgGroupPermissions['*']['deleteperm'] = false;
$wgGroupPermissions['user']['deleteperm'] = false;
$wgGroupPermissions['bureaucrat']['deleteperm'] = false;
$wgGroupPermissions['sysop']['deleteperm'] = true;

Расширение добавляет новое право пользователя deleteperm.

Пространства имён

Чтобы настроить, добавьте несколько строк в ваш LocalSettings.php :

$wgDeletePagesForGoodNamespaces = [
	NS_MAIN => true,
	NS_TALK => true,
	NS_CATEGORY => true,
	NS_CATEGORY_TALK => true,
	NS_TEMPLATE => true,
	NS_TEMPLATE_TALK => true,
	NS_USER => true,
	NS_USER_TALK => true,
	NS_FILE => true,
	NS_FILE_TALK => true,
];

Встроенные пространства имён описаны в Meta-Wiki.

Note that this does not stop a user from moving a page in a namespace where permanent deletion isn't allowed into one where it is and then deleting it permanently.