Difference between revisions 1910361 and 2154530 on mediawikiwiki

{{Documentation subpage}}
{{TNT|Historical|[[Template:Git file]] now uses Diffusion in Phabricator}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->

''Test replacement'' for {{tl|git file}} that links to file in Phabricator's diffusion instead of soon-to-be-deprecated gitblit at git.wikimedia.org ([[phab:T128]]).
<br>
{{tl|git file}} now does this, using [[Module:Callsigns]], so this is '''obsolete'''.

Big issue is mapping a gerrit <code>project=</code> path to Phabricator callsign (see discussion at [[phab:T101358]]).

(below copied from [[Template:Git file/doc]])

This generates a link to a file on <ins>https://phabricator.wikimedia.org/diffusion/</ins> <del>https://git.wikimedia.org our Gitblit server</del>.

== Usage ==
; Basic
 <nowiki>{{phab file</nowiki> |file=''composer.json'' }}
 <nowiki>{{phab file</nowiki> |project=mediawiki/extensions/''Flow'' |file=''composer.json'' }}
produces
:{{phab file|file=composer.json }}
(contracted; show full)* {{tl|MW file}} generates complicated link to file, used by [[Manual]].
* lots of other fancy templates for extensions on gerrit, see [[:Category:Git]].
* {{tl|github}}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Git| ]]
}}</includeonly>