Template:Fgaddon co: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Added a default 'post' value, otherwise the result is a directory called 'trunk'.)
(Complete project infrastructure abstraction using {{project infrastructure}}.)
Line 1: Line 1:
{{#tag:nowiki | {{repo link
{{#tag:nowiki | {{repo link
| site    = sf
| site    = {{project infrastructure|abbrev}}
| cmd      = svn co {{{opt|}}}
| cmd      = svn co {{{opt|}}}
| protocol = https
| protocol = https

Revision as of 08:33, 26 February 2016

svn co https://svn.code.sf.net/p/flightgear/fgaddon/trunk fgaddon

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 checkout the FGAddon subversion repository.

Usage

{{fgaddon co
| opt  =
| post =
}}
opt
Any additional options to show after svn co.
post
Any optional text to show after the URL. This defaults to flightgear-fgaddon.

Example

{{fgaddon co
| opt  = --username <username>
| post = fgaddon
}}

svn co --username <username> https://svn.code.sf.net/p/flightgear/fgaddon/trunk fgaddon

Related templates