Template:Repo link/doc svn source: Difference between revisions
Jump to navigation
Jump to search
(Creation of an initial documentation template for transclusion into the {{* source}} templates for svn repositories.) |
(Added a description of the 'login' parameter.) |
||
Line 7: | Line 7: | ||
{{!}} ''cmd'' = | {{!}} ''cmd'' = | ||
{{!}} ''protocol'' = | {{!}} ''protocol'' = | ||
{{!}} ''login'' = | |||
{{!}} ''type'' = | {{!}} ''type'' = | ||
{{!}} ''user'' = | {{!}} ''user'' = | ||
Line 27: | Line 28: | ||
; protocol: The URL protocol, for example '''https''', '''http''', '''svn''', or '''ssh'''. This defaults to '''https'''. | ; protocol: The URL protocol, for example '''https''', '''http''', '''svn''', 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 '''svn''' or '''svn web'''. The default is '''svn web'''. | ; type: Choose between the web interface or direct repository link. This can be either '''svn''' or '''svn web'''. The default is '''svn web'''. |
Revision as of 18:42, 26 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 svn version control repository. It is a subtemplate of the master {{repo link}} template designed to be specific for the MISSING repository.
Usage
{{MISSING file | cmd = | 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 svn co.
- protocol
- The URL protocol, for example https, http, svn, 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 svn or svn web. The default is svn web.
- branch
- The svn branch or tag name. This defaults to trunk.
- path
- The file path.
- commit
- The commit identifier (svn revision). This defaults to HEAD.
- 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.
- Note The text parameter will override this.
- 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
|