Template:Openscenegraph co: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Fix for the login example.)
(Wrapped the last example up in <code> tags.)
Line 47: Line 47:
This should produce the text <code><nowiki>svn co svn+ssh://<username>@svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg</nowiki></code>.
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}}#tag:code{{!}}{{obr}}openscenegraph co
  {{!}} login = <username>
  {{!}} login = <username>
  {{cbr}}
  {{cbr}}{{cbr}}


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


== Related templates ==
== Related templates ==

Revision as of 19:01, 29 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.

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

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

Related templates