Template:Repo link/doc infrastructure source: Difference between revisions
Jump to navigation
Jump to search
(Improved the documentation.) |
(Switch to using {{repo link/doc infrastructure source}} for the documentation.) |
||
Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
{{repo link/doc usage | |||
| template = {{{site|MISSING}}} source | |||
| cmd = 1 | |||
| opt = 1 | |||
| protocol = {{{protocol|0}}} | |||
| login = {{{login|0}}} | |||
| type = 1 | |||
| user = {{{user|0}}} | |||
| proj = 1 | |||
| repo = 1 | |||
| branch = 1 | |||
| tag = 1 | |||
| path = 1 | |||
| commit = 1 | |||
| line = 1 | |||
| post = 1 | |||
| view = 1 | |||
| text = 1 | |||
| pre = 1 | |||
| simplepath = 1 | |||
| full = 1 | |||
| intro = | |||
{{#ifeq: {{{user|}}} | 1 | {{#ifeq: {{{user|}}} | 1 | ||
| Either the '''user''' or '''proj''' parameter | | Either the '''user''' or '''proj''' parameter | ||
| The '''proj''' parameter | | The '''proj''' parameter | ||
}}, as well as the '''repo''' parameter, must be supplied. All other parameters are optional. | }}, as well as the '''repo''' parameter, must be supplied. All other parameters are optional. | ||
| sf = {{{sf|0}}} | |||
| gh = {{{gh|0}}} | |||
| gl = {{{gl|0}}} | |||
| go = {{{go|0}}} | |||
| svn = {{{svn|0}}} | |||
{{ | | git = {{{git|0}}} | ||
}} | }} | ||
== Examples == | == Examples == |
Revision as of 13:52, 3 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 content of the version control repositories of the MISSING open source infrastructure. It is a subtemplate of the master {{repo link}} template designed to be specific for the MISSING repositories.
Usage
Usage
{{MISSING source | cmd = | opt = | type = | proj = | repo = | branch = | tag = | commit = | path = | line = | post = | view = | text = | pre = | simplepath = | full = }}
The proj parameter, as well as the repo parameter, must be supplied. All other 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 git clone. | optional | ||
opt | Any additional options to show after cmd, but before the URL.
|
optional | ||
type | Choose between the web interface or a direct repository link. This can be one of. The default is svn web. | optional | ||
proj | The name of the project, consisting of a grouping of repositories on the open source infrastructure. | optional | ||
repo | The name of the repository. A project registered on one of the open source infrastructures generally allows for multiple repositories under that project name. | optional | ||
branch | The branch name. | optional | ||
tag | The repository tag name. | optional | ||
commit | The commit identifier. | optional | ||
path | The file or directory path. | optional | ||
line | The line number(s) of the file to display. | 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: | optional | ||
text | Text to display as the link label. Overrides pre. | 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
Related templates
|