Template:Openscenegraph co

From FlightGear wiki
Jump to navigation Jump to search

svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg


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 OpenSceneGraph subversion repository.

Usage

{{openscenegraph co
| opt        =
| login      =
| branch     =
| path       =
| post       =
}}

The parameters are:

Parameter Description Abbreviated
parameter
Numbered
parameter
Status
opt Any additional options to show after the command svn co, but before the URL. optional
login The optional user login. optional
branch The branch name. As tags are simply branches in SVN repositories, this parameter can also be used for svn tags. This defaults to trunk. b 1 optional
path The file or directory path. f 2 optional
post Text to append. This is forms a set with the parameter opt. For example it can represent any command line options that come after the URL. The default value is osg. optional

Examples

Checkout of trunk

This should produce the text svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg.

{{openscenegraph co}}

svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg

Checkout of trunk with user name

This should produce the text svn co svn+ssh://<username>@svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg.

{{#tag:code|{{openscenegraph co
| login = <username>
}}}}

svn co svn+ssh://<username>@svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg

Aliased parameters

This should produce the text svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4/src osg_src.

{{#tag:code|{{openscenegraph co
| b    = branches/OpenSceneGraph-3.4
| f    = src
| post = osg_src
}}}}.

svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4/src osg_src.

Numbered parameters

This should produce the text svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4/src osg_src.

{{#tag:code|{{openscenegraph co | branches/OpenSceneGraph-3.4 | src | post = osg_src }}}}.

svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4/src osg_src.

Related templates