Template:Repo link/doc svn source: Difference between revisions
Jump to navigation
Jump to search
(__NOTOC__) |
(Documentation of the abbreviated and numbered parameters.) |
||
Line 6: | Line 6: | ||
== Usage == | == Usage == | ||
{{repo link/doc usage | {{repo link/doc usage | ||
| template | | template = {{{repo|MISSING}}} source | ||
| cmd | | cmd = 1 | eg_cmd = svn co | ||
| opt | | opt = 1 | ||
| protocol | | protocol = 1 | ||
| login | | login = 1 | ||
| type | | type = 1 | default_type = svn web | ||
| branch | | branch = 1 | short_branch = b | ||
| path | | path = 1 | short_path = f | pos_path = 1 | ||
| commit | | commit = 1 | short_commit = c | ||
| line | | line = 1 | short_line = l | ||
| post | | post = 1 | ||
| view | | view = 1 | short_view = v | ||
| text | | text = 1 | short_text = t | ||
| pre | | pre = 1 | ||
| simplepath | | simplepath = 1 | ||
| full | | full = 1 | ||
| intro | | intro = All parameters are optional. | ||
| sf | | sf = 1 | ||
| svn | | svn = 1 | ||
}} | }} | ||
Revision as of 19:31, 5 March 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
Usage
{{MISSING source | cmd = | opt = | protocol = | login = | type = | branch = | commit = | path = | line = | post = | view = | text = | pre = | simplepath = | full = }}
All parameters are optional.
Parameter | Description | Abbreviated parameter |
Numbered parameter |
Status |
---|---|---|---|---|
cmd | An optional command line tool name + options to prepend to the URL. For example svn co. | optional | ||
opt | Any additional options to show after cmd, but before the URL.
|
optional | ||
protocol | The URL protocol, for example https, http, ssh, svn. This defaults to https. | optional | ||
login | The optional user login. | optional | ||
type | Choose between the web interface or a direct repository link. This can be one of svn, svn web. The default is svn web. | optional | ||
branch | The branch name. As tags are simply branches in SVN repositories, this parameter can also be used for svn tags. This defaults to trunk. | b | optional | |
commit | The commit identifier (svn revision number). This defaults to HEAD. | c | optional | |
path | The file or directory path. | f | 1 | optional |
line | The line number(s) of the file to display.
|
l | optional | |
post | Text to append. This is forms a set with the parameter cmd and opt. For example it can represent any command line options that come after the URL. | optional | ||
view | View to display:
|
v | optional | |
text | Text to display as the link label. Overrides pre. | t | optional | |
pre | Prefix to a link label. | optional | ||
simplepath | If set, this strips off the repository name from the URL label, leaving just the contents of the path parameter.
|
optional | ||
full | If set to 1, the full URL will be shown rather than any text label. | optional |
Examples
MISSING
Related templates
|