MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
prop=deletedrevisions (drv)
- Este módulo requiere permisos de lectura.
- Este módulo puede utilizarse como un generador.
- Fuente: MediaWiki
- Licencia: GPL-2.0+
Get deleted revision information.
May be used in several ways:
- Get deleted revisions for a set of pages, by setting titles or pageids. Ordered by title and timestamp.
- Get data about a set of deleted revisions by setting their IDs with revids. Ordered by revision ID.
- drvprop
- Las propiedades que se obtendrán para cada revisión: - ids
- El identificador de la revisión.
- flags
- Marcas de revisión (menor).
- timestamp
- La fecha y hora de la revisión.
- user
- Usuario que realizó la revisión.
- userid
- Identificador de usuario del creador de la revisión.
- size
- Longitud (en bytes) de la revisión.
- sha1
- SHA-1 (base 16) de la revisión.
- contentmodel
- Identificador del modelo de contenido de la revisión.
- comment
- Comentario del usuario para la revisión.
- parsedcomment
- Parsed comment by the user for the revision.
- content
- Texto de la revisión.
- tags
- Etiquetas para la revisión.
- parsetree
- The XML parse tree of revision content (requires content model wikitext).
 
- Valores (separados por |): ids, flags, timestamp, user, userid, size, sha1, contentmodel, comment, parsedcomment, content, tags, parsetree
- Predeterminado: ids|timestamp|flags|comment|user
- drvlimit
- Limit how many revisions will be returned. 
- No se permite más de 500 (5000 para los bots).
- Tipo: entero o max
- drvexpandtemplates
- Expand templates in revision content (requires drvprop=content). 
- Tipo: booleano/lógico (detalles)
- drvgeneratexml
- En desuso.
- Generate XML parse tree for revision content (requires drvprop=content; replaced by drvprop=parsetree). 
- Tipo: booleano/lógico (detalles)
- drvparse
- Parse revision content (requires drvprop=content). For performance reasons, if this option is used, drvlimit is enforced to 1. 
- Tipo: booleano/lógico (detalles)
- drvsection
- Only retrieve the content of this section number. 
- drvdiffto
- Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively. 
- drvdifftotext
- Text to diff each revision to. Only diffs a limited number of revisions. Overrides drvdiffto. If drvsection is set, only that section will be diffed against this text. 
- drvdifftotextpst
- Perform a pre-save transform on the text before diffing it. Only valid when used with drvdifftotext. 
- Tipo: booleano/lógico (detalles)
- drvcontentformat
- Serialization format used for drvdifftotext and expected for output of content. 
- Uno de los siguientes valores: text/x-wiki, text/javascript, application/json, text/css, text/plain
- drvstart
- The timestamp to start enumerating from. Ignored when processing a list of revision IDs. 
- Tipo: timestamp (formatos permitidos)
- drvend
- The timestamp to stop enumerating at. Ignored when processing a list of revision IDs. 
- Tipo: timestamp (formatos permitidos)
- drvdir
- In which direction to enumerate: - newer
- List oldest first. Note: drvstart has to be before drvend.
- older
- List newest first (default). Note: drvstart has to be later than drvend.
 
- Uno de los siguientes valores: newer, older
- Predeterminado: older
- drvtag
- Listar solo las revisiones con esta etiqueta. 
- drvuser
- Listar solo las revisiones de este usuario. 
- Tipo: nombre de usuario
- drvexcludeuser
- No listar las revisiones de este usuario. 
- Tipo: nombre de usuario
- drvcontinue
- Cuando haya más resultados disponibles, utiliza esto para continuar. 
- List the deleted revisions of the pages Main Page and Talk:Main Page, with content.
- api.php?action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&drvprop=user|comment|content [open in sandbox]
- List the information for deleted revision 123456.
- api.php?action=query&prop=deletedrevisions&revids=123456 [open in sandbox]