Template:APIQuery categorymembers/doc

Usage

 * Intended use:


 * Place this on a category page to generate a link to call the TechInfoDepot API to generate a list of pages in the category, limited to 500 results.


 * Other uses:


 * Use this on any page to see the number of items in a category of the same name. This is potentially useful on article talk pages which have a category with an identical name.


 * Use this with the CATPAGE parameter to generate a link for a specific category.


 * Use this at Special:ExpandTemplates. Put the category name in the   line and    with the appropriate parameters in the   line.


 * Use this multiple times with different parameters, to generate a list or table of links.

Parameters
Note: Most of these are named after the parameters in the URL. Not all URL parameters are supported.
 * CATPAGE - overrides the magic word.
 * cmprop - default is title. To add timestamps, use title.
 * cmnamespace - default is blank. To filter the results by namespace provide the number of the namespace, e.g. 0 (article), 1 (talk), etc. A full list is at TechInfoDepot:Namespace.
 * format - Default is xml. Other formats supported by the query API are supported.
 * cmsort - Default is no sorting. use timestamp to sort by time. See cmprop above.
 * cmdir - Sorting direction, default is whatever the underlying API default is. desc or asc.
 * Example usage:
 * generates a URL that will list articles in a category
 * generates a URL that will list the user talk pages in a category, sorted by date, descending, with dates
 * generates a URL that will generate JSON-formatted output
 * generates an unsorted list of article pages in Category:Pages where post-expand include size is exceeded:
 * generates a URL that will generate JSON-formatted output
 * generates an unsorted list of article pages in Category:Pages where post-expand include size is exceeded:
 * generates an unsorted list of article pages in Category:Pages where post-expand include size is exceeded:
 * generates an unsorted list of article pages in Category:Pages where post-expand include size is exceeded:

Technical details
This template generates a "plain link" URL whose text is the namespace if the csnamespace parameter is used.

Related templates

 * /row - creates a single row. Example:
 * This example lists  and   pages in Category:Pages where post-expand include size is exceeded
 * /table - Table of all namespaces, using /row
 * /table - Table of all namespaces, using /row