Manual talk:MoveBatch.php
Tilde character
editThis script fails to move pages with a tilde in them.. anybody have a guess why? it passes all of the tests, but $source->moveTo returns "can't move the page" or something like that --Frantik 02:21, 31 May 2009 (UTC)
- Well, you would probably have to safe you file in UTF-8 encoding, which in fact support such characters.--Juan de Vojníkov 18:43, 8 May 2011 (UTC)
Document the listfile format
editPlease document the format of the listfile containing titles to move. The help message only says "newline delimited." But how do you specify the old title and the new title? 4.79.245.132 17:26, 6 August 2013 (UTC)
- Looks like it's
oldtitle | newtitle
, one per line. 4.79.245.132 17:28, 6 August 2013 (UTC)
Moving a bunch of pages to another namespace
editOnce you have the list of pages you want to move (which Extension:OneColumnAllPages may be of assistance in generating), you can paste that list into column A of a spreadsheet and put in column B =RIGHT(A1,LEN(A1)-9)
(assuming the namespace you're moving them from is, say, Template: and thus has a 9-character prefix) and put in column C =A1&"|Backup:"&B1
(if the namespace you're moving it to is called Backup: . Then copy the contents of column C and paste it into a file and use moveBatch.php on it. Don't forget the --noredirects
parameter, or you'll soon be using deleteBatch on those redirects. Leucosticte (talk) 20:07, 14 November 2013 (UTC)
- Here's another idea. You could use Extension:DynamicPageList3. For instance, this will create a list of pages from a category and list them alongside their new names.
- Jonathan3 (talk) 20:24, 12 October 2021 (UTC)
{{#dpl: category=mycategory |mode=userformat |format=,<br/>%PAGE%,¦mynamespace:%PAGE%, }}