עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

list=deletedrevs (dr)

(main | query | deletedrevs)
  • יחידה זו אינה מומלצת לשימוש.
  • יחידה זו דורשת הרשאות קריאה.

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.

פרמטרים:
drstart

The timestamp to start enumerating from.

מצבים: 1, 2
drend

The timestamp to stop enumerating at.

מצבים: 1, 2
drdir

באיזה כיוון למספר:

newer
לרשום את הישנים ביותר בהתחלה. לתשומת לבך: drstart חייב להיות לפני drend.
older
לרשום את החדשים ביותר בהתחלה (בררת מחדל). לתשומת לבך: drstart חייב להיות אחרי drend.
מצבים: 1, 3
ערך אחד: newer, older
ברירת מחדל: older
drfrom

Start listing at this title.

מצב: 3
drto

Stop listing at this title.

מצב: 3
drprefix

Search for all page titles that begin with this value.

מצב: 3
drunique

List only one revision for each page.

מצב: 3
drnamespace

Only list pages in this namespace.

מצב: 3
ערך אחד: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
ברירת מחדל: 0
drtag

Only list revisions tagged with this tag.

druser

Only list revisions by this user.

drexcludeuser

Don't list revisions by this user.

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 user ID whom 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.
token
Deprecated. Gives the edit token.
tags
Tags for the revision.
ערכים (מופרדים באמצעות "|"): revid, parentid, user, userid, comment, parsedcomment, minor, len, sha1, content, token, tags
ברירת מחדל: user|comment
drlimit

The maximum amount of revisions to list.

המספר המרבי המותר הוא 500 (עבור בוטים – 5,000).
ברירת מחדל: 10
drcontinue

כשיש עוד תוצאות, להשתמש בזה בשביל להמשיך.

דוגמאות:
List the last deleted revisions of the pages Main Page and Talk:Main Page, with content (mode 1).
api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content
List the last 50 deleted contributions by Bob (mode 2).
api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50
List the first 50 deleted revisions in the main namespace (mode 3).
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50
List the first 50 deleted pages in the שיחה namespace (mode 3).
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=