Template:Repo link/doc git source: Difference between revisions
Jump to navigation
Jump to search
m (The default branch name can now be changed via the 'branch' parameter.) |
(Changed the confusing 'repository' parameter name to 'label'.) |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
This template is for creating links or URLs for the [[{{{ | 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}}}. | ||
== Usage == | == Usage == |
Revision as of 16:48, 25 February 2016
The following template description is not displayed when the template is inserted in an article.
Goal
This template is for creating links or URLs for the MISSING git version control repository. It is a subtemplate of the master {{repo link}} template designed to be specific for MISSING.
Usage
{{MISSING file | cmd = | protocol = | type = | user = | branch = | path = | commit = | line = | view = | text = | pre = | post = | simplepath = | full = }}
All parameters are optional.
- 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.
- type
- Choose between the web interface or direct repository link. This can be either git or git web. The default is git web.
- branch
- The git branch or tag name. For git tags, simply append
/~
to the tag name. This defaults to next.
- path
- The file path.
- commit
- The commit identifier (git hash). This defaults to next.
- line
- Line number of the file to display.
- view
- View to display, either tree or log. The default is tree.
- text
- Text to display as the link label. Overrides pre.
- pre
- Prefix to a link label.
- 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.
- Note The text parameter will override this.
- full
- If set, the full URL will be shown.
Examples
MISSING
Related templates
|