Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_pag

list=deletedrevs (dr)

(main | query | deletedrevs)
  • Ten moduł jest przestarzały.
  • Ten moduł wymaga praw odczytu.
  • Źródło: MediaWiki
  • Licencja: GPL-2.0-or-later

Lista usuniętych wersji.

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.

Parametry:
drstart

Znacznik czasu, od którego rozpocząć wyliczanie.

Tryby: 1, 2
Typ: znacznik czasu (dozwolone formaty)
drend

Znacznik czasu, na którym zakończyć wyliczanie.

Tryby: 1, 2
Typ: znacznik czasu (dozwolone formaty)
drdir

Kolejność wyliczania:

newer
Wymieniaj najpierw starsze wpisy. Uwaga: drstart musi być przed drend.
older
Wymieniaj najpierw nowsze wpisy (domyślnie). Uwaga: drstart musi być po drend.
Tryby: 1, 3
Jedna z następujących wartości: newer, older
Default: older
drfrom

Start listing at this title.

Tryb: 3
drto

Stop listing at this title.

Tryb: 3
drprefix

Search for all page titles that begin with this value.

Tryb: 3
drunique

Listuj tylko jedną edycję dla każdej strony.

Tryb: 3
Type: boolean (details)
drnamespace

Listuj tylko strony z tej przestrzeni nazw.

Tryb: 3
Jedna z następujących wartości: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 120, 121, 122, 123, 124, 125, 460, 461, 828, 829, 2300, 2301, 2302, 2303
Default: 0
drtag

Pokazuj tylko zmiany oznaczone tym znacznikiem.

druser

Listuj tylko zmiany dokonane przez tego użytkownika.

Typ: użytkownik, podany jako: nazwa użytkownika, IP, nazwa interwiki (np. „prefiks>PrzykładowaNazwa”) oraz ID użytkownika (np. „#12345”)
drexcludeuser

Nie listuj zmian dokonanych przez tego użytkownika.

Typ: użytkownik, podany jako: nazwa użytkownika, IP, nazwa interwiki (np. „prefiks>PrzykładowaNazwa”) oraz ID użytkownika (np. „#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.
token
Deprecated. Gives the edit token.
tags
Tags for the revision.
Wartości (oddziel za pomocą | lub alternatywy): comment, content, len, minor, parentid, parsedcomment, revid, sha1, tags, token, user, userid
Default: user|comment
drlimit

Maksymalna liczba zmian do wylistowania.

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

Gdy będzie dostępnych więcej wyników, użyj tego do kontynuowania.

Przykłady:
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 [otwórz w brudnopisie]
List the last 50 deleted contributions by Bob (mode 2).
api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50 [otwórz w brudnopisie]
List the first 50 deleted revisions in the main namespace (mode 3).
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50 [otwórz w brudnopisie]
List the first 50 deleted pages in the Dyskusja namespace (mode 3).
api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique= [otwórz w brudnopisie]