Difference between revisions of "Template:Git file"

192 bytes added ,  01:29, 20 October 2015
I fixed MWDumper in Module:Callsigns, so Undo revision 1901442 by Ciencia Al Poder (talk)
>Ciencia Al Poder
(Revert edit "First step of migration to Phabricator Diffusion, per phabricator:T101358", since this task is blocked by other unresolved tasks. Not all repos are in diffusion (currently failing at Manual:MWDumper))
>SPage (WMF)
(I fixed MWDumper in Module:Callsigns, so Undo revision 1901442 by Ciencia Al Poder (talk))
Line 1: Line 1:
[https://git.wikimedia.org/{{#if:{{{action|}}}
[https://phabricator.wikimedia.org/diffusion/{{#invoke:callsigns|repoToCallsign|{{{project|mediawiki/core}}}}}/{{#switch:{{{action|}}}
   |{{{action}}}
   |raw|tree|blame|browse=browse
  |blob
  |#default= {{{action|browse}}}
}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/{{#if:{{{branch|}}}
}}/{{#if:{{{branch|}}}
  |{{{branch}}}
  |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
   |HEAD
   |master
}}/{{urlencode:{{{file|}}}}}{{#if:{{{line|}}}
}}/{{{file|}}}{{#if:{{{line|}}}
   |#L{{{line}}}
  |${{{line}}}
}}{{#ifeq:{{{action|}}}|raw
   |?view=raw
  |
}}{{#ifeq:{{{action|}}}|blame
  |?blame=1
  |
}} {{#if:{{{text|}}}
}} {{#if:{{{text|}}}
   |{{{text}}}
   |{{{text}}}
Anonymous user