Bridge Query functions

From Apibot
Jump to: navigation, search

This is a list of all Query functions in the Bridge class.

All functions take the following two optional parameters:

  • $params - parameters to add to and/or override the default ones
  • $settings - configuration settings about the module behavior

If empty, $params can be set to NULL, and $settings can be set to an empty array.

Some functions take also a mandatory parameter, which is different for every function and comes before the two optional ones.

All functions return an object that is descendant of the type API_Query. You can set to it options and parameters in addition to those passed to the function that returned it.

If Apibot believes the wiki does not support queries of the type you requested (eg. if they were introduced in a MediaWiki version later than the wiki one), it will throw a PHP exception while creating the Query object. The exception will be of the type ApibotException_InternalError. The object returned will be malformed and unusable. To be prepared for such an opportunity, best enclose the Bridge Query function call in a try... catch construction.

Contents

Pageset

query_titles()

Syntax
query_titles ( $titles, $params = NULL, $settings = array() )
Mandatory parameters:
$titles A page title, or an array of page titles to query about
Resulting Query object returns
Information about the title(s) specified (eg. page properties).
(Use more specific functions, unless you really know what you are doing.)

query_pageids()

Syntax
query_pageids ( $pageids, $params = NULL, $settings = array() )
Mandatory parameters:
$pageids A page pageid, or an array of page pageids to query about
Resulting Query object returns
Information about the pageid(s) specified (eg. page properties).
(Use more specific functions, unless you really know what you are doing.)

query_revids()

Syntax
query_revids ( $revids, $params = NULL, $settings = array() )
Mandatory parameters:
$revids A revid, or an array of revids of the page(s) to query about
Resulting Query object returns
Information about the page(s) with the revid(s) specified (eg. page properties).
(Use more specific functions, unless you really know what you are doing.)

Page properties

Generic

These functions return a bare API_Query_Property descendant object. You have to specify further the titles, pageids or revids it should return. Typically you do this by assigning an array or bar-separated string to one of the object properties titles, pageids or revids.

query_property_categories()

Syntax
query_property_categories ( $params = NULL, $settings = array() )
Resulting Query object returns
The categories this page belongs to.

query_property_categoryinfo()

Syntax
query_property_categoryinfo ( $params = NULL, $settings = array() )
Resulting Query object returns
Info about this category (if the page is a category page).

query_property_duplicatefiles()

Syntax
query_property_duplicatefiles ( $params = NULL, $settings = array() )
Resulting Query object returns
What files are duplicates of this one (if the page is a file page).

query_property_extlinks()

Syntax
query_property_extlinks ( $params = NULL, $settings = array() )
Resulting Query object returns
What external links this page / pages / pageids / revids contain.

query_property_imageinfo()

Syntax
query_property_imageinfo ( $params = NULL, $settings = array() )
Resulting Query object returns
Info about this image (if the page is an image file page).

query_property_images()

Syntax
query_property_images ( $params = NULL, $settings = array() )
Resulting Query object returns
The images used in this page.

query_property_info()

Syntax
query_property_info ( $params = NULL, $settings = array() )
Resulting Query object returns
Various bits of info about this page.

query_property_langlinks()

Syntax
query_property_langlinks ( $params = NULL, $settings = array() )
Resulting Query object returns
The langlinks (interwikis) this page has (in a multi-wiki installation).

query_property_links()

Syntax
query_property_links ( $params = NULL, $settings = array() )
Resulting Query object returns
The links used in this page.

query_property_pageprops()

Syntax
query_property_pageprops ( $params = NULL, $settings = array() )
Resulting Query object returns
Various page properties, specified in the page text.

query_property_revisions()

Syntax
query_property_revisions ( $params = NULL, $settings = array() )
Resulting Query object returns
The page revisions.

query_property_templates()

Syntax
query_property_templates ( $params = NULL, $settings = array() )
Resulting Query object returns
The templates used in this page.

By page title

