Template talk:API-head

Add a sourcefile parameter, and class
The page API:Info has
 * The code for retrieving page properties is located on the git repository at.

I think an optional link to source code is useful and should be generalized as an optional  parameter to this template

Simultaneously, the generated api.php?action=help doc knows what class and file output it, so it could probably output
 * Implemented in __FILE__

We could likewise provide links into the doxgen generated doc, e.g. for ApiQueryInfo it's at https://doc.wikimedia.org/mediawiki-core/master/php/html/classApiQueryInfo.html. I'm not sure how regular the translation from filename to doxygen class file is,

-- SPage (WMF) (talk) 09:40, 7 April 2015 (UTC)

Needs a wiki (or lang/site) parameter
This template hardcodes [//www.mediawiki.org/w/api.php?action=help //www.mediawiki.org/w/api.php?action=help]] for its "Generated help" link. But many extensions and thus API modules aren't available on mediawiki.org, such as  and Wikidata's Wikibase APIs. Like ApiEx, this template must allow you to specify a different wiki for generated help links. ApiEx accepts  and   parameters. -- SPage (WMF) (talk) 01:35, 29 May 2015 (UTC)
 * I added, Extension:GettingStarted uses it, but I can't tell if it works or I broke something until the mysterious ways of Extension:Translation and FuzzyBot occur. -- SPage (WMF) (talk) 02:14, 29 May 2015 (UTC)