MediaWiki API ヘルプ
このページは自動生成された MediaWiki API の説明文書ページです。
説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
meta=userinfo (ui)
- このモジュールは読み取りの権限を必要とします。
- ソース: MediaWiki
- ライセンス: GPL-2.0-or-later
現在の利用者に関する情報を取得します。
パラメーター:
- uiprop
どの情報を結果に含めるか:
- blockinfo
- Tags if the current user is blocked, by whom, and for what reason.
- hasmsg
- Adds a tag messages if the current user has pending messages.
- groups
- Lists all the groups the current user belongs to.
- groupmemberships
- Lists groups that the current user has been explicitly assigned to, including the expiry date of each group membership.
- 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.
- editcount
- Adds the current user's edit count.
- ratelimits
- Lists all rate limits applying to the current user.
- theoreticalratelimits
- Lists all rate limits that would apply to the current user if they were not exempt from all ratelimits based on user rights or ip
- 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
- Adds the user's registration date.
- unreadcount
- Adds the count of unread pages on the user's watchlist (maximum 999; returns 1000+ if more).
- centralids
- Adds the central IDs and attachment status for the user.
- latestcontrib
- Adds the date of user's latest contribution.
- 値 (| または別の文字列で区切る): acceptlang、blockinfo、centralids、changeablegroups、editcount、email、groupmemberships、groups、hasmsg、implicitgroups、latestcontrib、options、ratelimits、realname、registrationdate、rights、theoreticalratelimits、unreadcount
- すべての値を指定するには、*を用いてください。
- uiattachedwiki
With uiprop=centralids, indicate whether the user is attached with the wiki identified by this ID.
例:
- 現在の利用者に関する情報を取得します。
- api.php?action=query&meta=userinfo [サンドボックスで開く]
- 現在の利用者に関する追加情報を取得します。
- api.php?action=query&meta=userinfo&uiprop=blockinfo|groups|rights|hasmsg [サンドボックスで開く]