All of these functions take one mandatory argument - the title of the page to query about.

query_title_categories()

Syntax
query_title_categories ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
The categories this page belongs to.

query_title_categoryinfo()

Syntax
query_title_categoryinfo ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
Info about this category (if the page is a category page).

query_title_duplicatefiles()

Syntax
query_title_duplicatefiles ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
What files are duplicates of this one (if the page is a file page).

query_title_extlinks()

Syntax
query_title_extlinks ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
What extlinks the page with this title contains.

query_title_imageinfo()

Syntax
query_title_imageinfo ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
Info about this image (if the page is an image file page).

query_title_images()

Syntax
query_title_images ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
The images used in this page.

query_title_info()

Syntax
query_title_info ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
Various bits of info about this page.

query_title_langlinks()

Syntax
query_title_langlinks ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
The langlinks (interwikis) this page has (in a multi-wiki installation).

query_title_links()

Syntax
query_title_links ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
The links used in this page.

query_title_pageprops()

Syntax
query_title_pageprops ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
Various page properties, specified in the page text.

query_title_revisions()

Syntax
query_title_revisions ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
The page revisions.

query_title_templates()

Syntax
query_title_templates ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
The templates used in this page.

By page pageid

All of these functions take one mandatory argument - the pageid of the page to query about.

query_pageid_categories()

Syntax
query_pageid_categories ( $pageids, $params = NULL, $settings = array() )
Resulting Query object returns
The categories this page belongs to.

query_pageid_categoryinfo()

Syntax
query_pageid_categoryinfo ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
Info about this category (if the page is a category page).

query_pageid_duplicatefiles()

Syntax
query_pageid_duplicatefiles ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
What files are duplicates of this one (if the page is a file page).

query_pageid_extlinks()

Syntax
query_pageid_extlinks ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
The extlinks the page with this pageid contains.

query_pageid_imageinfo()

Syntax
query_pageid_imageinfo ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
Info about this image (if the page is an image file page).

query_pageid_images()

Syntax
query_pageid_images ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
The images used in this page.

query_pageid_info()

Syntax
query_pageid_info ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
Various bits of info about this page.

query_pageid_langlinks()

Syntax
query_pageid_langlinks ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
The langlinks (interwikis) this page has (in a multi-wiki installation).

query_pageid_links()

Syntax
query_pageid_links ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
The links used in this page.

query_pageid_pageprops()

Syntax
query_pageid_pageprops ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
Various page properties, specified in the page text.

query_pageid_revisions()

Syntax
query_pageid_revisions ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
The page revisions.

query_pageid_templates()

Syntax
query_pageid_templates ( $pageid, $params = NULL, $settings = array() )
Resulting Query object returns
The templates used in this page.

By page revid

All of these functions take one mandatory argument - the revid of a revision of the page to query about.

query_revid_categories()

Syntax
query_revid_categories ( $revids, $params = NULL, $settings = array() )
Resulting Query object returns
The categories this page belongs to.

query_revid_categoryinfo()

Syntax
query_revid_categoryinfo ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
Info about this category (if the page is a category page).

query_revid_duplicatefiles()

Syntax
query_revid_duplicatefiles ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
What files are duplicates of this one (if the page is a file page).

query_revid_extlinks()

Syntax
query_revid_extlinks ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
The extlinks the page revision with this revid contains.

query_revid_imageinfo()

Syntax
query_revid_imageinfo ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
Info about this image (if the page is an image file page).

query_revid_images()

Syntax
query_revid_images ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
The images used in this page.

query_revid_info()

Syntax
query_revid_info ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
Various bits of info about this page.

query_revid_langlinks()

Syntax
query_revid_langlinks ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
The langlinks (interwikis) this page has (in a multi-wiki installation).

query_revid_links()

Syntax
query_revid_links ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
The links used in this page.

query_revid_pageprops()

Syntax
query_revid_pageprops ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
Various page properties, specified in the page text.

query_revid_revisions()

