Template:Fgdata clone: Difference between revisions
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 and a category.) |
||
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 = fgdata | | proj = fgdata | ||
| post = {{{post|}}} | |||
| full = 1 | | full = 1 | ||
}} }}<noinclude> | }} }}<noinclude> | ||
Line 13: | Line 14: | ||
== Usage == | == Usage == | ||
{{obr}}'''fgdata clone'''{{cbr}} | {{obr}}'''fgdata 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}}fgdata clone{{cbr}} | {{obr}}fgdata clone | ||
{{fgdata clone}} | {{!}} opt = -v | ||
{{!}} post = flightgear-fgdata | |||
{{cbr}} | |||
{{fgdata clone | |||
| opt = -v | |||
| post = flightgear-fgdata | |||
}} | |||
== Related templates == | == Related templates == | ||
Line 36: | Line 51: | ||
* {{tl|simgear commit}} | * {{tl|simgear commit}} | ||
* {{tl|flightgear commit}} | * {{tl|flightgear commit}} | ||
}}</noinclude> | }} | ||
[[Category:SCM Instruction Templates]] | |||
</noinclude> |
Revision as of 12:12, 25 February 2016
git clone git://git.code.sf.net/p/fgdata/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 FGData git repository.
Usage
{{fgdata clone | opt = | post = }}
- opt
- Any additional options to show after
git clone
.
- post
- Any optional text to show after the URL.
Example
{{fgdata clone | opt = -v | post = flightgear-fgdata }}
git clone -v git://git.code.sf.net/p/fgdata/flightgear/ flightgear-fgdata
Related templates
Clone or checkout templates
- {{flightgear clone}}
- {{simgear clone}}
- {{fgaddon co}}
Source link templates
- {{repo link}}
- {{fgaddon url}}
- {{flightgear file}}
- {{simgear file}}
Commit link templates
- {{fgaddon revision}}
- {{fgdata commit}}
- {{simgear commit}}
- {{flightgear commit}}