6,566
edits
m (Spacing.) |
(The 'user' parameter is now active, so document it.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#tag:nowiki|{{repo link | {{#tag:nowiki|{{repo link | ||
| site | | site = gl | ||
| cmd | | cmd = git clone | ||
| opt{{#if:{{{opt|}}}||NULL}} | | opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}} | ||
| protocol | | protocol = https | ||
| type | | type = git | ||
| proj{{#if:{{{proj|}}}||NULL}} = {{{proj}}} | | user{{#if:{{{user|{{{u|}}}}}}||NULL}} = {{{user|{{{u}}}}}} | ||
| repo{{#if:{{{repo|}}}||NULL}} = {{{repo}}} | | proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}} = {{{proj|{{{p|{{{1}}}}}}}}} | ||
| post{{#if:{{{post|}}}||NULL}} = {{{post}}} | | repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}} = {{{repo|{{{r|{{{2}}}}}}}}} | ||
| full | | post{{#if:{{{post|}}}||NULL}} = {{{post}}} | ||
}} }}<noinclude> | | full = 1 | ||
}}}}<noinclude> | |||
{{repo link/doc | {{repo link/doc infrastructure clone | ||
| label = GitLab | | label = GitLab | ||
| site = gitlab | | site = gitlab | ||
| user = 1 | |||
| examples = | | examples = | ||
===== The extra500 repository ===== | |||
This should produce the text <code><nowiki>git clone -v https://gitlab.com/extra500/extra500.git</nowiki></code>. | This should produce the text <code><nowiki>git clone -v https://gitlab.com/extra500/extra500.git</nowiki></code>. | ||
Line 29: | Line 32: | ||
}}}}. | }}}}. | ||
===== Aliased parameters ===== | |||
This is for <code><nowiki>git clone -v https://gitlab.com/extra500/extra500.git</nowiki></code>. | |||
</noinclude> | {{obr}}#tag:code{{!}}{{obr}}gitlab clone | ||
{{!}} p = extra500 | |||
{{!}} r = extra500 | |||
{{cbr}}{{cbr}}. | |||
{{#tag:code|{{gitlab clone | |||
| p = extra500 | |||
| r = extra500 | |||
}}}}. | |||
===== Numbered parameters ===== | |||
This is for <code><nowiki>git clone -v https://gitlab.com/extra500/extra500.git</nowiki></code>. | |||
{{obr}}#tag:code{{!}}{{obr}}gitlab clone {{!}} extra500 {{!}} extra500 {{cbr}}{{cbr}}. | |||
{{#tag:code|{{gitlab clone | extra500 | extra500 }}}}. | |||
}}</noinclude> |