MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

meta=userinfo (ui)

(main | query | userinfo)
  • Este módulo requiere permisos de lectura.
  • Fuente: MediaWiki
  • Licencia: GPL-2.0+

Obtener información sobre el usuario actual.

Parámetros:
uiprop

Qué piezas de información incluir:

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
Lista todos los grupos al que pertenece el usuario actual.
implicitgroups
Lists all the groups the current user is automatically a member of.
rights
Lista todos los permisos que tiene el usuario actual.
changeablegroups
Lists the groups the current user can add to and remove from.
options
Lista todas las preferencias que haya establecido el usuario actual.
preferencestoken
Deprecated. Get a token to change current user's preferences.
editcount
Añade el número de ediciones del usuario actual.
ratelimits
Lista todos los límites de velocidad aplicados al usuario actual.
email
Adds the user's email address and email authentication date.
realname
Añade el nombre real del usuario.
acceptlang
Echoes the Accept-Language header sent by the client in a structured format.
registrationdate
Añade la fecha de registro del usuario.
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.
Valores (separados por |): blockinfo, hasmsg, groups, implicitgroups, rights, changeablegroups, options, preferencestoken, editcount, ratelimits, email, realname, acceptlang, registrationdate, unreadcount, centralids
uiattachedwiki

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

Ejemplos:
Obtener información sobre el usuario actual.
api.php?action=query&meta=userinfo [open in sandbox]
Obtener información adicional sobre el usuario actual.
api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg [open in sandbox]