Template:Openscenegraph co: Difference between revisions
Jump to navigation
Jump to search
(Created an initial template for checking out the primary OpenSceneGraph source code repository.) |
(Expanded the example section.) |
||
Line 37: | Line 37: | ||
== Examples == | == Examples == | ||
=== Checkout of trunk === | |||
This should produce the text <code><nowiki>svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg</nowiki></code>. | |||
{{obr}}openscenegraph co{{cbr}} | |||
{{openscenegraph co}} | |||
=== Checkout of trunk with user name === | === Checkout of trunk with user name === | ||
This should produce the text <code><nowiki>svn co svn+ssh://<username>@svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg</nowiki></code>. | |||
{{obr}}openscenegraph co | {{obr}}openscenegraph co | ||
{{!}} opt = --username <username> | {{!}} opt = --username <username> |
Revision as of 20:37, 27 February 2016
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 = }}
- opt
- Any additional options to show after
svn co
.
- login
- The optional user login.
- branch
- The svn branch or tag name. This defaults to trunk.
- path
- The file path.
- post
- Any optional text to show after the URL. This defaults to osg.
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
.
{{openscenegraph co | opt = --username <username> }}
svn co --username <username> http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg
Related templates
|