Template:Fgaddon aircraft source: Difference between revisions
Jump to navigation
Jump to search
m (Johan G moved page Template:Fgaddon aircraft url to Template:Fgaddon url without leaving a redirect: As per discussion on Template talk:Repo link) |
("fgaddon aircraft url" → "fgaddon url") |
||
Line 11: | Line 11: | ||
== Usage == | == Usage == | ||
{{obr}}'''fgaddon | {{obr}}'''fgaddon url'''{{!}}''aircraft''{{!}}''revision''{{cbr}} | ||
All parameters are optional. | All parameters are optional. | ||
Line 20: | Line 20: | ||
== Examples == | == Examples == | ||
<nowiki>{{fgaddon | <nowiki>{{fgaddon url}}</nowiki> | ||
{{fgaddon | {{fgaddon url}} | ||
<nowiki>{{fgaddon | <nowiki>{{fgaddon url|737-200}}</nowiki> | ||
{{fgaddon | {{fgaddon url|737-200}} | ||
<nowiki>{{fgaddon | <nowiki>{{fgaddon url|ec135|560}}</nowiki> | ||
{{fgaddon | {{fgaddon url|ec135|560}} | ||
}} | }} |
Revision as of 09:55, 16 September 2015
http://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Aircraft/
The following template description is not displayed when the template is inserted in an article.
Goal
This template will return the URL of an FGAddon aircraft if given the name of the aircraft directory in the repository.
Usage
{{fgaddon url|aircraft|revision}}
All parameters are optional.
- aircraft
- Aircraft directory name. If empty the URL of
trunk/Aircraft/
will be returned.
- revision
- Optional revision number to use instead of
HEAD
.
Examples
{{fgaddon url}}
https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk
{{fgaddon url|737-200}}
https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/737-200
{{fgaddon url|ec135|560}}
https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/ec135