Manual:UppercaseTitlesForUnicodeTransition.php/pl
Appearance
| Wersja MediaWiki: | ≥ 1.34 |
| Plik MediaWiki: uppercaseTitlesForUnicodeTransition.php | |
|---|---|
| Lokalizacja: | maintenance/ |
| Kod źródłowy: | master • 1.45.1 • 1.44.3 • 1.43.6 |
| Klasy: | UppercaseTitlesForUnicodeTransition |
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 Manual:Renaming users to clean those up; this script can provide a list of user names affected.
Options/Arguments
| Option | Description | Required? | Default |
|---|---|---|---|
| --charmap | Character map generated by maintenance/language/generateUcfirstOverrides.php | Wymagane | |
| --user | System user to use to do the renames. | Optional | User:Maintenance script |
| --steal | If the username specified by --user exists, specify this to force conversion to a system user. | Optional | |
| --run | If not specified, the script will not actually perform any moves (i.e. it will dry-run). | Optional | |
| --prefix | When the new title already exists, add this prefix. | Optional | |
| --suffix | When the new title already exists, add this suffix | Optional | |
| --reason | Reason to use when moving pages. | Optional | |
| --tag | Change tag to apply when moving pages. | Optional | |
| --tables | Comma-separated list of database tables to process. | Optional | |
| --userlist | Filename 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 ]
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.First generate the upper character table through generateUpperCharTable.php:
Terminal
$ php maintenance/run.php language/generateUpperCharTable --outfile upperCaseMap.json
Now pass created file as --charmap in uppercaseTitlesForUnicodeTransition.php:
Terminal
$ php maintenance/run.php uppercaseTitlesForUnicodeTransition --charmap upperCaseMap.json