Syntax
query_revid_revisions ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
The page revisions.

query_revid_templates()

Syntax
query_revid_templates ( $revid, $params = NULL, $settings = array() )
Resulting Query object returns
The templates used in this page.

Generator

List-based generators

query_generator_allcategories()

Syntax
query_generator_allcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki categories (possibly with their page properties), as specified by the params.

query_generator_allimages()

Syntax
query_generator_allimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki images and other files (possibly with their page properties), as specified by the params.

query_generator_alllinks()

Syntax
query_generator_alllinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki links (possibly with their page properties), as specified by the params.

query_generator_allpages()

Syntax
query_generator_allpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties), as specified by the params.

query_generator_alltransclusions()

Syntax
query_generator_alltranslcusions ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages transcluded with Template:X (possibly with their page properties), including non-existing ones, as specified by the params.

query_generator_backlinks()

Syntax
query_generator_backlinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that link to a given page, as specified by the params.

query_generator_categorymembers()

Syntax
query_generator_categorymembers ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages and categories (possibly with their page properties) that belong to a given category, as specified by the params.

query_generator_embeddedin()

Syntax
query_generator_embeddedin ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that are embedded (like templates) in a given page, as specified by the params.

query_generator_exturlusage()

Syntax
query_generator_exturlusage ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that contain a given external URL, as specified by the params.

query_generator_imageusage()

Syntax
query_generator_imageusage ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that use given image (or other file), as specified by the params.

query_generator_iwbacklinks()

Syntax
query_generator_iwbacklinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that link to a given interwiki link, as specified by the params.

query_generator_langbacklinks()

Syntax
query_generator_langbacklinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Undocumented in the MW docs, by 2012-12-12. (Seems to me a kind of synonym to iwbacklinks.)

query_generator_protectedtitles()

Syntax
query_generator_protectedtitles ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are protected from creation, as specified by the params.

query_generator_querypage()

Syntax
query_generator_querypage ( $title, $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that are listed by a given "special page" pages list, as specified by the params.

query_generator_random()

Syntax
query_generator_random ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) listed at random, as specified by the params.

query_generator_recentchanges()

Syntax
query_generator_recentchanges ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that are changed recently, as specified by the params.
(Will work only on recent enough versions of MediaWiki.)

query_generator_search()

Syntax
query_generator_search ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that contain given string in their text or title, as specified by the params.

query_generator_watchlist()

Syntax
query_generator_watchlist ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that are included in the current account's watchlist, as specified by the params.

query_generator_watchlistraw()

Syntax
query_generator_watchlistraw ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that are included in a given user's watchlist, as specified by the params.

Page property-based generators

query_generator_categories()

Syntax
query_generator_categories ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) of categories that given page(s) is/are in, as specified by the params.
(Set the pages later by assigning an array or bar-separated string of values to $query->titles, $query->pageids or $query->revids.)

query_generator_duplicatefiles()

Syntax
query_generator_duplicatefiles ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) of files that are duplicates of the given (file) page, as specified by the params.
(Set the pages later by assigning an array or bar-separated string of values to $query->titles, $query->pageids or $query->revids.)

query_generator_images()

Syntax
query_generator_images ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) of images that are used in the given page(s), as specified by the params.
(Set the pages later by assigning an array or bar-separated string of values to $query->titles, $query->pageids or $query->revids.)

query_generator_links()

Syntax
query_generator_links ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) that are linked in the given page(s), as specified by the params.
(Set the pages later by assigning an array or bar-separated string of values to $query->titles, $query->pageids or $query->revids.)

query_generator_templates()

Syntax
query_generator_templates ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages (possibly with their page properties) of templates that are included in the given page(s), as specified by the params.
(Set the pages later by assigning an array or bar-separated string of values to $query->titles, $query->pageids or $query->revids.)

Querypage-based generators

query_generator_querypage_ancientpages()

Syntax
query_generator_querypage_ancientpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that haven't been changed for the longest time.

