Difference between revisions 705257 and 706892 on mediawikiwiki

<noinclude>{{Documentation subpage}}
{{timw|{{BASEPAGENAME}}}}
</noinclude>
<!-- PUT HERE THE DOCUMENTATION -->
This generates a link to a file on [[Gerrit]].

The goal is to avoid ugly URLs in wiki text like
  https://gerrit.wikimedia.org/r/gitweb?p=blob/mediawiki/%2Fextensions/%2Fexamples.git;f=/HEAD/BoilerPlate/%2FREADME;hb=HEAD
and also future-proof (ha ha) these links against changes and evolution to source code control, such as swapping gitweb for GitBlit ({{bug|38383}}).

== Usage ==
; basic
 <nowiki>{{git file</nowiki> |project=mediawiki/extensions/''examples'' |file=''BoilerPlate/README'' }}
produces
:{{git file|project=mediawiki/extensions/examples|file=BoilerPlate/README }}
(contracted; show full)== See also ==
* this replaces Template:GitwebFile that had almost exactly the same functionality (but undocumented and uncategorized so spage missed it)
* {{tl|MW file}} generates complicated link to file, used by [[Manual]]
* lots of other fancy templates for extensions on gerrit, see [[:Category:Git]]
<includeonly>
<!-- PUT HERE THE CATEGORIES OF THE TEMPLATE -->
[[Category:Git| ]]
</includeonly>