API:Informacje o parameterach

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page API:Parameter information and the translation is 78% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎català • ‎dansk • ‎español • ‎français • ‎polski • ‎português • ‎română • ‎sicilianu • ‎русский • ‎հայերեն • ‎سنڌي • ‎ไทย • ‎中文 • ‎日本語 • ‎한국어

Pobieranie informacji o parametrach

Możesz wyświetlić informacje na temat modułów API i ich parametrów poprzez parametr action=paraminfo.

Parametry

  • modules: Lista nazw głównych modułów (wartość parametru action) lub podmodułów, takich jak query+siteprop.
  • helpformat: Format of help strings. Possible values: html, wikitext, raw, none (Default: none) 1.25+
  • querymodules: Lista nazw modułów zapytań (wartości parametrów prop, meta lub list). Używaj w zamian modules=query+module. (przestarzałe od 1.25)
  • mainmodule: Get information about the main (top-level) module as well. Używaj w zamian modules=main. Type: bool 1.15+ (przestarzałe od 1.25)
  • pagesetmodule: Get information about the pageset module (providing titles and friends) as well. Używaj w zamian modules=query. Type: bool 1.15+ (przestarzałe od 1.25)
  • formatmodules: List of format module names (value of format parameter). Używaj w zamian modules=format. Possible values: see Data formats 1.19+ (przestarzałe od 1.25)

Przykład

Pobieranie informacji na temat parametrów action=parse oraz prop=info query submodule, and a bogus query module:





action=paraminfo

(main | paraminfo)

Obtain information about API modules.

Parameters:
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 +**.

Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
helpformat

Format of help strings.

One of the following values: html, wikitext, raw, none
Default: none
querymodules
Deprecated.

List of query module names (value of prop, meta or list parameter). Use modules=query+foo instead of querymodules=foo.

Values (separate with | or alternative): abusefilters, abuselog, allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allmessages, allpages, allredirects, allrevisions, alltransclusions, allusers, authmanagerinfo, babel, backlinks, betafeatures, blocks, categories, categoryinfo, categorymembers, centralnoticelogs, checkuser, checkuserlog, cirrusbuilddoc, cirrusdoc, codecomments, codepaths, coderevisions, codetags, contributors, deletedrevisions, deletedrevs, description, duplicatefiles, embeddedin, extdistbranches, extdistrepos, extlinks, extracts, exturlusage, featureusage, filearchive, filerepoinfo, fileusage, flowinfo, gadgetcategories, gadgets, globalallusers, globalblocks, globalgroups, globalpreferences, globalrenamestatus, globalusage, globaluserinfo, imageinfo, images, imageusage, info, iwbacklinks, iwlinks, langbacklinks, langlinks, languagestats, links, linkshere, linterrors, linterstats, logevents, mapdata, messagecollection, messagegroups, messagegroupstats, messagetranslations, mmsites, mostviewed, mystashedfiles, notifications, oath, pageimages, pagepropnames, pageprops, pageswithprop, pageterms, pageviews, prefixsearch, protectedtitles, querypage, random, readinglistentries, readinglists, recentchanges, redirects, references, revisions, search, siteinfo, siteviews, stashimageinfo, tags, templates, threads, tokens, transcludedin, transcodestatus, unreadnotificationpages, usercontribs, userinfo, users, videoinfo, watchlist, watchlistraw, wbentityusage, wblistentityusage, wikibase, wikisets
Maximum number of values is 50 (500 for bots).
mainmodule
Deprecated.

Get information about the main (top-level) module as well. Use modules=main instead.

pagesetmodule
Deprecated.

Get information about the pageset module (providing titles= and friends) as well.

formatmodules
Deprecated.

List of format module names (value of format parameter). Use modules instead.

Values (separate with | or alternative): json, jsonfm, none, php, phpfm, rawfm, xml, xmlfm

Możliwe błędy

Brak.