query_generator_querypage_brokenredirects()

Syntax
query_generator_querypage_brokenredirects ( $params = NULL, $settings = array() )
Resulting Query object returns
Redirects that point to non-existing page(s).

query_generator_querypage_deadendpages()

Syntax
query_generator_querypage_deadendpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that dont' contain links to other pages.

query_generator_querypage_disambiguations()

Syntax
query_generator_querypage_disambiguations ( $params = NULL, $settings = array() )
Resulting Query object returns
Disambiguation pages.

query_generator_querypage_doubleredirects()

Syntax
query_generator_querypage_doubleredirects ( $params = NULL, $settings = array() )
Resulting Query object returns
Redirects that point to another redirect.

query_generator_querypage_fewestrevisions()

Syntax
query_generator_querypage_fewestrevisions ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that have the fewest number of revisions.

query_generator_querypage_listredirects()

Syntax
query_generator_querypage_listredirects ( $params = NULL, $settings = array() )
Resulting Query object returns
Redirect pages (redirects).

query_generator_querypage_lonelypages()

Syntax
query_generator_querypage_lonelypages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that are not linked by any other pages. (AKA orphaned pages.)

query_generator_querypage_longpages()

Syntax
query_generator_querypage_longpages ( $params = NULL, $settings = array() )
Resulting Query object returns
The longest (with most text) pages.

query_generator_querypage_mostcategories()

Syntax
query_generator_querypage_mostcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that belong to the biggest number of categories.

query_generator_querypage_mostimages()

Syntax
query_generator_querypage_mostimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that contain the biggest number of images.

query_generator_querypage_mostlinked()

Syntax
query_generator_querypage_mostlinked ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that are linked to by the biggest number of other pages.

query_generator_querypage_mostlinkedcategories()

Syntax
query_generator_querypage_mostlinkedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that are linked to by the biggest number of pages.

query_generator_querypage_mostlinkedtemplates()

Syntax
query_generator_querypage_mostlinkedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that are linked to by the biggest number of pages.

query_generator_querypage_mostrevisions()

Syntax
query_generator_querypage_mostrevisions ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that have the biggest number of revisions.

query_generator_querypage_shortpages()

Syntax
query_generator_querypage_shortpages ( $params = NULL, $settings = array() )
Resulting Query object returns
The shortest (with the smallest text) pages.

query_generator_querypage_uncategorizedcategories()

Syntax
query_generator_querypage_uncategorizedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that do not belong to any category.

query_generator_querypage_uncategorizedimages()

Syntax
query_generator_querypage_uncategorizedimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Images that do not belong to any category.

query_generator_querypage_uncategorizedpages()

Syntax
query_generator_querypage_uncategorizedpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that do not belong to any category.

query_generator_querypage_uncategorizedtemplates()

Syntax
query_generator_querypage_uncategorizedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that do not belong to any category.

query_generator_querypage_unusedcategories()

Syntax
query_generator_querypage_unusedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that nothing belongs to (empty categories).

query_generator_querypage_unusedimages()

Syntax
query_generator_querypage_unusedimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Images that are not included in any page.

query_generator_querypage_unusedtemplates()

Syntax
query_generator_querypage_unusedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that are not used (included) by any page.

query_generator_querypage_unwatchedpages()

Syntax
query_generator_querypage_unwatchedpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that are not marked as watched (by the account the bot is using).

query_generator_querypage_wantedcategories()

Syntax
query_generator_querypage_wantedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that are not created yet but some pages and/or another categories belong to them, or link to them.

query_generator_querypage_wantedfiles()

Syntax
query_generator_querypage_wantedfiles ( $params = NULL, $settings = array() )
Resulting Query object returns
Files that do not exist but some pages use them.

query_generator_querypage_wantedpages()

Syntax
query_generator_querypage_wantedpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that do not exist but some pages link to them.

query_generator_querypage_wantedtemplates()

Syntax
query_generator_querypage_wantedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that do not exist but some pages use them.

