Ayuda de la API de MediaWiki

Esta es una página de documentación autogenerada de la API de MediaWiki.

Documentación y ejemplos: https://www.mediawiki.org/wiki/API

action=rollback

(main | rollback)
  • Este módulo requiere permisos de lectura.
  • Este módulo requiere permisos de escritura.
  • Este módulo solo acepta solicitudes POST.
  • Fuente: MediaWiki
  • Licencia: GPL-2.0+

Deshacer la última edición de la página.

Si el último usuario que editó la página hizo varias ediciones consecutivas, todas ellas serán revertidas.

Parámetros:
title

Title of the page to roll back. Cannot be used together with pageid.

pageid

Page ID of the page to roll back. Cannot be used together with title.

Tipo: entero
tags

Tags to apply to the rollback.

Valores (separados por |):
user

Name of the user whose edits are to be rolled back.

Este parámetro es obligatorio.
Tipo: nombre de usuario
summary

Resumen de edición personalizado. Si se deja vacío se utilizará el predeterminado.

Predeterminado: (vacío)
markbot

Marcar las acciones revertidas y la reversión como ediciones por bots.

Tipo: booleano/lógico (detalles)
watchlist

Añadir o borrar incondicionalmente la página de la lista de seguimiento del usuario actual, usar preferencias o no cambiar seguimiento.

Uno de los siguientes valores: watch, unwatch, preferences, nochange
Predeterminado: preferences
token

A "rollback" token retrieved from action=query&meta=tokens

For compatibility, the token used in the web UI is also accepted.

Este parámetro es obligatorio.
Ejemplos:
Roll back the last edits to page Main Page by user Example.
api.php?action=rollback&title=Main%20Page&user=Example&token=123ABC [abrir en la zona de pruebas]
Roll back the last edits to page Main Page by IP user 192.0.2.5 with summary Reverting vandalism, and mark those edits and the revert as bot edits.
api.php?action=rollback&title=Main%20Page&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [abrir en la zona de pruebas]