Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
meta=siteinfo (si)
- Tento modul vyžaduje oprávnění ke čtení.
- Zdroj: MediaWiki
- Licence: GPL-2.0-or-later
Return general information about the site.
Parametry:
Other general parameters are available.
- siprop
Which information to get:
- general
- Overall system information.
- namespaces
- List of registered namespaces and their canonical names.
- namespacealiases
- List of registered namespace aliases.
- specialpagealiases
- List of special page aliases.
- magicwords
- List of magic words and their aliases.
- interwikimap
- Returns interwiki map (optionally filtered, optionally localised by using siinlanguagecode).
- dbrepllag
- Returns database server with the highest replication lag.
- statistics
- Returns site statistics.
- usergroups
- Returns user groups and the associated permissions.
- autocreatetempuser
- Returns configuration for the automatic creation of temporary user accounts (also known as IP masking).
- clientlibraries
- Returns client-side libraries installed on the wiki
- libraries
- Returns libraries installed on the wiki.
- extensions
- Returns extensions installed on the wiki.
- fileextensions
- Returns list of file extensions (file types) allowed to be uploaded.
- rightsinfo
- Returns wiki rights (license) information if available.
- restrictions
- Returns information on available restriction (protection) types.
- languages
- Returns a list of languages MediaWiki supports (optionally localised by using siinlanguagecode).
- languagevariants
- Returns a list of language codes for which LanguageConverter is enabled, and the variants supported for each.
- skins
- Returns a list of all enabled skins (optionally localised by using siinlanguagecode, otherwise in the content language).
- extensiontags
- Returns a list of parser extension tags.
- functionhooks
- Returns a list of parser function hooks.
- showhooks
- Returns a list of all subscribed hooks (contents of $wgHooks).
- variables
- Returns a list of variable IDs.
- protocols
- Returns a list of protocols that are allowed in external links.
- defaultoptions
- Returns the default values for user preferences.
- uploaddialog
- Returns the upload dialog configuration.
- autopromote
- Returns the automatic promotion configuration.
- autopromoteonce
- Returns the automatic promotion configuration that are only done once.
- Hodnoty (oddělené | nebo alternativou.): autocreatetempuser, autopromote, autopromoteonce, clientlibraries, dbrepllag, defaultoptions, extensions, extensiontags, fileextensions, functionhooks, general, interwikimap, languages, languagevariants, libraries, magicwords, namespacealiases, namespaces, protocols, restrictions, rightsinfo, showhooks, skins, specialpagealiases, statistics, uploaddialog, usergroups, variables
- Default: general
- sifilteriw
Return only local or only nonlocal entries of the interwiki map.
- Jedna z následujících hodnot: !local, local
- sishowalldb
List all database servers, not just the one lagging the most.
- Type: boolean (details)
- sinumberingroup
Lists the number of users in user groups.
- Type: boolean (details)
- siinlanguagecode
Language code for localised language names (best effort) and skin names.
Příklady:
- Fetch site information.
- api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics [otevřít v pískovišti]
- Fetch a list of local interwiki prefixes.
- api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local [otevřít v pískovišti]
- Check the current replication lag.
- api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb= [otevřít v pískovišti]