Template talk:ApiEx

Use plain spaces
Sure wish you used plain ASCII " " spaces. Wouldn't have to go nuts cleaning them up after each cut and paste to try out parts of them.

In fact perhaps any spaces at all is a barrier to people wanting to paste parts of them... Jidanni 20:46, 21 March 2009 (UTC)

Mysterious post parameter ?
The explanation says
 * post - a "list" of ApiEx/Post objects, to generate a post table

I don't understand that. It would be nice to have an example.

Do any pages use this? API:Edit doesn't use it, I would expect it to.

Thanks for working on this!

-- SPage (WMF) (talk) 22:20, 5 February 2015 (UTC)

Switch output to json
Now that API output is JSON by default, the examples should probably switch to  | result=  parameter.

That's predictable, but it means the examples drift out of date. Some ideas (also see T88755):

-- SPage (WMF) (talk) 02:35, 7 February 2015 (UTC)
 * a bot could find instances of this template, run the query, and replace the source parameter with result. Downside is unpredictability, e.g. many would include
 * with some JavaScript support, when you click the API example it could actually run the query and display a result in a box. For bonus points it could let you tweak the parameters, similar to what the OOjs UI Living style guide is doing.
 * the examples could have a link to Special:ApiSandbox, pre-populating its the fields for you.