Template:ApiEx

Use this template on API documentation pages to format an example API request.

Note as an alternative, Api help transcludes localized API documentation generated from source code which normally has API examples in it.

Usage:

Parameters:
 * desc - API request description
 * lang - two-letter code for the wiki language. 'en' by default.
 * site - full URL of site to use in example (e.g., www.mediawiki.org). Overrides lang parameter.
 * p1-p9 - parameter groups, each containing one or more param=value pairs separated by an ampersand (&).
 * result - the result of the query execution. Add the template, preview, click the api.php link, and copy and paste the API response back into | result=.
 * post - a "list" of ApiEx/Post objects, to generate a post table
 * collapse - set to "no" to stop "result" and "post" sections from being collapsed with Collapse top/Collapse bottom

'''[///w/api.php? api.php ? ]'''