Difference between revisions of "Template:Git file"

fix line parameter to use Gitblit syntax, make file optional
>Mattflaschen
(convert to use urlencode for project (staff))
>SPage (WMF)
(fix line parameter to use Gitblit syntax, make file optional)
Line 1: Line 1:
[https://git.wikimedia.org/{{{action|blob}}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/HEAD/{{urlencode:{{{file}}}}}{{#if:{{{line|}}}|&#35;l{{{line}}}}} {{#if:{{{text|}}}|{{{text}}}|{{{file}}}}}]<noinclude>
[https://git.wikimedia.org/{{{action|blob}}}/{{urlencode:{{{project|mediawiki/core}}}}}.git/HEAD/{{urlencode:{{{file|}}}}}{{#if:{{{line|}}}|&#35;L{{{line}}}}} {{#if:{{{text|}}}|{{{text}}}|{{{file}}}}}]<noinclude>
{{doc}}
{{doc}}
</noinclude>
</noinclude>
Anonymous user