Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API

action=query

(main | query)
  • Ten moduł wymaga praw odczytu.
  • Źródło: MediaWiki
  • Licencja: GPL-2.0+

Fetch data from and about MediaWiki.

All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites.

Parametry:
prop

Which properties to get for the queried pages.

Wartości (oddziel za pomocą |): categories, categoryinfo, contributors, deletedrevisions, duplicatefiles, extlinks, fileusage, imageinfo, images, info, iwlinks, langlinks, links, linkshere, pageprops, redirects, revisions, stashimageinfo, templates, transcludedin
list

Which lists to get.

Wartości (oddziel za pomocą |): abusefilters, abuselog, allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, allusers, backlinks, blocks, categorymembers, deletedrevs, embeddedin, exturlusage, filearchive, imageusage, iwbacklinks, langbacklinks, logevents, mystashedfiles, pagepropnames, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, search, tags, usercontribs, users, watchlist, watchlistraw
meta

Which metadata to get.

Wartości (oddziel za pomocą |): allmessages, authmanagerinfo, filerepoinfo, siteinfo, tokens, userinfo
indexpageids

Include an additional pageids section listing all returned page IDs.

Typ: wartość logiczna (szczegóły)
export

Export the current revisions of all given or generated pages.

Typ: wartość logiczna (szczegóły)
exportnowrap

Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export.

Typ: wartość logiczna (szczegóły)
iwurl

Whether to get the full URL if the title is an interwiki link.

Typ: wartość logiczna (szczegóły)
continue

When more results are available, use this to continue.

rawcontinue

Return raw query-continue data for continuation.

Typ: wartość logiczna (szczegóły)
titles

A list of titles to work on.

Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
pageids

A list of page IDs to work on.

Type: list of integers
Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
revids

A list of revision IDs to work on.

Type: list of integers
Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
generator

Get the list of pages to work on by executing the specified query module.

Note: Generator parameter names must be prefixed with a "g", see examples.

Jedna z następujących wartość: allcategories, alldeletedrevisions, allfileusages, allimages, alllinks, allpages, allredirects, allrevisions, alltransclusions, backlinks, categories, categorymembers, deletedrevisions, duplicatefiles, embeddedin, exturlusage, fileusage, images, imageusage, iwbacklinks, langbacklinks, links, linkshere, pageswithprop, prefixsearch, protectedtitles, querypage, random, recentchanges, redirects, revisions, search, templates, transcludedin, watchlist, watchlistraw
redirects

Automatically resolve redirects in titles, pageids, and revids, and in pages returned by generator.

Typ: wartość logiczna (szczegóły)
converttitles

Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion. Languages that support variant conversion include gan, iu, kk, ku, shi, sr, tg, uz, zh.

Typ: wartość logiczna (szczegóły)