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/API
action=paraminfo
(main | paraminfo)
- Zdroj: MediaWiki
- Licence: GPL-2.0-or-later
Obtain information about API modules.
Parametry:
- modules
List of module names (values of the action and format parameters, or main). Can specify submodules with a +, or all submodules with +*, or all submodules recursively with +**.
- Hodnoty oddělujte pomocí | nebo alternativou.
- Maximum number of values is 50 (500 for clients allowed higher limits).
- helpformat
Format of help strings.
- Jedna z následujících hodnot: html, none, raw, wikitext
- Default: none
- querymodules
- Zastaralý.
List of query module names (value of prop, meta or list parameter). Use modules=query+foo instead of querymodules=foo.
- Hodnoty (oddělené | nebo alternativou.): allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allmessages, allpages, allredirects, allrevisions, alltransclusions, allusers, authmanagerinfo, backlinks, blocks, categories, categoryinfo, categorymembers, contributors, deletedrevisions, deletedrevs, duplicatefiles, embeddedin, extlinks, exturlusage, filearchive, filerepoinfo, fileusage, imageinfo, images, imageusage, info, iwbacklinks, iwlinks, langbacklinks, langlinks, languageinfo, links, linkshere, logevents, mystashedfiles, pagepropnames, pageprops, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, redirects, revisions, search, siteinfo, stashimageinfo, tags, templates, tokens, transcludedin, usercontribs, userinfo, users, watchlist, watchlistraw
- Maximum number of values is 50 (500 for clients allowed higher limits).
- mainmodule
- Zastaralý.
Get information about the main (top-level) module as well. Use modules=main instead.
- pagesetmodule
- Zastaralý.
Get information about the pageset module (providing titles= and friends) as well.
- formatmodules
- Zastaralý.
List of format module names (value of format parameter). Use modules instead.
- Hodnoty (oddělené | nebo alternativou.): json, jsonfm, none, php, phpfm, rawfm, xml, xmlfm
Příklady:
- Show info for action=parse, format=jsonfm, action=query&list=allpages, and action=query&meta=siteinfo.
- api.php?action=paraminfo&modules=parse|phpfm|query%2Ballpages|query%2Bsiteinfo [otevřít v pískovišti]
- Show info for all submodules of action=query.
- api.php?action=paraminfo&modules=query%2B* [otevřít v pískovišti]