6,608
edits
(Created the {{github clone}} template.) |
(Full support for aliased and numbered parameters, with examples to demonstrate the capabilities.) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#tag:nowiki|{{repo link | {{#tag:nowiki|{{repo link | ||
| site | | site = gh | ||
| cmd | | cmd = git clone | ||
| opt | | opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}} | ||
| protocol = https | | protocol = https | ||
| type | | type = git | ||
| user | | user{{#if:{{{user|{{{u|}}}}}}||NULL}} = {{{user|{{{u}}}}}} | ||
| proj | | proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}} = {{{proj|{{{p|{{{1}}}}}}}}} | ||
| repo | | repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}} = {{{repo|{{{r|{{{2}}}}}}}}} | ||
| post | | post{{#if:{{{post|}}}||NULL}} = {{{post}}} | ||
| full | | full = 1 | ||
}} }}<noinclude> | }}}}<noinclude> | ||
{{repo link/doc | {{repo link/doc infrastructure clone | ||
| label = GitHub | | label = GitHub | ||
| site = github | | site = github | ||
| user = 1 | | user = 1 | ||
| examples = | | examples = | ||
===== The c172p-detailed aircraft ===== | |||
This is for cloning the c172p-detailed aircraft with <code><nowiki>git clone https://github.com/Juanvvc/c172p-detailed.git</nowiki></code>. | This is for cloning the c172p-detailed aircraft with <code><nowiki>git clone https://github.com/Juanvvc/c172p-detailed.git</nowiki></code>. | ||
{{obr}}#tag:code {{!}} | {{obr}}#tag:code{{!}}{{obr}}github clone | ||
{{!}} user = Juanvvc | {{!}} user = Juanvvc | ||
{{!}} repo = c172p-detailed | {{!}} repo = c172p-detailed | ||
{{cbr}}{{cbr}}. | |||
{{cbr}} {{cbr}} | |||
{{#tag:code | | {{#tag:code|{{github clone | ||
| user = Juanvvc | | user = Juanvvc | ||
| repo = c172p-detailed | | repo = c172p-detailed | ||
}}}}. | |||
}} }} | |||
===== Aliased parameters ===== | |||
This is for <code><nowiki>git clone https://github.com/Juanvvc/c172p-detailed.git</nowiki></code>. | |||
</noinclude> | {{obr}}#tag:code{{!}}{{obr}}github clone | ||
{{!}} u = Juanvvc | |||
{{!}} r = c172p-detailed | |||
{{cbr}}{{cbr}}. | |||
{{#tag:code|{{github clone | |||
| u = Juanvvc | |||
| r = c172p-detailed | |||
}}}}. | |||
===== Numbered parameters ===== | |||
This is for <code><nowiki>git clone https://github.com/Juanvvc/c172p-detailed.git</nowiki></code>. | |||
{{obr}}#tag:code{{!}}{{obr}}github clone {{!}} Juanvvc {{!}} c172p-detailed {{cbr}}{{cbr}}. | |||
{{#tag:code|{{github clone | Juanvvc | c172p-detailed }}}}. | |||
}}</noinclude> |