Ajuda API da MediaWiki
Esta é uma página de documentação API do MediaWiki gerada automaticamente.
Documentação e exemplos: https://www.mediawiki.org/wiki/API
list=users (us)
- This module requires read rights.
- Fonte: MediaWiki
- Licença: GPL-2.0+
Obter informação sobre uma lista de usuários.
Parâmetros:
- usprop
Which pieces of information to include:
- blockinfo
- Tags if the user is blocked, by whom, and for what reason.
- groups
- Lists all the groups each user belongs to.
- implicitgroups
- Lists all the groups a user is automatically a member of.
- rights
- Lists all the rights each user has.
- editcount
- Adds the user's edit count.
- registration
- Adds the user's registration timestamp.
- emailable
- Tags if the user can and wants to receive email through Special:Emailuser.
- gender
- Tags the gender of the user. Returns "male", "female", or "unknown".
- centralids
- Adds the central IDs and attachment status for the user.
- cancreate
- Indicates whether an account for valid but unregistered usernames can be created.
- Valores (separar com |): blockinfo, groups, implicitgroups, rights, editcount, registration, emailable, gender, centralids, cancreate
- usattachedwiki
With usprop=centralids, indicate whether the user is attached with the wiki identified by this ID.
- ususers
A list of users to obtain information for.
- Tipo: lista de nomes de utilizadores
- Separe os valores com |. Maximum number of values is 50 (500 for bots).
- ustoken
- Obsoleto.
Use action=query&meta=tokens instead.
- Valores (separar com |): userrights
Exemplo:
- Return information for user Example.
- api.php?action=query&list=users&ususers=Example&usprop=groups|editcount|gender [abrir na página de testes]