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
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|}}}|<!---->#L{{{line}}}}}}}}} {{{1}}}{{#if:{{{branch|{{{commit|}}}}}}|@<code>{{{branch|{{#invoke:String|sub|s={{{commit}}}|j=7}}}}}</code>}}{{#if:{{{file|}}}|<!---->:/{{{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|{{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|}}}|&#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>

Revision as of 10:51, 7 June 2024