API:Userinfo

Returns information about the currently logged-in user. The code for the userinfo function is located at.

Parameters

 * : Which properties to get
 * : Whether the current user is blocked, by whom, and why
 * : Whether the current user has new messages on their user talk page. To clear the flag, load the page via index.php or, in MediaWiki versions 1.24 and above, use API:ClearHasMsg.
 * : Which groups the current user belongs to
 * : Lists all the groups the current user is automatically a member of
 * : Which rights the current user has
 * : Which groups the current user can add/remove
 * : Which preferences the current user has
 * : Get a token to change current user's preferences
 * : The number of edits the current user has made
 * : Rate limits applying to the current user
 * : User's realname
 * : Email address and authentication timestamp in ISO 8601 format
 * : Echoes the Accept-Language header sent by the client in a structured format
 * : Adds the user's registration date
 * : Adds the count of unread pages on the user's watchlist (maximum 999; returns "1000+" if more)

Possible errors
None.