API:Siteinfo

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)
 * : API version information
 * : PCRE. See Help:Links
 * $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-insensitive" 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 function hooks
 * : URL protocol recognised
 * : Default preferences
 * : Protection levels
 * : 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
 * 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 function hooks
 * : URL protocol recognised
 * : Default preferences
 * : Protection levels
 * : 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
 * : 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