6,566
edits
(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 | | site = gl | ||
| cmd{{#if:{{{cmd|}}}||NULL}} | | cmd{{#if:{{{cmd|}}}||NULL}} = {{{cmd}}} | ||
| opt{{#if:{{{opt|}}}||NULL}} | | opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}} | ||
| protocol | | protocol = https | ||
| type | | type = {{{type|git}}} | ||
| user{{#if:{{{user|}}}||NULL}} = {{{user}}} | | user{{#if:{{{user|{{{u|}}}}}}||NULL}} = {{{user|{{{u}}}}}} | ||
| proj{{#if:{{{proj|}}}||NULL}} | | proj{{#if:{{{proj|{{{p|{{{1|}}}}}}}}}||NULL}} = {{{proj|{{{p|{{{1}}}}}}}}} | ||
| repo{{#if:{{{repo|}}}||NULL}} | | repo{{#if:{{{repo|{{{r|{{{2|}}}}}}}}}||NULL}} = {{{repo|{{{r|{{{2}}}}}}}}} | ||
| branch{{#if:{{{branch|}}}||NULL}} | | branch{{#if:{{{branch|{{{b|{{{3|}}}}}}}}}||NULL}} = {{{branch|{{{b|{{{3}}}}}}}}} | ||
| path{{#if:{{{path|}}}||NULL}} | | path{{#if:{{{path|{{{f|{{{4|}}}}}}}}}||NULL}} = {{{path|{{{f|{{{4}}}}}}}}} | ||
| commit{{#if:{{{commit|}}}||NULL}} | | 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{{#if:{{{pre|}}}||NULL}} = {{{pre}}} | ||
| post{{#if:{{{post|}}}||NULL}} | | post{{#if:{{{post|}}}||NULL}} = {{{post}}} | ||
| simplepath{{#if:{{{simplepath|}}}||NULL}} = {{{simplepath}}} | | simplepath{{#if:{{{simplepath|}}}||NULL}} = {{{simplepath}}} | ||
| full{{#if:{{{full|}}}||NULL}} | | 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> |