Template:Openscenegraph co: Difference between revisions
Jump to navigation
Jump to search
(Wrapped the last example up in <code> tags.) |
(Switch to {{repo link/doc usage}} for consistent subtemplate usage documentation.) |
||
Line 12: | Line 12: | ||
| full = 1 | | full = 1 | ||
}} }}<noinclude> | }} }}<noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
Line 17: | Line 18: | ||
To provide a consistent representation of the command to checkout the OpenSceneGraph subversion repository. | To provide a consistent representation of the command to checkout the OpenSceneGraph subversion repository. | ||
{{repo link/doc usage | |||
| template = openscenegraph co | |||
| value_cmd = svn co | |||
| opt = 1 | |||
| login = 1 | |||
| branch = 1 | |||
| path = 1 | |||
| post = 1 | default_post = osg | |||
| svn = 1 | |||
| break = 0 | |||
}} | |||
== Examples == | == Examples == |
Revision as of 10:51, 7 March 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 = }}
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. | optional | ||
path | The file or directory path. | 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
Related templates
|