Difference between revisions of "Template:Git file"
Jump to navigation
Jump to search
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}}}}}/{{# | [https://phabricator.wikimedia.org/diffusion/{{#invoke:callsigns|repoToCallsign|{{{project|mediawiki/core}}}}}/{{#switch:{{{action|}}} | ||
| | |raw|tree|blame|browse=browse | ||
|#default= {{{action|browse}}} | |||
}}/{{#if:{{{branch|}}} | }}/{{#if:{{{branch|}}} | ||
|{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}} | |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}} |