Changes

Jump to navigation Jump to search

Template:Gitlab clone

1,823 bytes added, 14:57, 26 October 2017
Creation of the {{gitlab clone}} template by copying {{github clone}}.
{{#tag:nowiki|{{repo link
| site = gl
| cmd = git clone
| opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}}
| protocol = https
| type = git
| user{{#if:{{{user|{{{u|}}}}}}||NULL}} = {{{user|{{{u}}}}}}
| proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}} = {{{proj|{{{p|{{{1}}}}}}}}}
| repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}} = {{{repo|{{{r|{{{2}}}}}}}}}
| post{{#if:{{{post|}}}||NULL}} = {{{post}}}
| full = 1
}}}}<noinclude>

{{repo link/doc infrastructure clone
| label = GitLab
| site = gitlab
| user = 1
| examples =
===== Git clone =====
This is for the main relax source code repository: <code><nowiki>git clone https://gitlab.com/nmr-relax/relax.git relax</nowiki></code>. Though in this case, the simpler {{tl|relax clone}} should be used.

{{obr}}#tag:code{{!}}{{obr}}gitlab clone
{{!}} proj = nmr-relax
{{!}} repo = relax
{{!}} post = relax
{{cbr}}{{cbr}}.

{{#tag:code|{{gitlab clone
| proj = nmr-relax
| repo = relax
| post = relax
}}}}.

===== Aliased parameters =====
This is for <code><nowiki>git clone https://gitlab.com/nmr-relax/website.git</nowiki></code>.

{{obr}}#tag:code{{!}}{{obr}}gitlab clone
{{!}} p = nmr-relax
{{!}} r = website
{{cbr}}{{cbr}}.

{{#tag:code|{{gitlab clone
| p = nmr-relax
| r = website
}}}}.

===== Numbered parameters =====
This is for <code><nowiki>git clone https://gitlab.com/nmr-relax/website.git</nowiki></code>.

{{obr}}#tag:code{{!}}{{obr}}gitlab clone {{!}} nmr-relax {{!}} website {{cbr}}{{cbr}}.

{{#tag:code|{{gitlab clone | nmr-relax | website }}}}.

}}</noinclude>
Trusted, Bureaucrats
4,228

edits

Navigation menu