Difference between revisions of "Template:Git file"

192 bytes removed ,  17:22, 26 September 2015
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)
m (remove {{Category|Link templates}})
>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))
Line 1: Line 1:
[https://phabricator.wikimedia.org/diffusion/{{#invoke:callsigns|repoToCallsign|{{{project|mediawiki/core}}}}}/{{#switch:{{{action|}}}
[https://git.wikimedia.org/{{#if:{{{action|}}}
   |raw|tree|blame|browse=browse
   |{{{action}}}
  |#default= {{{action|browse}}}
  |blob
}}/{{#if:{{{branch|}}}
}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/{{#if:{{{branch|}}}
  |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
  |{{{branch}}}
   |master
   |HEAD
}}/{{{file|}}}{{#if:{{{line|}}}
}}/{{urlencode:{{{file|}}}}}{{#if:{{{line|}}}
  |${{{line}}}
   |#L{{{line}}}
}}{{#ifeq:{{{action|}}}|raw
   |?view=raw
  |
}}{{#ifeq:{{{action|}}}|blame
  |?blame=1
  |
}} {{#if:{{{text|}}}
}} {{#if:{{{text|}}}
   |{{{text}}}
   |{{{text}}}
Anonymous user