Difference between revisions of "Template:Git file"

18 bytes added ,  04:13, 24 December 2013
m
indentation
(Fix action default)
>Shirayuki
m (indentation)
Line 1: Line 1:
[https://git.wikimedia.org/{{#if:{{{action|}}}|{{{action}}}|blob}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/{{#if:{{{branch|}}}|{{{branch}}}|HEAD}}/{{urlencode:{{{file|}}}}}{{#if:{{{line|}}}
[https://git.wikimedia.org/{{#if:{{{action|}}}
  |{{{action}}}
  |blob
}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/{{#if:{{{branch|}}}
  |{{{branch}}}
  |HEAD
}}/{{urlencode:{{{file|}}}}}{{#if:{{{line|}}}
   |#L{{{line}}}
   |#L{{{line}}}
}} {{#if:{{{text|}}}
}} {{#if:{{{text|}}}
Line 6: Line 12:
}}]<!--
}}]<!--
-->{{#ifeq:{{{action|}}}|blob_plain
-->{{#ifeq:{{{action|}}}|blob_plain
|<span style="display:none">[[Template:Git file/blob_plain]]</span>}}<!--
  |<span style="display:none">[[Template:Git file/blob_plain]]</span>}}<!--
-->{{#ifeq:{{{action|}}}|shortlog
-->{{#ifeq:{{{action|}}}|shortlog
|<span style="display:none">[[Template:Git file/shortlog]]</span>}}<noinclude>
  |<span style="display:none">[[Template:Git file/shortlog]]</span>}}<noinclude>
{{doc}}
{{doc}}
<small>Maintenance:
<small>Maintenance:
Anonymous user