Difference between revisions of "Template:Git file"

Jump to navigation Jump to search
377 bytes removed ,  01:44, 25 August 2020
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:
[[phab:/r/p/{{{project|mediawiki/core}}};{{#switch:{{{action|}}}
[https://gerrit.wikimedia.org/g/{{{project|mediawiki/core}}}/{{#switch:{{{action|browse}}}
   |raw|browse=browse
  |blame=+blame
   |tree=browse|
  |shortlog
   |#default= {{{action|browse}}}
  |history=+log
}}/{{#if:{{{branch|}}}
   |raw
   |{{#ifeq:{{{branch|}}}|HEAD|master|{{{branch}}}}}
  |browse
  |master
   |tree
}}/{{{file|}}}{{#if:{{{sha|}}}
   |#default=+
  |%3b{{{sha}}}
}}/{{#if:{{{sha|}}}
  |{{{sha}}}
   |{{#ifeq:{{{branch|}}}|master|HEAD|{{{branch|HEAD}}}|HEAD}}
}}/{{#if:{{{file|}}}
|{{{file}}}
}}{{#if:{{{line|}}}
}}{{#if:{{{line|}}}
  |${{{line}}}
|#{{#if:{{{line|}}}|{{{line}}}}}
}}{{#ifeq:{{{action|}}}|raw
}} {{#if:{{{text|}}}|{{{text}}}|{{{file}}}}}]<noinclude>
  |?view=raw
  |
}}{{!}}{{#if:{{{text|}}}
  |{{{text}}}
  |{{{file}}}
}}]]<!--
-->{{#ifeq:{{{action|}}}|blob_plain
  |<span style="display:none">[[Template:Git file/blob_plain]]</span>}}<!--
-->{{#ifeq:{{{action|}}}|shortlog
  |<span style="display:none">[[Template:Git file/shortlog]]</span>}}<noinclude>
{{doc}}
{{doc}}
<small>Maintenance:
[[Special:WhatLinksHere/Template:Git file/blob_plain|blob_plain]],
[[Special:WhatLinksHere/Template:Git file/shortlog|shortlog]]</small>
[[Category:External link templates]]
[[Category:External link templates]]
</noinclude>
</noinclude>
Anonymous user

Navigation menu