MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

prop=deletedrevisions (drv)

(main | query | deletedrevisions)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo può essere utilizzato come generatore.
  • Fonte: MediaWiki
  • Licenza: GPL-2.0-or-later

Get deleted revision information.

May be used in several ways:

  1. Get deleted revisions for a set of pages, by setting titles or pageids. Ordered by title and timestamp.
  2. Get data about a set of deleted revisions by setting their IDs with revids. Ordered by revision ID.
Parametri:
drvprop

Which properties to get for each revision:

ids
L'ID della versione.
flags
Revision flags (minor).
timestamp
Il timestamp della versione.
user
Utente che ha effettuato la versione.
userid
ID utente dell'autore della versione.
size
Length (bytes) of the revision.
slotsize
Length (bytes) of each revision slot.
sha1
SHA-1 (base 16) of the revision.
slotsha1
SHA-1 (base 16) of each revision slot.
contentmodel
Content model ID of each revision slot.
comment
Comment by the user for the revision.
parsedcomment
Parsed comment by the user for the revision.
content
Contenuto di ogni slot di versione.
tags
Etichette della versione.
roles
List content slot roles that exist in the revision.
parsetree
Deprecato. Use action=expandtemplates or action=parse instead. The XML parse tree of revision content (requires content model wikitext).
Valori (separati da | o alternativa): ids, flags, timestamp, user, userid, size, slotsize, sha1, slotsha1, contentmodel, comment, parsedcomment, content, tags, roles, parsetree
Predefinito: ids|timestamp|flags|comment|user
drvslots

Which revision slots to return data for, when slot-related properties are included in drvprops. If omitted, data from the main slot will be returned in a backwards-compatible format.

Valori (separati da | o alternativa): main
Per specificare tutti i valori, utilizza *.
drvlimit

Limit how many revisions will be returned.

Non più di 500 (5 000 per bot) consentito.
Tipo: intero o max
drvexpandtemplates
Deprecato.

Use action=expandtemplates instead. Expand templates in revision content (requires drvprop=content).

Tipo: booleano (dettagli)
drvgeneratexml
Deprecato.

Use action=expandtemplates or action=parse instead. Generate XML parse tree for revision content (requires drvprop=content).

Tipo: booleano (dettagli)
drvparse
Deprecato.

Use action=parse instead. Parse revision content (requires drvprop=content). For performance reasons, if this option is used, drvlimit is enforced to 1.

Tipo: booleano (dettagli)
drvsection

Only retrieve the content of this section number.

drvdiffto
Deprecato.

Use action=compare instead. Revision ID to diff each revision to. Use prev, next and cur for the previous, next and current revision respectively.

drvdifftotext
Deprecato.

Use action=compare instead. 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
Deprecato.

Use action=compare instead. Perform a pre-save transform on the text before diffing it. Only valid when used with drvdifftotext.

Tipo: booleano (dettagli)
drvcontentformat
Deprecato.

Serialization format used for drvdifftotext and expected for output of content.

Uno dei seguenti valori: text/x-wiki, text/javascript, application/json, text/css, text/plain
drvstart

Il timestamp da cui iniziare l'elenco. Ignorato quando si elabora un elenco di ID versioni.

Tipo: timestamp (formati consentiti)
drvend

Il timestamp al quale interrompere l'elenco. Ignorato quando si elabora un elenco di ID versioni.

Tipo: timestamp (formati consentiti)
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 dei seguenti valori: newer, older
Predefinito: older
drvtag

Elenca solo le versioni etichettate con questa etichetta.

drvuser

Elenca solo le versioni di questo utente.

Tipo: nome utente
drvexcludeuser

Non elencare le versioni di questo utente.

Tipo: nome utente
drvcontinue

Quando più risultati sono disponibili, usa questo per continuare.

Esempi:
Elenca le versioni cancellate delle pagine Main Page e Talk:Main Page, con il contenuto.
api.php?action=query&prop=deletedrevisions&titles=Main%20Page|Talk:Main%20Page&drvslots=*&drvprop=user|comment|content [apri in una sandbox]
Elenca le informazioni per la versione cancellata 123456.
api.php?action=query&prop=deletedrevisions&revids=123456 [apri in una sandbox]