Jump to content

Podręcznik:NukeNS.php

From mediawiki.org
This page is a translated version of the page Manual:NukeNS.php and the translation is 17% complete.
Wersja MediaWiki:
1.10

Szczegóły

nukeNS.php file is a maintenance script to remove all pages with only one revision (by default) from the MediaWiki namespace , without flooding recent changes, deletion logs, etc. It has originally been added to remove the content of unchanged interface texts from the MediaWiki namespace, but it can be used to basically delete all pages from any namespace.

Uwaga Uwaga: This script attempts to remove unused entries from the text table, which can cause potential data loss and is very slow for large wikis. In MediaWiki 1.45 or later, this step is skipped if $wgMiserMode is enabled.

Options/Arguments

Option Description Required?
--delete Actually delete the pages and their revisions. Without this option, the script works in dry-run mode. Optional
--ns Namespace to delete from. Defaults to the MediaWiki: namespace. You must provide the namespace number, not the name. See Podręcznik:Przestrzeń nazw for a list. Optional
--all Delete pages regardless of revision count. With this option, not only pages with only one single revision, but also pages with more than one revision will be deleted. Optional

Usage

php maintenance/run.php nukeNS [ --delete| --ns| --all ]
W wersji MediaWiki MediaWiki 1.39 i we wcześniejszych musisz wywoływać skrypty konserwacyjne poprzez php maintenance/nazwaSkryptu.php zamiast php maintenance/run.php nazwaSkryptu.

Checking potential deletion

Terminal

Making deletion

Terminal

Zobacz też