Template:Fgaddon co: Difference between revisions

Jump to navigation Jump to search
Full support for aliased and numbered parameters, with examples to demonstrate the capabilities.
(Switch to {{repo link/doc usage}} for consistent subtemplate usage documentation, and added {{repo link/doc plain text}}.)
(Full support for aliased and numbered parameters, with examples to demonstrate the capabilities.)
Line 1: Line 1:
{{#tag:nowiki|{{repo link
{{#tag:nowiki|{{repo link
| site                             = {{project infrastructure|abbrev}}
| site                                             = {{project infrastructure|abbrev}}
| cmd                               = svn co {{{opt|}}}
| cmd                                               = svn co {{{opt|}}}
| protocol                         = {{#if: {{{login|}}} | svn+ssh | https}}
| protocol                                         = {{#if: {{{login|}}} | svn+ssh | https}}
| login{{#if:{{{login|}}}||NULL}}   = {{{login}}}
| login{{#if:{{{login|}}}||NULL}}                   = {{{login}}}
| type                             = svn
| type                                             = svn
| repo                             = fgaddon
| repo                                             = fgaddon
| branch{{#if:{{{branch|}}}||NULL}} = {{{branch}}}
| branch{{#if:{{{branch|{{{b|{{{1|}}}}}}}}}||NULL}} = {{{branch|{{{b|{{{1}}}}}}}}}
| path{{#if:{{{path|}}}||NULL}}    = {{{path}}}
| path{{#if:{{{path|{{{f|{{{2|}}}}}}}}}||NULL}}    = {{{path|{{{f|{{{2}}}}}}}}}
| post                             = {{{post|fgaddon}}}
| post                                             = {{{post|fgaddon}}}
| full                             = 1
| full                                             = 1
}} }}<noinclude>
}} }}<noinclude>
{{Informative template|1=
{{Informative template|1=
Line 20: Line 20:
| opt      = 1
| opt      = 1
| login    = 1
| login    = 1
| branch  = 1
| branch  = 1 | short_branch = b | pos_branch = 1
| path    = 1
| path    = 1 | short_path  = f | pos_path  = 2
| post    = 1 | default_post = fgaddon
| post    = 1 | default_post = fgaddon
| sf      = 1
| sf      = 1
Line 67: Line 67:
| post  =
| post  =
}}
}}
=== Aliased parameters ===
{{obr}}fgaddon co
{{!}} b = branches/release-3.2.0
{{!}} f = Aircraft/V22-Osprey
{{cbr}}.
{{fgaddon co
| b = branches/release-3.2.0
| f = Aircraft/V22-Osprey
}}.
=== Numbered parameters ===
{{obr}}fgaddon co {{!}} branches/release-3.2.0 {{!}} Aircraft/V22-Osprey {{cbr}}.
{{fgaddon co | branches/release-3.2.0 | Aircraft/V22-Osprey }}.


== Related templates ==
== Related templates ==

Navigation menu