MediaWiki API 幫助

這是自動生成的MediaWiki API文檔頁面。

文檔和例子: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并為用戶附加狀態。
值(以|分隔):blockinfo、hasmsg、groups、implicitgroups、rights、changeablegroups、options、preferencestoken、editcount、ratelimits、email、realname、acceptlang、registrationdate、unreadcount、centralids
uiattachedwiki

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