Changes

Jump to navigation Jump to search

Template:Repo link/doc infrastructure clone

1,329 bytes added, 14:26, 26 October 2017
Creation of the {{repo link/doc infrastructure clone}} template. This is adapted from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Repo_link/doc_infrastructure_clone&oldid=95552.
{{Informative template|1=
__NOTOC__ {{#if: {{{note|}}} | {{note|{{{note}}} }} }}
== Goal ==
To provide a consistent representation of the command to clone git repositories from the [[{{{label|MISSING}}}]] open source infrastructure. This is a subtemplate of the master {{tl|repo link}} template designed to be specific for the <code>git clone</code> command and the [[{{{label|MISSING}}}]] infrastructure.

{{repo link/doc usage
| template = {{{site|MISSING}}} clone
| value_cmd = git clone
| opt = 1
| user = {{{user|0}}} | short_user = u | pos_user = 1 | stat_user = mandatory
| proj = 1 | short_proj = p | pos_proj = 1 | stat_proj = mandatory | default_proj{{#if: {{{default_proj|}}}||NULL}} = {{{default_proj}}}
| repo = 1 | short_repo = r | pos_repo = 2 | stat_repo = mandatory | default_repo{{#if: {{{default_repo|}}}||NULL}} = {{{default_repo}}}
| post = 1
| sf = {{#ifeq: {{{site|}}} | sourceforge | 1 | 0}}
| gh = {{#ifeq: {{{site|}}} | github | 1 | 0}}
| gl = {{#ifeq: {{{site|}}} | gitlab | 1 | 0}}
| go = {{#ifeq: {{{site|}}} | gitorious | 1 | 0}}
| git = 1
| break = 0
}}

{{repo link/doc plain text}}

== Examples ==
{{{examples|}}}

== Related templates ==
{{repo link/doc related}}

}}

[[Category:Repository link templates]]
Trusted, Bureaucrats
4,228

edits

Navigation menu