Difference between revisions of "Template:Git file"

Jump to navigation Jump to search
29 bytes removed ,  18:51, 11 August 2015
Add action=tree as seen on Extension:Lockdown, use a switch instead.
>SPage (WMF)
(Fix action=blame, map it to /browse/path/to/file ?blame=1)
>Nemo bis
(Add action=tree as seen on Extension:Lockdown, use a switch instead.)
Line 1: Line 1:
[https://phabricator.wikimedia.org/diffusion/{{#invoke:callsigns|repoToCallsign|{{{project|mediawiki/core}}}}}/{{#if:{{{action|}}}
[https://phabricator.wikimedia.org/diffusion/{{#invoke:callsigns|repoToCallsign|{{{project|mediawiki/core}}}}}/{{#switch:{{{action|}}}
   |{{#ifeq:{{{action|}}}|raw|browse|{{#ifeq:{{{action|}}}|blame|browse|{{{action}}}}}}}
   |raw|tree|blame|browse=browse
  |browse
  |#default= {{{action|browse}}}
}}/{{#if:{{{branch|}}}
}}/{{#if:{{{branch|}}}
   |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
   |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
Anonymous user

Navigation menu