API:Meta

Meta queries return information which is not associated with pages.

siteinfo / si
Siteinfo returns overall site information. The code for the siteinfo function is located at.

Parameters

 * : Which properties to get
 * : General site information (default)
 * $wgArticlePath
 * (boolean)
 * $wgMaxUploadSize
 * $wgRightsText
 * $wgRightsCode
 * $wgServer
 * $wgScript
 * $wgScriptPath
 * $wgVariantArticlePath
 * : Provides a list of all namespaces.
 * 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
 * : Site statistics in Special:Statistics, plus job queue
 * Note: For historical reasons, the number of files on the wiki is labelled as images not files. This number refers to uploaded files of all types, not just images.
 * : 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 the interwiki prefix points to a site belonging to the current wiki farm, this will be set to an empty string. The value is read straight out of the  column of the interwiki table.
 * : If transcluding pages from this wiki is allowed, this will be set to an empty string. Note that this has no effect unless crosswiki transclusion is enabled on the current wiki.
 * The URL of the wiki, with "$1" as a placeholder for an article name.
 * : If the value of  is protocol-relative (begins with  ), this will be set to an empty string  or the value "true".
 * If the interwiki prefix is a language code defined in Language::fetchLanguageNames from $wgExtraLanguageNames, this will be the name of that language.
 * : If the interwiki prefix is to be considered a language link, despite the prefix not matching a known language code, this will be set to an empty string.
 * : If the interwiki prefix is an extra language link, this will contain the display text used for the links.
 * : If the interwiki prefix is an extra language link, this will contain the friendly site name used in the tooltip text of the links.
 * The internal name of the database. Not filled in by default; it may be missing for you. The value is read straight out of the  column of the interwiki table.
 * The URL of the file  on that wiki. Not filled in by default; it may be missing for you. The value is read straight out of the   column of the interwiki table.
 * : 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 including revision (date and hash) and, if possible, licensing information
 * : 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
 * : Site statistics in Special:Statistics, plus job queue
 * Note: For historical reasons, the number of files on the wiki is labelled as images not files. This number refers to uploaded files of all types, not just images.
 * : 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 the interwiki prefix points to a site belonging to the current wiki farm, this will be set to an empty string. The value is read straight out of the  column of the interwiki table.
 * : If transcluding pages from this wiki is allowed, this will be set to an empty string. Note that this has no effect unless crosswiki transclusion is enabled on the current wiki.
 * The URL of the wiki, with "$1" as a placeholder for an article name.
 * : If the value of  is protocol-relative (begins with  ), this will be set to an empty string  or the value "true".
 * If the interwiki prefix is a language code defined in Language::fetchLanguageNames from $wgExtraLanguageNames, this will be the name of that language.
 * : If the interwiki prefix is to be considered a language link, despite the prefix not matching a known language code, this will be set to an empty string.
 * : If the interwiki prefix is an extra language link, this will contain the display text used for the links.
 * : If the interwiki prefix is an extra language link, this will contain the friendly site name used in the tooltip text of the links.
 * The internal name of the database. Not filled in by default; it may be missing for you. The value is read straight out of the  column of the interwiki table.
 * The URL of the file  on that wiki. Not filled in by default; it may be missing for you. The value is read straight out of the   column of the interwiki table.
 * : 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 including revision (date and hash) and, if possible, licensing information
 * : 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

userinfo / ui
Returns information about the currently logged-in user. The code for the userinfo function is located at.

Parameters

 * : Which properties to get
 * : Whether the current user is blocked, by whom, and why
 * : Whether the current user has new messages on their user talk page
 * : Which groups the current user belongs to
 * : Lists all the groups the current user is automatically a member of
 * : Which rights the current user has
 * : Which groups the current user can add/remove
 * : Which preferences the current user has
 * : Get a token to change current user's preferences
 * : The number of edits the current user has made
 * : Rate limits applying to the current user
 * : User's realname
 * : Email address and authentication timestamp in ISO 8601 format
 * : Echoes the Accept-Language header sent by the client in a structured format
 * : Adds the user's registration date
 * : Adds the count of unread pages on the user's watchlist (maximum 999; returns "1000+" if more)

Possible errors
None.

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

Parameters

 * : Which messages to output. "*" (default) means all 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.
 * : If set, do not include the content of the messages in the output.
 * : Also include local messages, i.e. messages that don't exist in the software but do exist as a MediaWiki: page. This lists all MediaWiki: pages, so it will also list those that aren't 'really' messages such as Common.js
 * : Page name to use as context when parsing message (for enableparser option)
 * : Arguments to be substituted into message
 * : Return messages with this prefix
 * : Return only messages with names that contain this string
 * : Return only messages in this customisation state
 * : Return messages in this language
 * : Return messages starting at this message
 * : Return messages ending at this message

Possible errors
None.

filerepoinfo / fri
Return meta information about image repositories configured on the wiki.

Parameters

 * : Which repository properties to get (there may be more available on some wikis):
 * : URL to the repository API - helpful for getting image info from the host.
 * : The key of the repository - used in e.g. $wgForeignFileRepos and imageinfo return values.
 * : The human-readable name of the repository wiki.
 * : Root URL for image paths.
 * : Whether that repository is the local one or not.

Possible errors
Unknown.