6,566
edits
m (Bugman moved page Template:Fgaddon url to Template:Fgaddon file: Consistency with all the other repository file templates.) |
(Added the file parameter to allow this template to match the behaviour of all the other repository file templates.) |
||
Line 1: | Line 1: | ||
http://sourceforge.net/p/flightgear/fgaddon/{{{r|HEAD}}}<!-- tarball?path=/*no "/tree/"* --><!-- | {{#if: {{{file|}}} |[http|http}}://sourceforge.net/p/flightgear/fgaddon/{{{r|HEAD}}}<!-- tarball?path=/*no "/tree/"* --><!-- | ||
-->/tree/<!-- | -->/tree/<!-- | ||
-->{{#if: {{{b|}}} <!-- Is a branch defined? --> | -->{{#if: {{{b|}}} <!-- Is a branch defined? --> | ||
Line 18: | Line 18: | ||
}} | }} | ||
}} | }} | ||
| <!-- No, go to the default --> | | <!-- No, go to the default --> }} <!-- | ||
}}<noinclude> | -->{{#if: {{{file|}}} | {{{1}}}/{{{2}}}]}} <!-- | ||
--><noinclude> | |||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
Line 26: | Line 27: | ||
== Usage == | == Usage == | ||
{{obr}}'''fgaddon url'''{{!}}''aircraft''{{!}}''path''{{!}}''r=''{{!}}''b=''{{!}}''l=''<!-- {{!}}''tarball='' -->{{cbr}} | {{obr}}'''fgaddon url'''{{!}}''aircraft''{{!}}''path''{{!}}''r=''{{!}}''b=''{{!}}''l=''{{!}}''file=''<!-- {{!}}''tarball='' -->{{cbr}} | ||
All parameters are optional. | All parameters are optional. | ||
Line 40: | Line 41: | ||
; l: Used with the '''path''' parameter to link to a given line in a file. | ; l: Used with the '''path''' parameter to link to a given line in a file. | ||
: {{inote|Due to SourceForge limitations this parameter does not fork for some file types, in particular <code>.nas</code> (Nasal) files.}} | : {{inote|Due to SourceForge limitations this parameter does not fork for some file types, in particular <code>.nas</code> (Nasal) files.}} | ||
; file: If set, then a link to the file rather than the full URL will be shown. | |||
<!-- | <!-- | ||
; tarball: If not empty, the link will create and link to a <code>.tar.gz</code> (tarball) snapshot of a an aircraft directory. | ; tarball: If not empty, the link will create and link to a <code>.tar.gz</code> (tarball) snapshot of a an aircraft directory. | ||
Line 71: | Line 75: | ||
<nowiki>[{{fgaddon url|F-15|Nasal/fox2.nas}} The F-15's missile system]</nowiki> | <nowiki>[{{fgaddon url|F-15|Nasal/fox2.nas}} The F-15's missile system]</nowiki> | ||
[{{fgaddon url|F-15|Nasal/fox2.nas}} The F-15's missile system] | [{{fgaddon url|F-15|Nasal/fox2.nas}} The F-15's missile system] | ||
=== Pointer to a file === | |||
<nowiki>{{fgaddon url|F-15|Nasal/fox2.nas|file=yes}}</nowiki> | |||
{{fgaddon url|F-15|Nasal/fox2.nas|file=yes}} | |||
<!-- | <!-- | ||
== Technical details == | == Technical details == |