6,566
edits
(Created the {{gitlab clone}} template.) |
(The 'user' parameter is now active, so document it.) |
||
(8 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 | | opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}} | ||
| protocol = https | | protocol = https | ||
| type | | type = git | ||
| proj | | user{{#if:{{{user|{{{u|}}}}}}||NULL}} = {{{user|{{{u}}}}}} | ||
| repo | | proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}} = {{{proj|{{{p|{{{1}}}}}}}}} | ||
| post | | repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}} = {{{repo|{{{r|{{{2}}}}}}}}} | ||
| full | | post{{#if:{{{post|}}}||NULL}} = {{{post}}} | ||
}} }}<noinclude> | | full = 1 | ||
}}}}<noinclude> | |||
{{ | {{repo link/doc infrastructure clone | ||
| label = GitLab | |||
| site = gitlab | |||
| user = 1 | |||
| 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 55: | Line 32: | ||
}}}}. | }}}}. | ||
== | ===== Aliased parameters ===== | ||
{{ | This is for <code><nowiki>git clone -v https://gitlab.com/extra500/extra500.git</nowiki></code>. | ||
{{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> | |||
</noinclude> |