API:Meta/ja

メタクエリはページに関連しない情報を返します.

siteinfo / si
Siteinfo はサイト全体の情報を返します. The code for the siteinfo function is located at ApiQuerySiteinfo.php.

パラメータ

 * : どのプロパティを取得するか
 * : 一般的なサイト情報 (default)
 * is what $wgRightsText contains
 * : すべての名前空間のリスト
 * Each namespace is given within its own element, which contains several attributes:
 * an integer identification number which is unique for each namespace.
 * if present, will always be a null attribute (subpages=""). This attribute indicates that subpages are allowed within the namespace.
 * Provides the canonical namespace name of the namespace, which may or may not be the same as the actual namespace name. For example, all wikis have a "Project:" namespace, but the actual namespace name is normally changed to the name of the wiki (on Wikipedia for example, the "Project:" namespace is "Wikipedia:").
 * if present, will always be a null attribute (content=""). This attribute indicates that pages within this namespace should be treated as the main content of the wiki. Pages within namespaces with the content value set are counted for statistical purposes, among other things.
 * Either "first-letter" or "case-sensitive". If the first letter of the namespace name is capitalized (the default), then the value of this attribute will be "first-letter". Otherwise, the value will be "case-sensitive" in order to indicate that the namespace name in question intentionally does not use a capital first letter. Note: "case-sensitive" is reserved for future use
 * : Special:Statisticsに従ったサイトの統計情報, plus job queue
 * : If  is not set, provides information about the database server with the highest replication lag. If   is set, shows replication lag for each database server.
 * : A list of each interwiki prefix, provided within its own element.
 * The attributes provided in each  element include:
 * Is the prefix of the interwiki link; this is used the same way as a namespace is used when editing.
 * (if true) A boolean value indicating whether the wiki is in this project.
 * The URL of the wiki, with "$1" as a placeholder for an article name.
 * (if defined) The name of the language used by the wiki, derived by Language::fetchLanguageNames from $wgExtraLanguageNames.
 * The internal name of the database.
 * The URL of the file api.php.
 * : A list of all namespace aliases
 * : A list of all special page aliases
 * : A list of all user groups and their permissions
 * : A list of extensions installed on the wiki
 * : A list of skins installed on the wiki
 * : A list of magic words and their aliases
 * : A list of file extensions allowed to be uploaded
 * : Get information about the license governing the wiki's content
 * In the best case this will provide:
 * which is what $wgRightsUrl contains (like a license URL)
 * which is what $wgRightsText contains (like the license name) and is also provided with
 * If $wgRightsPage is set,  is the URL to a page whose meaning has to be interpreted separately and is not output by the API
 * The API doesn't output whatever MediaWiki:Copyright contains
 * : Get available languages as seen in preferences
 * : Criteria to filter the interwiki map by (ignored if  isn't set)
 * : Only list local interwiki prefixes
 * : Only list non-local interwiki prefixes
 * : Show information about all DB servers (ignored if  isn't set)
 * : When set to true and  includes   the number of users in each usergroup and the groups it can add/remove are included

起こり得るエラー

 * code: includeAllDenied
 * info: $wgShowHostnamesがtrueではない限りすべてのサーバ情報を閲覧できない

userinfo / ui
現在ログインしているユーザーに関する情報を返す. The code for the userinfo function is located at ApiQueryUserInfo.php.

パラメータ

 * : どのプロパティを取得するか
 * : 現在のユーザーがだれによって、なぜブロックされているか
 * : 現在のユーザーの会話ページ上に新しいメッセージがあるかどうか
 * : 現在のユーザーが所属しているグループ
 * : 現在のユーザーが所有している権限
 * : Which groups the current user can add/remove
 * : 現在のユーザーが持っているプリファレンス
 * : 現在のユーザーが行った編集回数
 * : 現在のユーザーに適用されているレートリミット
 * : User's realname [1.18+]
 * : Email address and authentication timestamp in ISO 8601 format [1.15+]

起こり得るエラー
なし.

allmessages / am
Lists the contents of all (or a few) interface messages.

パラメータ

 * : これらのメッセージのみを一覧表示する
 * : Which properties to get, the only (default) prop is "default"
 * When the default is identical to the (custom) message, the prop is not added
 * : Set to enable parser, will preprocess the wikitext of message. Will substitute magic words, handle templates etc.
 * : Arguments to be substituted into message
 * : メッセージ名がこの文字を含むメッセージのみを一覧表示する
 * : メッセージをこの言語に翻訳する
 * : Return messages starting at this message
 * : Return messages ending at this message

起こり得るエラー
なし.