Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:GitHub Repository: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#ifeq:{{#if:{{{branch|}}}|Y|B}}|{{#if:{{{commit|}}}|Y|C}}|{{error|{{Tl|GitHub Repository}}: Found both <code>|branch=</code> and <code>|commit=</code>}}|[https://github.com/{{{1}}}/{{#if:{{{branch|{{{commit|}}}}}}{{{file|}}}|{{#if:{{{file|}}}|blob|tree}}/{{{branch|master}}}/{{{file|}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|<nowiki>#</nowiki>L{{{line}}}}}}}}} {{{1}}}{{#if:{{{branch|{{{commit|}}}}}}|@<code>{{{branch|{{#invoke:String|sub|s={{{commit}}}|j=7}}}}}</code>}}{{#if:{{{file|}}}|<nowiki>:</nowiki>/{{{file}}}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|<nowiki>#</nowiki>L{{{line}}}}}}}]}}|{{error|{{Tl|GitHub Repository}}: Missing parameter 1 (repository)}}}}</includeonly><noinclude>{{doc}}</noinclude>
<includeonly>{{#if:{{{1|}}}|{{#ifeq:{{#if:{{{branch|}}}|Y|B}}|{{#if:{{{commit|}}}|Y|C}}|{{error|1={{Tl|GitHub Repository}}: Found both <code>&#x007C;branch=</code> and <code>&#x007C;commit=</code>}}|[https://github.com/{{{1}}}/{{#if:{{{branch|{{{commit|}}}}}}{{{file|}}}|{{#if:{{{file|}}}|blob|tree}}/{{{branch|master}}}/{{{file|}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|&#x0023;L{{{line}}}}}}}}} {{{1}}}{{#if:{{{branch|{{{commit|}}}}}}|@<code>{{{branch|{{#invoke:String|sub|s={{{commit}}}|j=7}}}}}</code>}}{{#if:{{{file|}}}|&#x003A;/{{{file}}}}}{{#if:{{{file|}}}|{{#if:{{{line|}}}|<nowiki>#</nowiki>L{{{line}}}}}}}]}}|{{error|{{Tl|GitHub Repository}}: Missing parameter 1 (repository)}}}}</includeonly><noinclude>{{doc}}</noinclude>

Latest revision as of 10:53, 7 June 2024