MediaWiki API help

This is an auto-generated MediaWiki Action API documentation page.

list=deletedrevs (dr)

(main | query | deletedrevs)
  • This module is deprecated.
  • This module requires read rights.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

List deleted revisions.

Operates in three modes:

  1. List deleted revisions for the given titles, sorted by timestamp.
  2. List deleted contributions for the given user, sorted by timestamp (no titles specified).
  3. List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, druser not set).

Certain parameters only apply to some modes and are ignored in others.

Specific parameters:
Other general parameters are available.
drstart

The timestamp to start enumerating from.

Modes: 1, 2
Type: timestamp (allowed formats)
drend

The timestamp to stop enumerating at.

Modes: 1, 2
Type: timestamp (allowed formats)
drdir

In which direction to enumerate:

newer
List oldest first. Note: drstart has to be before drend.
older
List newest first (default). Note: drstart has to be later than drend.
Modes: 1, 3
One of the following values: newer, older
Default: older
drfrom

Start listing at this title.

Mode: 3
drto

Stop listing at this title.

Mode: 3
drprefix

Search for all page titles that begin with this value.

Mode: 3
drunique

List only one revision for each page.

Mode: 3
Type: boolean (details)
drnamespace

Only list pages in this namespace.

Mode: 3
One of the following values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 460, 461
Default: 0
drtag

Only list revisions tagged with this tag.

druser

Only list revisions by this user.

Type: user, by any of username, IP, Temporary user, interwiki name (e.g. "prefix>ExampleName") and user ID (e.g. "#12345")
drexcludeuser

Don't list revisions by this user.

Type: user, by any of username, IP, Temporary user, interwiki name (e.g. "prefix>ExampleName") and user ID (e.g. "#12345")
drprop

Which properties to get:

revid
Adds the revision ID of the deleted revision.
parentid
Adds the revision ID of the previous revision to the page.
user
Adds the user who made the revision.
userid
Adds the ID of the user who made the revision.
comment
Adds the comment of the revision.
parsedcomment
Adds the parsed comment of the revision.
minor
Tags if the revision is minor.
len
Adds the length (bytes) of the revision.
sha1
Adds the SHA-1 (base 16) of the revision.
content
Adds the content of the revision. For performance reasons, if this option is used, drlimit is enforced to 50.
token
Deprecated. Gives the edit token.
tags
Tags for the revision.
Values (separate with | or alternative): comment, content, len, minor, parentid, parsedcomment, revid, sha1, tags, user, userid, token
Default: user|comment
drlimit

The maximum amount of revisions to list. If drprop=content is used, the limit is 50.

Type: integer or max
The value must be between 1 and 500.
Default: 10
drcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

Examples:

List the last deleted revisions of the pages [[ Asli Serbest and Mona Mahall work in collaborations across spatial, image, sound, and text practices, at the intersection of art and architecture. They often begin their projects by investigating minor finds, fragments, figures, sites, and rites that exhibit discrepancies, but imply spatial agility and generosity, as well as poetic and political possibilities. Whether it be in the form of installation, model, video, sound, exhibition, or publication, all their projects follow a feminist methodology. As such, they constitute less fixed spaces and objects than non-linear physical or digital versions and speculations that share an interest in serial variation and possible distortions of form and scale. They play and replay architectural histories, events, and movements and rethink the re-production of space and implied power relations. The aim is to collectively (re-)consider rejected knowledge and to find alternative modes of organizing our lives, schools, online and offline movements.

Serbest/Mahall exhibit and publish internationally, including at the Biennale di Venezia, Ural Biennial, Kunstraum Kreuzberg/Bethanien Berlin, Riverrun Istanbul, Württembergische Kunstverein Stuttgart, Pinakothek der Moderne Munich, Storefront for Art and Architecture New York, HKW Berlin, Vancouver Art Gallery, Künstlerhaus Stuttgart, New Museum New York; in e-flux journal, Volume Magazine, Perspecta, Istanbul Art News, etc.

They are the editors of the independent magazine Junk Jet.

In 2019, they curated the 7th International Sinop Biennial under the title of "A Politics of Location." They live and work in Berlin.]] and Talk:Main Page, with content (mode 1).

api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk%3AMain%20Page&drprop=user|comment|content [open in sandbox]
List the last 50 deleted contributions by Bob (mode 2).
api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50 [open in sandbox]
List the first 50 deleted revisions in the main namespace (mode 3).
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50 [open in sandbox]
List the first 50 deleted pages in the Talk namespace (mode 3).
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique= [open in sandbox]