Ajuda API da MediaWiki

Esta é uma página de documentação API do MediaWiki gerada automaticamente.

Documentação e exemplos: https://www.mediawiki.org/wiki/API

list=allrevisions (arv)

(main | query | allrevisions)
  • This module requires read rights.
  • This module can be used as a generator.
  • Fonte: MediaWiki
  • Licença: GPL-2.0+

List all revisions.

Parâmetros:
arvprop

Que propriedades mostrar para cada modificação:

ids
The ID of the revision.
flags
Revision flags (minor).
timestamp
The timestamp of the revision.
user
User that made the revision.
userid
User ID of the revision creator.
size
Length (bytes) of the revision.
sha1
SHA-1 (base 16) of the revision.
contentmodel
Content model ID of the revision.
comment
Comment by the user for the revision.
parsedcomment
Parsed comment by the user for the revision.
content
Texto da revisão.
tags
Etiquetas para a revisão.
parsetree
The XML parse tree of revision content (requires content model wikitext).
Valores (separar com |): ids, flags, timestamp, user, userid, size, sha1, contentmodel, comment, parsedcomment, content, tags, parsetree
Padrão: ids|timestamp|flags|comment|user
arvlimit

Limit how many revisions will be returned.

No more than 500 (5 000 for bots) allowed.
Tipo: inteiro ou max
arvexpandtemplates

Expand templates in revision content (requires arvprop=content).

Tipo: boolean (detalhes)
arvgeneratexml
Obsoleto.

Generate XML parse tree for revision content (requires arvprop=content; replaced by arvprop=parsetree).

Tipo: boolean (detalhes)
arvparse

Parse revision content (requires arvprop=content). For performance reasons, if this option is used, arvlimit is enforced to 1.

Tipo: boolean (detalhes)
arvsection

Only retrieve the content of this section number.

arvdiffto

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

arvdifftotext

Text to diff each revision to. Only diffs a limited number of revisions. Overrides arvdiffto. If arvsection is set, only that section will be diffed against this text.

arvdifftotextpst

Perform a pre-save transform on the text before diffing it. Only valid when used with arvdifftotext.

Tipo: boolean (detalhes)
arvcontentformat

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

Um dos seguintes valores: text/x-wiki, text/javascript, application/json, text/css, text/plain
arvuser

Only list revisions by this user.

Tipo: nome de utilizador
arvnamespace

Only list pages in this namespace.

Valores (separar com |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 106, 107, 110, 111
arvstart

The timestamp to start enumerating from.

Type: timestamp (allowed formats)
arvend

The timestamp to stop enumerating at.

Type: timestamp (allowed formats)
arvdir

In which direction to enumerate:

newer
List oldest first. Note: arvstart has to be before arvend.
older
List newest first (default). Note: arvstart has to be later than arvend.
Um dos seguintes valores: newer, older
Padrão: older
arvexcludeuser

Don't list revisions by this user.

Tipo: nome de utilizador
arvcontinue

When more results are available, use this to continue.

arvgeneratetitles

When being used as a generator, generate titles rather than revision IDs.

Tipo: boolean (detalhes)