API:Querypage
From MediaWiki.org
This page is part of the MediaWiki action API documentation. |
MediaWiki action API
- Introduction and quick start
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Searching (by title, content, coordinates...)
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Create and edit pages
- Move pages
- Merge pages
- Rollback
- Delete pages
- Restore deleted revisions
- (Un)protect pages
- (Un)block users
- (Un)watch pages
- Mark revisions of watched pages as visited
- Send email
- Patrol changes
- Import pages
- Change user group membership
- Upload files
- User options
- Tokens
- Page language
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
- Asserting
Querypage | ||
---|---|---|
This module can be used as a Generator . |
||
Prefix | qp | |
Required rights | none | |
Post only? | No | |
Generated help | Current | |
Version added |
|
Get a list provided by a QueryPage-based special page.
Parameters[edit]
qppage
: The name of the special page. Note, this is case sensitive. Possible values: vary by wiki and version. Use action=help&modules=query+querypage (action=help&querymodules=querypage prior to 1.21) to discover possible values for a specific wiki.qpoffset
: When more results are available, use this to continue.qplimit
: Number of results to return. No more than 500 (5000 for bots) allowed. (Default: 10)
Example[edit]
Show a list of first 10 pages which are uncategorized.
Result |
---|
<api>
<query>
<querypage name="Uncategorizedpages" cached="" cachedtimestamp="2011-12-13T13:01:36Z">
<results>
<page value="0" ns="0" title="A Holy Terror" />
<page value="0" ns="0" title="African-American Film Critics Association Awards 2011" />
<page value="0" ns="0" title="Aide:Premiers pas" />
<page value="0" ns="0" title="Alcmaeon in Corinth" />
<page value="0" ns="0" title="Apical ectodermal ridge" />
<page value="0" ns="0" title="Beroe" />
<page value="0" ns="0" title="Box of Delights (Book)" />
<page value="0" ns="0" title="Brachydactyly" />
<page value="0" ns="0" title="Chilton High School" />
<page value="0" ns="0" title="Christian Scholarship" />
</results>
</querypage>
</query>
<query-continue>
<querypage qpoffset="10" />
</query-continue>
</api>
|