Difference between revisions of "Template:Git file"
Jump to navigation
Jump to search
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/ | [https://phabricator.wikimedia.org/r/p/{{{project|mediawiki/core}}};{{#switch:{{{action|}}} | ||
|raw | |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 | ||
| | | | ||
}} {{#if:{{{text|}}} | }} {{#if:{{{text|}}} |