Template:Gitlab source: Difference between revisions

Jump to navigation Jump to search
Full support for aliased and numbered parameters, with examples to demonstrate the capabilities.
(Converted the hints to {{note}}.)
(Full support for aliased and numbered parameters, with examples to demonstrate the capabilities.)
Line 1: Line 1:
{{repo link
{{repo link
| site                                     = gl
| site                                             = gl
| cmd{{#if:{{{cmd|}}}||NULL}}               = {{{cmd}}}
| cmd{{#if:{{{cmd|}}}||NULL}}                       = {{{cmd}}}
| opt{{#if:{{{opt|}}}||NULL}}               = {{{opt}}}
| opt{{#if:{{{opt|}}}||NULL}}                       = {{{opt}}}
| protocol                                 = https
| protocol                                         = https
| type                                     = {{{type|git}}}
| type                                             = {{{type|git}}}
| user{{#if:{{{user|}}}||NULL}}            = {{{user}}}
| user{{#if:{{{user|{{{u|}}}}}}||NULL}}            = {{{user|{{{u}}}}}}
| proj{{#if:{{{proj|}}}||NULL}}             = {{{proj}}}
| proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}}     = {{{proj|{{{p|{{{1}}}}}}}}}
| repo{{#if:{{{repo|}}}||NULL}}             = {{{repo}}}
| repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}}     = {{{repo|{{{r|{{{2}}}}}}}}}
| branch{{#if:{{{branch|}}}||NULL}}         = {{{branch}}}
| branch{{#if:{{{branch|{{{b|{{{3|}}}}}}}}}||NULL}} = {{{branch|{{{b|{{{3}}}}}}}}}
| path{{#if:{{{path|}}}||NULL}}             = {{{path}}}
| path{{#if:{{{path|{{{f|{{{4|}}}}}}}}}||NULL}}     = {{{path|{{{f|{{{4}}}}}}}}}
| commit{{#if:{{{commit|}}}||NULL}}         = {{{commit}}}
| commit{{#if:{{{commit|{{{c|{{{5|}}}}}}}}}||NULL}} = {{{commit|{{{c|{{{5}}}}}}}}}
| line{{#if:{{{line|}}}||NULL}}            = {{{line}}}
| line{{#if:{{{line|{{{l|}}}}}}||NULL}}            = {{{line|{{{l}}}}}}
| view{{#if:{{{view|}}}||NULL}}            = {{{view}}}
| view{{#if:{{{view|{{{v|}}}}}}||NULL}}            = {{{view|{{{v}}}}}}
| text{{#if:{{{text|}}}||NULL}}            = {{{text}}}
| text{{#if:{{{text|{{{t|}}}}}}||NULL}}            = {{{text|{{{t}}}}}}
| pre{{#if:{{{pre|}}}||NULL}}               = {{{pre}}}
| pre{{#if:{{{pre|}}}||NULL}}                       = {{{pre}}}
| post{{#if:{{{post|}}}||NULL}}             = {{{post}}}
| post{{#if:{{{post|}}}||NULL}}                     = {{{post}}}
| simplepath{{#if:{{{simplepath|}}}||NULL}} = {{{simplepath}}}
| simplepath{{#if:{{{simplepath|}}}||NULL}}         = {{{simplepath}}}
| full{{#if:{{{full|}}}||NULL}}             = {{{full}}}
| full{{#if:{{{full|}}}||NULL}}                     = {{{full}}}
}}<noinclude>
}}<noinclude>


Line 89: Line 89:
| full  = 1
| full  = 1
}}
}}
=== Aliased parameters ===
This is for https://gitlab.com/extra500/extra500/repository/archive.zip?ref=FG/2016.1.
{{obr}}gitlab source
{{!}} p    = extra500
{{!}} r    = extra500
{{!}} b    = FG/2016.1
{{!}} type = zip
{{!}} full = 1
{{cbr}}.
{{gitlab source
| p    = extra500
| r    = extra500
| b    = FG/2016.1
| type = zip
| full = 1
}}.
=== Numbered parameters ===
This is for https://gitlab.com/extra500/extra500/repository/archive.zip?ref=FG/2016.1.
{{obr}}gitlab source {{!}} extra500 {{!}} extra500 {{!}} FG/2016.1 {{!}} type = zip {{!}} full = 1 {{cbr}}.
{{gitlab source | extra500 | extra500 | FG/2016.1 | type = zip | full = 1 }}.


}}</noinclude>
}}</noinclude>

Navigation menu