Template:Gitlab clone: Difference between revisions

Jump to navigation Jump to search
The 'user' parameter is now active, so document it.
(Switch to {{repo link/doc 3rd party infrastructure clone}} for the documentation.)
(The 'user' parameter is now active, so document it.)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#tag:nowiki|{{repo link
{{#tag:nowiki|{{repo link
| site     = gl
| site                                         = gl
| cmd     = git clone
| cmd                                           = git clone
| opt     = {{{opt|}}}
| opt{{#if:{{{opt|}}}||NULL}}                  = {{{opt}}}
| protocol = https
| protocol                                     = https
| type     = git
| type                                         = git
| proj     = {{{proj|}}}
| user{{#if:{{{user|{{{u|}}}}}}||NULL}}        = {{{user|{{{u}}}}}}
| repo     = {{{repo|}}}
| proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}} = {{{proj|{{{p|{{{1}}}}}}}}}
| post     = {{{post|}}}
| repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}} = {{{repo|{{{r|{{{2}}}}}}}}}
| full     = 1
| post{{#if:{{{post|}}}||NULL}}                = {{{post}}}
}} }}<noinclude>
| full                                         = 1
}}}}<noinclude>


{{repo link/doc 3rd party infrastructure clone
{{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 28: Line 31:
| repo = extra500
| repo = extra500
}}}}.
}}}}.
}}


</noinclude>
===== 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>

Navigation menu