MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/API
meta=userinfo (ui)
- このモジュールは読み取りの権限を必要とします。
 
Get information about the current user.
パラメーター:
- uiprop
 Which pieces of information to include:
- blockinfo
 - Tags if the current user is blocked, by whom, and for what reason.
 - hasmsg
 - Adds a tag message if the current user has pending messages.
 - groups
 - Lists all the groups the current user belongs to.
 - implicitgroups
 - Lists all the groups the current user is automatically a member of.
 - rights
 - Lists all the rights the current user has.
 - changeablegroups
 - Lists the groups the current user can add to and remove from.
 - options
 - Lists all preferences the current user has set.
 - preferencestoken
 - Deprecated. Get a token to change current user's preferences.
 - editcount
 - Adds the current user's edit count.
 - ratelimits
 - Lists all rate limits applying to the current user.
 - realname
 - Adds the user's real name.
 - Adds the user's email address and email authentication date.
 - acceptlang
 - Echoes the 
Accept-Languageheader sent by the client in a structured format. - registrationdate
 - Adds the user's registration date.
 - unreadcount
 - Adds the count of unread pages on the user's watchlist (maximum 999; returns 1000+ if more).
 
- 値 (|で区切る): blockinfo、hasmsg、groups、implicitgroups、rights、changeablegroups、options、preferencestoken、editcount、ratelimits、email、realname、acceptlang、registrationdate、unreadcount
 
例:
- Get information about the current user.
 - api.php?action=query&meta=userinfo
 - Get additional information about the current user.
 - api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg