Template:Flightgear clone: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Transclusion of the master {{repo link}} template, and automatic generation of <nowiki> tags.)
(Added the 'opt' and 'post' parameters.)
Line 1: Line 1:
{{#tag:nowiki | {{repo link
{{#tag:nowiki | {{repo link
| site    = sf
| site    = sf
| cmd      = git clone
| cmd      = git clone {{{opt|}}}
| protocol = git
| protocol = git
| type    = git
| type    = git
| proj    = flightgear
| proj    = flightgear
| post    = {{{post|}}}
| full    = 1
| full    = 1
}} }}<noinclude>
}} }}<noinclude>
Line 13: Line 14:


== Usage ==
== Usage ==
  {{obr}}'''flightgear clone'''{{cbr}}
  {{obr}}'''flightgear clone'''
{{!}} ''opt''  =
{{!}} ''post'' =
{{cbr}}
 
; opt: Any additional options to show after <code>git clone</code>.
 
; post: Any optional text to show after the URL.


== Example ==
== Example ==
  {{obr}}flightgear clone{{cbr}}
  {{obr}}flightgear clone
{{flightgear clone}}
{{!}} opt  = -v
{{!}} post = flightgear-flightgear
{{cbr}}
 
{{flightgear clone
| opt  = -v
| post = flightgear-flightgear
}}


== Related templates ==
== Related templates ==

Revision as of 12:05, 25 February 2016

git clone git://git.code.sf.net/p/flightgear/flightgear/

The following template description is not displayed when the template is inserted in an article.

Goal

To provide a consistent representation of the command to clone the FlightGear git repository.

Usage

{{flightgear clone
| opt  =
| post =
}}
opt
Any additional options to show after git clone.
post
Any optional text to show after the URL.

Example

{{flightgear clone
| opt  = -v
| post = flightgear-flightgear
}}

git clone -v git://git.code.sf.net/p/flightgear/flightgear/ flightgear-flightgear

Related templates