මාධ්‍යවිකි API උදවු

මෙය ස්වයං-ජනිත මාධ්‍යවිකි API ප්‍රලේඛන පිටුවකි.

ප්‍රලේඛනය සහ උදාහරණ: https://www.mediawiki.org/wiki/API

prop=categories (cl)

(main | query | categories)
  • මෙම ඒකකය සදහා හිමිකම් කියවීම අවශ්‍ය වේ.
  • මෙම ආකෘතිය උත්පාදකයක් ලෙස භාවිතා කල හැක.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

List all categories the pages belong to.

පරාමිතීන්:
Other general parameters are available.
clprop

Which additional properties to get for each category:

sortkey
Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.
timestamp
Adds timestamp of when the category was added.
hidden
Tags categories that are hidden with __HIDDENCAT__.
වටිනාකම් ("|" සමග වෙන් කරන්න): hidden, sortkey, timestamp
clshow

Which kind of categories to show.

වටිනාකම් ("|" සමග වෙන් කරන්න): !hidden, hidden
cllimit

How many categories to return.

Type: integer or max
The value must be between 1 and 500.
Default: 10
clcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

clcategories

Only list these categories. Useful for checking whether a certain page is in a certain category.

වටිනාකම් "|" සමග වෙන් කරන්න.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
cldir

The direction in which to list.

එක් වටිනාකමක්: ascending, descending
Default: ascending
උදාහරණ:
Get a list of categories the page Albert Einstein belongs to.
api.php?action=query&prop=categories&titles=Albert%20Einstein [open in sandbox]
Get information about all categories used in the page Albert Einstein.
api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [open in sandbox]
"https://si.wikibooks.beta.math.wmflabs.org/wiki/විශේෂ:ApiHelp" වෙතින් සම්ප්‍රවේශනය කෙරිණි