query_generator_querypage_withoutinterwiki()

Syntax
query_generator_querypage_withoutinterwiki ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that do not have interwikis (langlinks).

List

Classic lists

query_list_allcategories()

Syntax
query_list_allcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki categories, as specified by the params.

query_list_allimages()

Syntax
query_list_allimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki images and other files, as specified by the params.

query_list_alllinks()

Syntax
query_list_alllinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki links, as specified by the params.

query_list_allpages()

Syntax
query_list_allpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages, as specified by the params.

query_list_alltransclusions()

Syntax
query_list_alltranslcusions ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages transcluded with Template:X, including non-existing ones, as specified by the params.

query_list_backlinks()

Syntax
query_list_backlinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that link to a given page, as specified by the params.

query_list_blocks()

Syntax
query_list_blocks ( $params = NULL, $settings = array() )
Resulting Query object returns
Blocks put on users, IPs or IP ranges, as specified by the params.

query_list_categorymembers()

Syntax
query_list_categorymembers ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages and categories that belong to a given category, as specified by the params.

query_list_deletedrevs()

Syntax
query_list_deletedrevs ( $params = NULL, $settings = array() )
Resulting Query object returns
Deleted revisions, as specified by the params.
(The account might need certain privileges to access this list.)

query_list_embeddedin()

Syntax
query_list_embeddedin ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are embedded (like templates) in a given page, as specified by the params.

query_list_exturlusage()

Syntax
query_list_exturlusage ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that contain a given external URL, as specified by the params.

query_list_filearchive()

Syntax
query_list_filearchive ( $params = NULL, $settings = array() )
Resulting Query object returns
Deleted files, as specified by the params.
(The account might need certain privileges to access this list.)

query_list_imageusage()

Syntax
query_list_imageusage ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that use given image (or other file), as specified by the params.

query_list_iwbacklinks()

Syntax
query_list_iwbacklinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that link to a given interwiki link, as specified by the params.

query_list_langbacklinks()

Syntax
query_list_langbacklinks ( $params = NULL, $settings = array() )
Resulting Query object returns
Undocumented in the MW docs, by 2012-12-12. (Seems to me a kind of synonym to iwbacklinks.)

query_list_logevents()

Syntax
query_list_logevents ( $params = NULL, $settings = array() )
Resulting Query object returns
MediaWiki log events, as specified by the params.

query_list_protectedtitles()

Syntax
query_list_protectedtitles ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are protected from creation, as specified by the params.

query_list_querypage()

Syntax
query_list_querypage ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are listed by a given "special page" pages list, as specified by the params.

query_list_random()

Syntax
query_list_random ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages listed at random, as specified by the params.

query_list_recentchanges()

Syntax
query_list_recentchanges ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are changed recently, as specified by the params.
(Will work only on recent enough versions of MediaWiki.)

query_list_search()

Syntax
query_list_search ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that contain given string in their text or title, as specified by the params.

query_list_tags()

Syntax
query_list_tags ( $params = NULL, $settings = array() )
Resulting Query object returns
Valid MediaWiki change tags.

query_list_usercontribs()

Syntax
query_list_usercontribs ( $params = NULL, $settings = array() )
Resulting Query object returns
The contributions of a given user, as specified by the params.

query_list_users()

Syntax
query_list_users ( $params = NULL, $settings = array() )
Resulting Query object returns
The given user(s) with some additional details, as specified by the params.

query_list_watchlist()

Syntax
query_list_watchlist ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are included in the current account's watchlist, as specified by the params.

query_list_watchlistraw()

Syntax
query_list_watchlistraw ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki pages that are included in a given user's watchlist, as specified by the params.

Querypage-based lists

query_list_querypage_ancientpages()

Syntax
query_list_querypage_ancientpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that haven't been changed for the longest time.

query_list_querypage_brokenredirects()

