Manual:UppercaseTitlesForUnicodeTransition.php

MediaWiki version:
1.34
Category:MediaWiki code#UppercaseTitlesForUnicodeTransition.php

Details

uppercaseTitlesForUnicodeTransition.php is a maintenance script that renames titles when changing behavior of Language::ucfirst(). This script skips User and User_talk pages for registered users, as renaming of users is too complex to try to implement here. Use something like Extension:Renameuser to clean those up; this script can provide a list of user names affected.

Options/Arguments

Option Description Required? Default
--charmapCharacter map generated by maintenance/language/generateUcfirstOverrides.phpRequired
--userSystem user to use to do the renames.OptionalUser:Maintenance script
--stealIf the username specified by --user exists, specify this to force conversion to a system user.Optional
--runIf not specified, the script will not actually perform any moves (i.e. it will dry-run).Optional
--prefixWhen the new title already exists, add this prefix.Optional
--suffixWhen the new title already exists, add this suffixOptional
--reasonReason to use when moving pages.Optional
--tagChange tag to apply when moving pages.Optional
--tablesComma-separated list of database tables to process.Optional
--userlistFilename to which to output usernames needing rename.
This file can then be used directly by renameInvalidUsernames.php maintenance script
Optional

Usage

php maintenance/run.php uppercaseTitlesForUnicodeTransition --charmap charmapfile [ --user| --steal| --run| --prefix| --suffix| --reason| --tag| --tables| --userlist ]
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.

First generate the upper character table through generateUpperCharTable.php:

Terminal

Now pass created file as --charmap in uppercaseTitlesForUnicodeTransition.php:

Terminal

See also

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