Manual:Pywikipediabot/movepages.py

From MediaWiki.org
Jump to: navigation, search
Bug blank.svg
Subversion repository of Wikimedia has this file:
Pwb icon.svg
Pywikipediabot
scripts
Quick overview
Quick Start Guide
Installation (Mac)
user_config.py

Wikidata
Non-Wikimedia wikis
Basic use
Scripts
Development
Further help

v  d  e

The movepages.py script is used to move pages.

Commands [edit]

Command Meaning
-from and -to The page to move from and the page to move to.
-noredirect Leave no redirect behind.
-prefix Move pages by adding a namespace prefix to the names of the pages. (Will remove the old namespace prefix if any). Argument can also be given as "-prefix:namespace:".
-always Don't prompt to make changes, just do them.
-skipredirects Skip redirect pages (Warning: increases server load)
-summary Prompt for a custom summary, bypassing the predefined message texts. Argument can also be given as "-summary:XYZ".
-pairs Read pairs of file names from a file. The file must be in a format:
[[frompage]]
[[topage]]
[[frompage]]
[[topage]]
Argument can also be given as <code>"-pairs:filename</code>"