Syntax
query_list_querypage_brokenredirects ( $params = NULL, $settings = array() )
Resulting Query object returns
Redirects that point to non-existing page(s).

query_list_querypage_deadendpages()

Syntax
query_list_querypage_deadendpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that dont' contain links to other pages.

query_list_querypage_disambiguations()

Syntax
query_list_querypage_disambiguations ( $params = NULL, $settings = array() )
Resulting Query object returns
Disambiguation pages.

query_list_querypage_doubleredirects()

Syntax
query_list_querypage_doubleredirects ( $params = NULL, $settings = array() )
Resulting Query object returns
Redirects that point to another redirect.

query_list_querypage_fewestrevisions()

Syntax
query_list_querypage_fewestrevisions ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that have the fewest number of revisions.

query_list_querypage_listredirects()

Syntax
query_list_querypage_listredirects ( $params = NULL, $settings = array() )
Resulting Query object returns
Redirect pages (redirects).

query_list_querypage_lonelypages()

Syntax
query_list_querypage_lonelypages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that are not linked by any other pages. (AKA orphaned pages.)

query_list_querypage_longpages()

Syntax
query_list_querypage_longpages ( $params = NULL, $settings = array() )
Resulting Query object returns
The longest (with most text) pages.

query_list_querypage_mostcategories()

Syntax
query_list_querypage_mostcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that belong to the biggest number of categories.

query_list_querypage_mostimages()

Syntax
query_list_querypage_mostimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that contain the biggest number of images.

query_list_querypage_mostlinked()

Syntax
query_list_querypage_mostlinked ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that are linked to by the biggest number of other pages.

query_list_querypage_mostlinkedcategories()

Syntax
query_list_querypage_mostlinkedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that are linked to by the biggest number of pages.

query_list_querypage_mostlinkedtemplates()

Syntax
query_list_querypage_mostlinkedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that are linked to by the biggest number of pages.

query_list_querypage_mostrevisions()

Syntax
query_list_querypage_mostrevisions ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that have the biggest number of revisions.

query_list_querypage_shortpages()

Syntax
query_list_querypage_shortpages ( $params = NULL, $settings = array() )
Resulting Query object returns
The shortest (with the smallest text) pages.

query_list_querypage_uncategorizedcategories()

Syntax
query_list_querypage_uncategorizedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that do not belong to any category.

query_list_querypage_uncategorizedimages()

Syntax
query_list_querypage_uncategorizedimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Images that do not belong to any category.

query_list_querypage_uncategorizedpages()

Syntax
query_list_querypage_uncategorizedpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that do not belong to any category.

query_list_querypage_uncategorizedtemplates()

Syntax
query_list_querypage_uncategorizedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that do not belong to any category.

query_list_querypage_unusedcategories()

Syntax
query_list_querypage_unusedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that nothing belongs to (empty categories).

query_list_querypage_unusedimages()

Syntax
query_list_querypage_unusedimages ( $params = NULL, $settings = array() )
Resulting Query object returns
Images that are not included in any page.

query_list_querypage_unusedtemplates()

Syntax
query_list_querypage_unusedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that are not used (included) by any page.

query_list_querypage_unwatchedpages()

Syntax
query_list_querypage_unwatchedpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that are not marked as watched (by the account the bot is using).

query_list_querypage_wantedcategories()

Syntax
query_list_querypage_wantedcategories ( $params = NULL, $settings = array() )
Resulting Query object returns
Categories that are not created yet but some pages and/or another categories belong to them, or link to them.

query_list_querypage_wantedfiles()

Syntax
query_list_querypage_wantedfiles ( $params = NULL, $settings = array() )
Resulting Query object returns
Files that do not exist but some pages use them.

query_list_querypage_wantedpages()

Syntax
query_list_querypage_wantedpages ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that do not exist but some pages link to them.

query_list_querypage_wantedtemplates()

Syntax
query_list_querypage_wantedtemplates ( $params = NULL, $settings = array() )
Resulting Query object returns
Templates that do not exist but some pages use them.

