Handbuch:MoveBatch.php
Outdated translations are marked like this.
MediaWiki-Datei: moveBatch.php | |
---|---|
Speicherort: | maintenance/ |
Quellcode: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Klassen: | MoveBatch |
Details
moveBatch.php file is a maintenance script to move (rename) a batch of pages. If the target page already exist it will fail with an error message.
Verwendung
Option/Parameter | Beschreibung |
---|---|
-u <Benutzer>
|
Benutzername, der in den Log-Einträgen angezeigt wird. Wenn leer, wird der User "Move page script" verwendet. |
-r <reason>
|
Reason for moves, enclose in "…" if it contains spaces. Gründe für das Verschieben. Wenn leer, wird kein Grund in den Logs angezeigt.
|
-i <interval>
|
Number of seconds to sleep after each move. If empty, defaults to 0. |
--noredirects | Suppress creation of redirects |
<listfile>
|
Datei sollte Zeilen im folgenden Format enthalten:
existing name 1|new name 1
existing name 2|new name 2
existing name 3|new name 3
|
Beispiel
- Linux
php /path/to/moveBatch.php --u=user --r=reason --noredirects /path/to/listfile.txt
Parameters need to be addressed with
--
and filled with =
as shown in the example above.- Windows
- Ensure that MediaWiki is running.
- Open Command Prompt by pressing ⊞ Win+R, typing
cmd
, and presing ↵ Enter.
\path\to\php.exe \path\to\moveBatch.php --u=user --r=reason --noredirects \path\to\listfiles.txt
Example command:
C:\xampp\core\php55\php.exe C:\xampp\htdocs\mw\maintenance\moveBatch.php --u=user --r=reason --noredirects C:\xxx.txt