6,566
edits
mNo edit summary |
(Logic improvements for the 'type' parameter doc construction. This is tested with many new examples.) |
||
Line 69: | Line 69: | ||
}}{{#ifeq: {{{type|}}} | 1 | | }}{{#ifeq: {{{type|}}} | 1 | | ||
; type: Choose between the web interface, a direct repository link, or a zip file download. | ; type: <!-- | ||
{{# | -->{{#ifeq: {{{gh|{{{gl|}}}}}} | 1 | ||
| Choose between the web interface, a direct repository link, or a zip file download. | |||
| Choose between the web interface or a direct repository link. | |||
}} <!-- | |||
-->This can be one of<!-- | |||
-->{{#ifeq: {{{git|}}} | 1 | |||
|<nowiki></nowiki> '''git''', '''git web'''<!-- | |||
-->{{#ifeq: {{{svn|{{{gh|{{{gl|}}}}}}}}} | 1 |, <nowiki></nowiki>}} | |||
}}<!-- | |||
-->{{#ifeq: {{{svn|}}} | 1 | |||
|<nowiki></nowiki> '''svn''', '''svn web'''<!-- | |||
-->{{#ifeq: {{{gh|{{{gl|}}}}}} | 1 |, <nowiki></nowiki>}} | |||
}}<!-- | |||
-->{{#ifeq: {{{gh|{{{gl|}}}}}} | 1 |<nowiki></nowiki>'''zip'''<!-- | |||
-->. See the [[#Download templates|<nowiki>{{* zip file}}</nowiki> templates]] for a simplified interface for the zip files | |||
}}. <!-- | |||
-->The default is '''{{{default_type|{{#ifeq:{{{git|}}}|1|git web|svn web}}}}}'''. | |||
{{#ifeq: {{{sf|{{{go|}}}}}} | 1 | |||
| {{#ifeq: {{{gh|{{{gl|}}}}}} | 1 | |||
|: {{inote|Zip archive downloads are currently only supported for <!-- | |||
-->{{#ifeq: {{{gh|}}} | 1 |GitHub}}<!-- | |||
-->{{#ifeq: {{{gh|{{{gl|}}}}}} | 1 |<nowiki></nowiki> and <nowiki></nowiki>}}<!-- | |||
-->{{#ifeq: {{{gl|}}} | 1 |GitLab}} repositories.}} | |||
}} | |||
}} | |||
}}{{#ifeq: {{{user|}}} | 1 | | }}{{#ifeq: {{{user|}}} | 1 | | ||
Line 200: | Line 224: | ||
{{cbr}} | {{cbr}} | ||
== | == Examples == | ||
=== All options === | |||
{{obr}}repo link/doc usage | {{obr}}repo link/doc usage | ||
{{!}} template = repo link | {{!}} template = repo link | ||
Line 261: | Line 286: | ||
| svn = 1 | | svn = 1 | ||
| git = 1 | | git = 1 | ||
}} | |||
=== Parameter: type === | |||
==== Everything ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} sf = 1 | |||
{{!}} gh = 1 | |||
{{!}} gl = 1 | |||
{{!}} go = 1 | |||
{{!}} svn = 1 | |||
{{!}} git = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| sf = 1 | |||
| gh = 1 | |||
| gl = 1 | |||
| go = 1 | |||
| svn = 1 | |||
| git = 1 | |||
| break = 0 | |||
}} | |||
==== Everything svn ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} sf = 1 | |||
{{!}} gh = 1 | |||
{{!}} gl = 1 | |||
{{!}} go = 1 | |||
{{!}} svn = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| sf = 1 | |||
| gh = 1 | |||
| gl = 1 | |||
| go = 1 | |||
| svn = 1 | |||
| break = 0 | |||
}} | |||
==== Everything git ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} sf = 1 | |||
{{!}} gh = 1 | |||
{{!}} gl = 1 | |||
{{!}} go = 1 | |||
{{!}} git = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| sf = 1 | |||
| gh = 1 | |||
| gl = 1 | |||
| go = 1 | |||
| git = 1 | |||
| break = 0 | |||
}} | |||
==== SourceForge ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} sf = 1 | |||
{{!}} svn = 1 | |||
{{!}} git = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| sf = 1 | |||
| svn = 1 | |||
| git = 1 | |||
| break = 0 | |||
}} | |||
==== SourceForge svn ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} sf = 1 | |||
{{!}} svn = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| sf = 1 | |||
| svn = 1 | |||
| break = 0 | |||
}} | |||
==== SourceForge git ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} sf = 1 | |||
{{!}} git = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| sf = 1 | |||
| git = 1 | |||
| break = 0 | |||
}} | |||
==== GitHub and GitLab ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} gh = 1 | |||
{{!}} gl = 1 | |||
{{!}} git = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| gh = 1 | |||
| gl = 1 | |||
| git = 1 | |||
| break = 0 | |||
}} | |||
==== GitLab ==== | |||
{{obr}}repo link/doc usage | |||
{{!}} template = repo link | |||
{{!}} type = 1 | |||
{{!}} gl = 1 | |||
{{!}} git = 1 | |||
{{!}} break = 0 | |||
{{cbr}} | |||
{{repo link/doc usage | |||
| template = repo link | |||
| type = 1 | |||
| gl = 1 | |||
| git = 1 | |||
| break = 0 | |||
}} | }} | ||