Manual:CleanupEmptyCategories.php/pl

Wersja MediaWiki:
1.28
Category:MediaWiki code/pl#CleanupEmptyCategories.php

Szczegóły

cleanupEmptyCategories.php is a maintenance script to clean up empty categories in the category table. This script will clean up the category table by removing entries for empty categories without a description page and adding entries for empty categories with a description page. It will print out progress indicators every batch. The script is perfectly safe to run on large, live wikis, and running it multiple times is harmless. You may want to use the throttling options if it's causing too much load; they will not affect correctness.

If the script is stopped and later resumed, you can use the --mode and --begin options with the last printed progress indicator to pick up where you left off.

Options/Arguments

Opcja/ParametrOpisRequired?
--modeUse "add" option to empty categories with description pages, "remove" option to empty categories without description pages or "both" to actually do both. Default: bothOptional
--beginOnly do categories whose names are alphabetically after the provided nameOptional
--throttleWait this many milliseconds after each batch. Default: 0Optional
--forceIf the script was already ever used once force it to cleanup again. Default: unusedOptional

Użycie

php maintenance/run.php cleanupEmptyCategories [ --mode| --begin| --throttle| --force ]
Terminal
Whenever the script runs, it makes a note in the database and will not run again. If you want to run the script again, run the command with the --force option.

See bug T235019.

In MediaWiki version 1.39.13 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Zobacz też

Category:Maintenance scripts/pl Category:Content maintenance scripts/pl
Category:Content maintenance scripts/pl Category:Maintenance scripts/pl Category:MediaWiki code/pl