Template:SVN link
Jump to navigation
Jump to search
Path not set 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 located at SourceForge.
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 | path | reponame | rev | line | text | pre }}
- path
- Mandatory path to the file.
- reponame
- Optional path to the repository. Defaults to flightgear/fgaddon.
- rev
- Optional revision number. Defaults to HEAD.
- line
- Optional line to go to on the page.
- text
- Optional alternative label for the link text. Will override all other parameters.
- pre
- Optional prefix for the links label. Defaults to flightgear/fgaddon.
Examples
{{SVN link}}
Path not set flightgear/fgaddon/HEAD
{{SVN link|path=Mirage-2000/m2000-5-set.xml|pre=$FGDATA}}
$FGDATA/Mirage-2000/m2000-5-set.xml
{{SVN link|path=Mirage-2000/m2000-5-set.xml|line=7|text=Mirage 2000-5's set.xml file}}
Line 7 of the Mirage 2000-5's set.xml file
Known issues
It appears that link does not work with files that are not XML. This seems to be a Sourceforge problem though.
Related templates
- {{Git link}}