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

meta=userinfo (ui)

(main | query | userinfo)

Pobierz informacje o aktualnym użytkowniku.

Parametry:
uiprop

Jakie informacje dołączyć:

blockinfo
Tags if the current user is blocked, by whom, and for what reason.
hasmsg
Adds a tag messages if the current user has pending messages.
groups
Wyświetla wszystkie grupy, do których należy bieżący użytkownik.
groupmemberships
Lists groups that the current user has been explicitly assigned to, including the expiry date of each group membership.
implicitgroups
Lists all the groups the current user is automatically a member of.
rights
Wyświetla wszystkie uprawnienia, które ma bieżący użytkownik.
changeablegroups
Lists the groups the current user can add to and remove from.
options
Lists all preferences the current user has set.
editcount
Dodaje liczbę edycji bieżącego użytkownika.
ratelimits
Lists all rate limits applying to the current user.
email
Dodaje adres e-mail użytkownika i datę jego potwierdzenia.
realname
Adds the user's real name.
acceptlang
Echoes the Accept-Language header sent by the client in a structured format.
registrationdate
Dodaje datę rejestracji użytkownika.
unreadcount
Adds the count of unread pages on the user's watchlist (maximum 999; returns 1000+ if more).
centralids
Adds the central IDs and attachment status for the user.
preferencestoken
Przestarzałe. Zdobądź token, by zmienić bieżące preferencje użytkownika.
latestcontrib
Adds the date of user's latest contribution.
Wartości (oddziel za pomocą | lub alternatywy): acceptlang, blockinfo, centralids, changeablegroups, editcount, email, groupmemberships, groups, hasmsg, implicitgroups, latestcontrib, options, ratelimits, realname, registrationdate, rights, unreadcount, preferencestoken
Aby wskazać wszystkie wartości, użyj *.
uiattachedwiki

With uiprop=centralids, indicate whether the user is attached with the wiki identified by this ID.

Przykłady:
Pobierz informacje o aktualnym użytkowniku.
api.php?action=query&meta=userinfo [otwórz w brudnopisie]
Pobierz dodatkowe informacje o aktualnym użytkowniku.
api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg [otwórz w brudnopisie]