Difference between revisions of "Template:Git file"

65 bytes removed ,  23:20, 7 June 2016
This fixes most issues with you carn't view a file in change with this fix you can.
>SPage (WMF)
(I fixed MWDumper in Module:Callsigns, so Undo revision 1901442 by Ciencia Al Poder (talk))
>Paladox
(This fixes most issues with you carn't view a file in change with this fix you can.)
Line 1: Line 1:
[https://phabricator.wikimedia.org/diffusion/{{#invoke:callsigns|repoToCallsign|{{{project|mediawiki/core}}}}}/{{#switch:{{{action|}}}
[https://phabricator.wikimedia.org/r/p/{{{project|mediawiki/core}}};{{#switch:{{{action|}}}
   |raw|tree|blame|browse=browse
   |raw|browse=browse
   |#default= {{{action|browse}}}
   |#default= {{{action|browse}}}
}}/{{#if:{{{branch|}}}
}}/{{#if:{{{branch|}}}
   |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
   |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
   |master
   |master
}}/{{{file|}}}{{#if:{{{line|}}}
}}/{{{file|}}}{{#if:{{{sha|}}}
  |%3b{{{sha}}}
}}{{#if:{{{line|}}}
   |${{{line}}}
   |${{{line}}}
}}{{#ifeq:{{{action|}}}|raw
}}{{#ifeq:{{{action|}}}|raw
   |?view=raw
   |?view=raw
  |
}}{{#ifeq:{{{action|}}}|blame
  |?blame=1
   |
   |
}} {{#if:{{{text|}}}
}} {{#if:{{{text|}}}
Anonymous user