MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

meta=userinfo (ui)

main | query | userinfo
  • 此模块需要读取权限。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0+

获取有关当前用户的信息。

参数:
uiprop

要包含的信息束:

blockinfo
如果当前用户被封禁就标记,并注明是谁封禁,以何种原因封禁的。
hasmsg
如果当前用户有等待中的消息的话,添加标签messages
groups
列举当前用户隶属的所有群组。
implicitgroups
列举当前用户的所有自动成为成员的用户组。
rights
列举当前用户拥有的所有权限。
changeablegroups
Lists the groups the current user can add to and remove from.
options
Lists all preferences the current user has set.
preferencestoken
已弃用。获取令牌以更改当前用户的参数设置。
editcount
添加当前用户的编辑计数。
ratelimits
Lists all rate limits applying to the current user.
email
Adds the user's email address and email authentication date.
realname
添加用户的真实姓名。
acceptlang
Echoes the Accept-Language header sent by the client in a structured format.
registrationdate
添加用户的注册时间。
unreadcount
Adds the count of unread pages on the user's watchlist (maximum 999; returns 1000+ if more).
centralids
添加中心ID并为用户附加状态。
值(以|替代物分隔):blockinfohasmsggroupsimplicitgroupsrightschangeablegroupsoptionspreferencestokeneditcountratelimitsemailrealnameacceptlangregistrationdateunreadcountcentralids
uiattachedwiki

uiprop=centralids一起使用,表明用户是否附加于此ID定义的wiki。