Template:Gitlab clone: Difference between revisions

Jump to navigation Jump to search
The 'user' parameter is now active, so document it.
(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     = 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>


{{Informative template|1=
{{repo link/doc infrastructure clone
__NOTOC__
| label   = GitLab
== Goal ==
| site    = gitlab
To provide a consistent representation of the command to clone GitLab repositories.
| user    = 1
 
| examples =
== Usage ==
===== The extra500 repository =====
{{obr}}'''openscenegraph co'''
{{!}} ''opt''   =
{{!}} ''proj''  =  
{{!}} ''repo''  =  
{{!}} ''path''  =
{{!}} ''post''  =
{{cbr}}
 
; opt: Any additional options to show after <code>git clone</code>.
 
; proj: The name of the project, consisting of a grouping of repositories on the open source infrastructure.
 
; repo: The name of the repository.  A GitLab project allows for multiple repositories under that project name.
 
; post: Any optional text to show after the URL.
 
== Example ==
This should produce the text <code><nowiki>svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg</nowiki></code>.
 
{{obr}}openscenegraph co{{cbr}}
 
{{openscenegraph co}}
 
=== Checkout of trunk with user name ===
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:
}}}}.
}}}}.


== Related templates ==
===== Aliased parameters =====
{{repo link/doc related}}
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 }}}}.


[[Category:SCM Instruction Templates]]
}}</noinclude>
</noinclude>

Navigation menu