Template:Fgaddon url: Difference between revisions

Jump to navigation Jump to search
Switch from a {{fgaddon file}} redirect to the content of {{fgaddon url/sandbox}}. See Template talk:Fgaddon aircraft source#The move from fgaddon url to fgaddon file for discussions. This standardises the {{* url}} subtemplates of {{repo link}}.
(Bugman moved page Template:Fgaddon url to Template:Fgaddon file: Consistency with all the other repository file templates.)
 
(Switch from a {{fgaddon file}} redirect to the content of {{fgaddon url/sandbox}}. See Template talk:Fgaddon aircraft source#The move from fgaddon url to fgaddon file for discussions. This standardises the {{* url}} subtemplates of {{repo link}}.)
Line 1: Line 1:
#REDIRECT [[Template:Fgaddon file]]
{{repo link
| site                                          = {{project infrastructure|abbrev}}
| cmd{{#if:{{{cmd|}}}||NULL}}                  = {{{cmd}}}
| opt{{#if:{{{opt|}}}||NULL}}                  = {{{opt}}}
| protocol{{#if:{{{protocol|}}}||NULL}}        = {{{protocol}}}
| login{{#if:{{{login|}}}||NULL}}              = {{{login}}}
| type                                          = {{{type|svn web}}}
| proj                                          = flightgear
| repo                                          = fgaddon
| branch{{#if:{{{branch|{{{b|}}}}}}||NULL}}    = {{{branch|{{{b}}}}}}
| path{{#if:{{{path|{{{f|{{{1|}}}}}}}}}||NULL}} = {{{path|{{{f|{{{1}}}}}}}}}
| commit{{#if:{{{commit|{{{c|}}}}}}||NULL}}    = {{{commit|{{{c}}}}}}
| line{{#if:{{{line|{{{l|}}}}}}||NULL}}        = {{{line|{{{l}}}}}}
| view{{#if:{{{view|{{{v|}}}}}}||NULL}}        = {{{view|{{{v}}}}}}
| post{{#if:{{{post|}}}||NULL}}                = {{{post}}}
| full                                          = 1
}}<noinclude>
 
{{repo link/doc svn url
| label    = FGAddon
| repo    = fgaddon
| examples =
=== No parameters ===
{{obr}}fgaddon url{{cbr}}
{{fgaddon url}}
 
=== File ===
{{obr}}fgaddon url
{{!}} path = Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml
{{cbr}}
 
{{fgaddon url
| path = Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml
}}
 
=== File and a branch ===
{{obr}}fgaddon url
{{!}} path  = Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml
{{!}} branch = branches/release-2016.1
{{cbr}}
 
{{fgaddon url
| path  = Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml
| branch = branches/release-2016.1
}}
 
=== File and a commit ===
{{obr}}fgaddon url
{{!}} path  = Aircraft/787-8/Nasal/systems.nas
{{!}} commit = 1333
{{cbr}}
 
{{fgaddon url
| path  = Aircraft/787-8/Nasal/systems.nas
| commit = 1333
}}
 
=== Commit ===
{{obr}}fgaddon url
{{!}} commit = 1552
{{!}} view  = commit
{{cbr}}
 
{{fgaddon url
| commit = 1552
| view  = commit
}}
 
=== File and line number ===
{{obr}}fgaddon url
{{!}} path = Aircraft/ornithopter/ornithopter-set.xml
{{!}} line = 13
{{cbr}}
 
{{fgaddon url
| path = Aircraft/ornithopter/ornithopter-set.xml
| line = 13
}}
 
=== File, line number, and commit ===
{{obr}}fgaddon url
{{!}} path  = Aircraft/ornithopter/ornithopter-set.xml
{{!}} commit = 3
{{!}} line  = 10
{{cbr}}
 
{{fgaddon url
| path  = Aircraft/ornithopter/ornithopter-set.xml
| commit = 3
| line  = 10
}}
 
=== svn import ===
This should give:
<syntaxhighlight lang="bash">
svn import DaSH/ svn+ssh://<username>@svn.code.sf.net/p/flightgear/fgaddon/trunk/Aircraft/ -m "Initial import of the DaSH human powered aircraft.\n\nFor details see the forum thread at http://forum.flightgear.org/viewtopic.php?f=4&t=24495 ."
</syntaxhighlight>
 
{{obr}}#tag:syntaxhighlight{{!}}
{{obr}}fgaddon url
  {{!}} cmd      = svn import DaSH/
  {{!}} protocol = svn+ssh
  {{!}} login    = <username>
  {{!}} type    = svn
  {{!}} path    = Aircraft/
  {{!}} post    = -m "Initial import of the DaSH human powered aircraft.\n\nFor details see the forum thread at <nowiki>http://forum.flightgear.org/viewtopic.php?f=4&t=24495</nowiki> ."
{{cbr}}
{{!}} lang = "sh"
{{cbr}}
 
{{#tag:syntaxhighlight|
{{fgaddon url
  | cmd      = svn import DaSH/
  | protocol = svn+ssh
  | login    = <username>
  | type    = svn
  | path    = Aircraft/
  | post    = -m "Initial import of the DaSH human powered aircraft.\n\nFor details see the forum thread at http://forum.flightgear.org/viewtopic.php?f=4&t=24495 ."
}}
| lang = "sh"
}}
 
=== Aliased parameters ===
This is for https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/branches/release-2016.1/Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml.
 
{{obr}}fgaddon url
{{!}} f = Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml
{{!}} b = branches/release-2016.1
{{cbr}}.
 
{{fgaddon url
| f = Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml
| b = branches/release-2016.1
}}.
 
=== Numbered parameters ===
This is for https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/branches/release-2016.1/Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml.
 
{{obr}}fgaddon url {{!}} Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml {{!}} b = branches/release-2016.1 {{cbr}}.
 
{{fgaddon url | Aircraft/wrightFlyer1903/wrightFlyer1903-set.xml | b = branches/release-2016.1 }}.
 
}}</noinclude>

Navigation menu