Difference between revisions of "Template:Git file"
use #if for branch
>Shirayuki ({{Category|External link templates}}) |
>Legoktm (use #if for branch) |
||
Line 1: | Line 1: | ||
[https://git.wikimedia.org/{{{action|blob}}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/{{{branch|HEAD | [https://git.wikimedia.org/{{{action|blob}}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/{{#if:{{{branch|}}}|{{{branch}}}|HEAD}}/{{urlencode:{{{file|}}}}}{{#if:{{{line|}}} | ||
|#L{{{line}}} | |#L{{{line}}} | ||
}} {{#if:{{{text|}}} | }} {{#if:{{{text|}}} |