Template:Git file/doc

This generates a link to a file on https://git.wikimedia.org, our Gitblit server.

Usage
produces
 * Basic

produces
 * action

produces
 * line number

produces
 * project summary page

Parameters

 * project
 * defaults to mediawiki/core. Must be entire path to project &mdash; e.g. mediawiki/extensions/EventLogging, not "EventLogging" and without any .git suffix.


 * branch
 * defaults to HEAD.


 * file
 * optional. A file or directory within the project, without the leading '/ ' . If you just want to link to the project, use gitweb. Note to avoid confusion you may want to invoke this template with underscore &mdash;.


 * text
 * optional. The text that's linked. If not specified, defaults to file.


 * action
 * optional. You can give a Gitblit action, e.g. ,  ,  . Use   to link to a directory in the project. Note: Gitblit doesn't support gerrit/gitweb's action blob_plain


 * line
 * optional.  will add a fragment to the URL that positions the browser at line 42 of the file.

Known Issues

 * Merge with Git, or maybe Gerrit, MW file, etc. but simpler?