User:Johan G/Template:SVN link

From FlightGear wiki
Jump to navigation Jump to search
WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
Note: For now based on and still containing most parts of {{Git link}}.
See history for the latest developments.

flightgear/fgaddon/HEAD


The following template description is not displayed when the template is inserted in an article.

Goal

This template allows easy links to SVN-managed files or projects from outside sources (e.g. SourceForge.net).

Caution Using this will add an external link; make sure to enter the appropriate security question after hitting "Save page", or your changes will be lost!

Usage

{{SVN link|site|projectname/reponame|revision|path of file|line or start of line range|end of line range|pre=|text=}}

or

{{SVN link
| site
| projectname/reponame
| revision
| path of file
| line or start of line range
| end of line range
| pre=
| text=
}}
site
Optional SVN site. Defaults to sourceforge.
projectname/reponame
Optional. Defaults to flightgear/fgaddon.
revision
Optional. Defaults to HEAD.
path of file
Mandatory if line or start of line range is provided, otherwise optional.
line or start of line range
Optional line to go to on the page with the source.
end of line range
Optionally used in conjunction with line or start of line range.
pre
Optional prefix for the links label. Defaults to flightgear/fgaddon.
text
Optional alternative label for the link text. Will override any other parameters.

Examples

{{SVN link}}

flightgear/fgaddon/flightgear/next/Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|HEAD|Aircraft/A-10/A-10-set.xml}}

flightgear/fgaddon/flightgear/next/Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|HEAD|Aircraft/A-10/A-10-set.xml|18}}

flightgear/fgaddon/flightgear/next/Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|HEAD|Aircraft/A-10/A-10-set.xml|18|pre=FGAddon/}}

FGAddon//Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|HEAD|pre=FGAddon/}}

FGAddon//Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|50|Aircraft/PC-9M/PC-9M-set.xml}}

flightgear/fgaddon/flightgear/next/Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|50|Aircraft/PC-9M/PC-9M-set.xml|pre=FGAddon/}}

FGAddon//Aircraft

{{SVN link|sourceforge|flightgear/fgaddon|HEAD|Aircraft/Aerostar-700|text=Aerostar 700}}

Aerostar 700

Related templates