Template:Repo link/doc git source: Difference between revisions

Jump to navigation Jump to search
m
Some small edits.
(Changed the confusing 'repository' parameter name to 'label'.)
m (Some small edits.)
Line 2: Line 2:
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
This template is for creating links or URLs for the [[{{{label|MISSING}}}]] git version control repository.  It is a subtemplate of the master {{tl|repo link}} template designed to be specific for {{{label|MISSING}}}.
This template is for creating links or URLs for the [[{{{label|MISSING}}}]] git version control repository.  It is a subtemplate of the master {{tl|repo link}} template designed to be specific for the {{{label|MISSING}}} repository.


== Usage ==
== Usage ==
Line 27: Line 27:
; cmd: An optional command line tool name + options to prepend to the URL.  For example '''git clone'''.
; cmd: An optional command line tool name + options to prepend to the URL.  For example '''git clone'''.


; protocol: The URL protocol, for example '''https''', '''http''', '''git''', '''ssh''', '''svn'''.  This defaults to '''https'''.
; protocol: The URL protocol, for example '''https''', '''http''', '''git''', or '''ssh'''.  This defaults to '''https'''.


; type: Choose between the web interface or direct repository link.  This can be either '''git''' or '''git web'''.  The default is '''git web'''.
; type: Choose between the web interface or direct repository link.  This can be either '''git''' or '''git web'''.  The default is '''git web'''.
Line 47: Line 47:
; post: Text to append.
; post: Text to append.


; simplepath:  If set, this strips off the repository name from the URL label, leaving just the contents of the ''path'' parameter.
; simplepath:  If set, this strips off the repository name from the URL label, leaving just the contents of the '''path''' parameter.
: {{inote|The ''text'' parameter will override this.}}
: {{inote|The ''text'' parameter will override this.}}


Navigation menu