Manual:CleanupCaps.php

MediaWiki version:
1.5
Category:MediaWiki code#CleanupCaps.php

Details

cleanupCaps.php file is a maintenance script that is used to clean up broken page links when somebody turns off $wgCapitalLinks. The conversions will be attributed to the user called Conversion script.

This script transforms ALL the pages from your Wiki from uppercases to lowercases and creates redirects from the uppercases to lowercases (example: If you have a page called "Bear", it will move it to page "bear" and the page "Bear" will be a redirect to "bear") - do not use this script, unless you are prepared to manually fix a lot of redirects!

Options/Arguments

Option Description Required?
--dry-run Don't actually try moving them.Optional
--namespace Namespace to run the script for. Default is 0 (main namespace).Optional

Usage

php maintenance/run.php cleanupCaps [ --dry-run|  --namespace ]
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Checking with dry-run

Terminal

Actually moving pages

Terminal

See also

Category:Maintenance scripts#CleanupCaps.php Category:Content maintenance scripts
Category:Content maintenance scripts Category:Maintenance scripts Category:MediaWiki code