Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

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

list=logevents (le)

(main | query | logevents)

Pobierz zdarzenia z rejestru.

Parametry:
Other general parameters are available.
leprop

Which properties to get:

ids
Adds the ID of the log event.
title
Adds the title of the page for the log event.
type
Adds the type of log event.
user
Adds the user responsible for the log event. If the user has been revision deleted, a userhidden property will be returned.
userid
Adds the user ID who was responsible for the log event. If the user has been revision deleted, a userhidden property will be returned.
timestamp
Adds the timestamp for the log event.
comment
Adds the comment of the log event. If the comment has been revision deleted, a commenthidden property will be returned.
parsedcomment
Adds the parsed comment of the log event. If the comment has been revision deleted, a commenthidden property will be returned.
details
Lists additional details about the log event. If the log event has been revision deleted, an actionhidden property will be returned.
tags
Lists tags for the log event.
Wartości (oddziel za pomocą | lub alternatywy): comment, details, ids, parsedcomment, tags, timestamp, title, type, user, userid
Domyślnie: ids|title|type|user|timestamp|comment|details
letype

Filter log entries to only this type.

Jedna z następujących wartości: Może być pusty albo abusefilter, abusefilterblockeddomainhit, abusefilterprivatedetails, block, checkuser-temporary-account, contentmodel, create, delete, gblblock, gblrename, gblrights, globalauth, import, interwiki, managetags, merge, move, newusers, patrol, protect, renameuser, rights, suppress, tag, thanks, upload
leaction

Filter log actions to only this action. Overrides letype. In the list of possible values, values with the asterisk wildcard such as action/* can have different strings after the slash (/).

Jedna z następujących wartości: abusefilter/create, abusefilter/hit, abusefilter/modify, abusefilterblockeddomainhit/*, abusefilterprivatedetails/access, block/block, block/reblock, block/unblock, checkuser-private-event/*, checkuser-temporary-account/*, contentmodel/change, contentmodel/new, create/create, delete/delete, delete/delete_redir, delete/delete_redir2, delete/event, delete/restore, delete/revision, gblblock/*, gblblock/gunblock, gblrename/merge, gblrename/promote, gblrename/rename, gblrights/deleteset, gblrights/groupperms, gblrights/groupprms2, gblrights/groupprms3, gblrights/grouprename, gblrights/newset, gblrights/setchange, gblrights/setnewtype, gblrights/setrename, gblrights/usergroups, globalauth/delete, globalauth/hide, globalauth/lock, globalauth/lockandhid, globalauth/setstatus, globalauth/unhide, globalauth/unlock, import/interwiki, import/upload, interwiki/*, managetags/activate, managetags/create, managetags/deactivate, managetags/delete, merge/merge, move/move, move/move_redir, newusers/autocreate, newusers/byemail, newusers/create, newusers/create2, newusers/forcecreatelocal, newusers/newusers, patrol/autopatrol, patrol/patrol, protect/modify, protect/move_prot, protect/protect, protect/unprotect, renameuser/renameuser, rights/autopromote, rights/blockautopromote, rights/restoreautopromote, rights/rights, suppress/block, suppress/cadelete, suppress/delete, suppress/event, suppress/hide-afl, suppress/reblock, suppress/revision, suppress/setstatus, suppress/unhide-afl, tag/update, thanks/*, upload/overwrite, upload/revert, upload/upload
lestart

The timestamp to start enumerating from.

Typ: znacznik czasu (dozwolone formaty)
leend

The timestamp to end enumerating.

Typ: znacznik czasu (dozwolone formaty)
ledir

Kolejność wyliczania:

newer
Wymieniaj najpierw starsze wpisy. Uwaga: lestart musi być przed leend.
older
Wymieniaj najpierw nowsze wpisy (domyślnie). Uwaga: lestart musi być po leend.
newer
List oldest first. Note: lestart has to be before leend.
older
List newest first (default). Note: lestart has to be later than leend.
Jedna z następujących wartości: newer, older
Domyślnie: older
leuser

Filter entries to those made by the given user.

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

Filter entries to those related to a page.

lenamespace

Filter entries to those in the given namespace.

Jedna z następujących wartości: -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 730, 731, 828, 829
leprefix

Disabled due to miser mode.

letag

Only list event entries tagged with this tag.

lelimit

How many total event entries to return.

Type: integer or max
Wartość musi znajdować się pomiędzy 1 a 500.
Domyślnie: 10
lecontinue

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

Przykład:
Lista ostatnich zarejestrowanych zdarzeń.
api.php?action=query&list=logevents [otwórz w brudnopisie]