Manual:moveBatch.php
MediaWiki ファイル: moveBatch.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.42.3 • 1.41.4 • 1.39.10 |
クラス: | MoveBatch |
詳細
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.
使用法
オプション/パラメーター | 説明 |
---|---|
-u <利用者>
|
Username that will be shown in the log entries. If left empty, moves will be attributed to the user called Move page script. |
-r <理由>
|
Reason for moves, enclose in "…" if it contains spaces. If empty, no reason will be shown in the logs.
|
-i <interval>
|
Number of seconds to sleep after each move. If empty, defaults to 0. |
--noredirects | Suppress creation of redirects |
<listfile>
|
File should contain lines of text in the following format:
既存の名前 1|新しい名前 1
既存の名前 2|新しい名前 2
既存の名前 3|新しい名前 3
|
例
- 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