MediaWiki API 幫助
這是自動生成的MediaWiki API文檔頁面。
文檔和例子:https://www.mediawiki.org/wiki/API:Main_page/zh
list=users (us)
- 此模塊需要讀取權限。
- 來源:MediaWiki
- 許可協議:GPL-2.0+
獲取有關列出用戶的信息。
參數:
- usprop
要包含的信息束:
- blockinfo
- 如果用戶被封禁就標記,并注明是誰封禁,以何種原因封禁的。
- groups
- 列舉每位用戶屬于的所有組。
- implicitgroups
- Lists all the groups a user is automatically a member of.
- rights
- 列舉每位用戶擁有的所有權限。
- editcount
- 添加用戶的編輯計數。
- registration
- 添加用戶的注冊時間戳。
- emailable
- Tags if the user can and wants to receive email through Special:Emailuser.
- gender
- 標記用戶性別。返回“male”、“female”或“unknown”。
- centralids
- 添加中心ID并為用戶附加狀態。
- cancreate
- Indicates whether an account for valid but unregistered usernames can be created.
- 值(以|分隔):blockinfo、groups、implicitgroups、rights、editcount、registration、emailable、gender、centralids、cancreate
- usattachedwiki
與usprop=centralids一起使用,表明用戶是否附加于此ID定義的wiki。
- ususers
要獲取信息的用戶列表。
- 類型:用戶名列表
- 通過“|”隔開各值。 值的最高數字是50(對于機器人則是500)。
- ustoken
- 不推薦使用。
- 值(以|分隔):userrights