Manual:Pywikibot/movepages.py

This page is a translated version of the page Manual:Pywikibot/movepages.py and the translation is 67% complete.

El script movepages.py se utiliza para mover páginas.

Comandos

Comando Significado
-from y -to La página desde la cual mover y la página hacia la cual mover.
-noredirect No dejar redirección atrás.
-prefix Mover páginas añadiendo un prefijo de espacio de nombres a los nombres de las páginas. (Eliminará el antiguo prefijo de espacio de nombres si existe alguno). El argumento también puede ser proporcionado como "-prefix:namespace:".
-notalkpage No mover página de discusión (si existe).
-nosubpages No mover subpáginas
-always No solicitar hacer cambios, simplemente llevar a cabo las acciones.
-skipredirects Sí, redirigir páginas (Advertencia: aumenta la carga del servidor).
-summary Solicitar un resumen personalizado, evitando los textos de mensaje predefinidos. El argumento también puede ser proporcionado como "-summary:XYZ".
-pairsfile Leer pares de nombres de archivos desde un archivo. El archivo debe tener un formato:
[[frompage]]
[[topage]]
[[frompage]]
[[topage]]

El argumento también se puede dar como "-pairsfile:filename".

Ejemplo

  1. Copy the list of the current pages, for example with Special:PrefixIndex.
  2. Convert it in ASCII, for instance with this JavaScript tool.
  3. Paste it in the first column of a spreadsheet (e.g. OpenOffice Calc).
  4. Create the second column with the same number of lines, with some characters which won't be present neither in the old pages names nor in the new (e.g. "string to replace after by \n").
  5. Paste your new pages names (converted in ASCII) into the third column.
  6. Copy the three columns into a file (e.g. called "articles_pairs.txt").
  7. Search and replace with your text editor (e.g. Notepad++), the second column content by the carriage return (\n) (Tip: In notepad++ which trying to replace with \n enable the option regex in the replace dialogue box.)
  8. Launching: python core/pwb.py movepages -lang:fr -family:wiktionary -pairsfile:"src/lists/articles_fr_wiktionary.txt" -noredirect will produce the wanted result.