Template:Repo link/doc git source
Jump to navigation
Jump to search
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 the MISSING repository.
Usage
{{MISSING source | cmd = | opt = | protocol = | login = | 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.
- opt
- Any additional options to show after cmd, if supplied.
- protocol
- The URL protocol, for example https, http, git, or ssh. This defaults to https.
- login
- The optional user login.
- 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, one of tree, log, commit or rss. 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
|