Difference between revisions of "Template:Git file"
Jump to navigation
Jump to search
Convert to use Gerrit Gitiles instead of Phabricator as canonical linking
>Pppery (Remove useless template, only ever did anything on translatable pages) |
>Krinkle (Convert to use Gerrit Gitiles instead of Phabricator as canonical linking) |
||
Line 1: | Line 1: | ||
[ | [https://gerrit.wikimedia.org/g/{{{project|mediawiki/core}}}/{{#switch:{{{action|browse}}} | ||
|raw| | |blame=+blame | ||
|tree | |shortlog | ||
|#default= | |history=+log | ||
}}/{{#if:{{{ | |raw | ||
|{{#ifeq:{{{branch|}}}|HEAD | |browse | ||
|tree | |||
}}/ | |#default=+ | ||
}}/{{#if:{{{sha|}}} | |||
|{{{sha}}} | |||
|{{#ifeq:{{{branch|}}}|master|HEAD|{{{branch|HEAD}}}|HEAD}} | |||
}}/{{#if:{{{file|}}} | |||
|{{{file}}} | |||
}}{{#if:{{{line|}}} | }}{{#if:{{{line|}}} | ||
|#{{#if:{{{line|}}}|{{{line}}}}} | |||
}} {{#if:{{{text|}}}|{{{text}}}|{{{file}}}}}]<noinclude> | |||
}} | |||
{{doc}} | {{doc}} | ||
[[Category:External link templates]] | [[Category:External link templates]] | ||
</noinclude> | </noinclude> |