query_list_querypage_withoutinterwiki()

Syntax
query_list_querypage_withoutinterwiki ( $params = NULL, $settings = array() )
Resulting Query object returns
Pages that do not have interwikis (langlinks).

Meta

query_meta_siteinfo()

Syntax
query_meta_siteinfo ( $propname, $params = NULL, $settings = array() )
Resulting Query object returns
The data about the property specified.
May be any standard property, or even a non-standard one, if it is described in the wiki paraminfo obtained.)

query_meta_siteinfo_dbrepllag()

Syntax
query_meta_siteinfo_dbrepllag ( $params = NULL, $settings = array() )
Resulting Query object returns
Database servers reply lag, if any.

query_meta_siteinfo_extensions()

Syntax
query_meta_siteinfo_extensions ( $params = NULL, $settings = array() )
Resulting Query object returns
MediaWiki extensions installed at this wiki.

query_meta_siteinfo_fileextensions()

Syntax
query_meta_siteinfo_fileextensions ( $params = NULL, $settings = array() )
Resulting Query object returns
File extensions supported and recognized by the files support in this wiki.

query_meta_siteinfo_general()

Syntax
query_meta_siteinfo_general ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki general info (one value at a time - array keys are parameter names and values are, well, values).

query_meta_siteinfo_interwikimap()

Syntax
query_meta_siteinfo_interwikimap ( $params = NULL, $settings = array() )
Resulting Query object returns
List of the interwikis (different language etc. versions) installed at this wiki farm.

query_meta_siteinfo_languages()

Syntax
query_meta_siteinfo_languages ( $params = NULL, $settings = array() )
Resulting Query object returns
Language translations available for the interface (also error messages etc.) on this wiki.

query_meta_siteinfo_magicwords()

Syntax
query_meta_siteinfo_magicwords ( $params = NULL, $settings = array() )
Resulting Query object returns
Magic words available for use in the page texts on this wiki.

query_meta_siteinfo_namespacealiases()

Syntax
query_meta_siteinfo_namespacealiases ( $params = NULL, $settings = array() )
Resulting Query object returns
Aliases for the namespaces on this wiki.
(The namespaces themselves are listed through an API_Query_Meta_Siteinfo_Namespaces object, that can be obtained by the query_meta_siteinfo_namespaces() function.)

query_meta_siteinfo_namespaces()

Syntax
query_meta_siteinfo_namespaces ( $params = NULL, $settings = array() )
Resulting Query object returns
Namespaces on this wiki.

query_meta_siteinfo_rightsinfo()

Syntax
query_meta_siteinfo_rightsinfo ( $params = NULL, $settings = array() )
Resulting Query object returns
Info about the licenses, copyrights etc. that govern the content of this wiki.

query_meta_siteinfo_specialpagealiases()

Syntax
query_meta_siteinfo_specialpagealiases ( $params = NULL, $settings = array() )
Resulting Query object returns
Aliases for the special pages on this wiki. (The special pages themselves can be obtained by listing the pages in the "Special" namespace.)

query_meta_siteinfo_statistics()

Syntax
query_meta_siteinfo_statistics ( $params = NULL, $settings = array() )
Resulting Query object returns
Statistics for this wiki (one value at a time - array keys are the parameter names and the values are the statistics numbers for these parameters).

query_meta_siteinfo_usergroups()

Syntax
query_meta_siteinfo_usergroups ( $params = NULL, $settings = array() )
Resulting Query object returns
User groups that are supported in this wiki.

query_meta_userinfo()

Syntax
query_meta_userinfo ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki (current) user information, as specified by the params.

query_meta_allmessages()

Syntax
query_meta_allmessages ( $params = NULL, $settings = array() )
Resulting Query object returns
Wiki messages, as specified by the params.

query_meta_filerepoinfo()

Syntax
query_meta_filerepoinfo ( $params = NULL, $settings = array() )
Resulting Query object returns
Info about the file repositories used by this wiki.