Template:Repo link/doc zip file: Difference between revisions
Jump to navigation
Jump to search
(Created a documentation template for use in the {{* zip file}} subtemplates of {{repo link}}.) |
(Activated the tag parameter.) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
== Usage == | == Usage == | ||
{{repo link/doc usage | {{repo link/doc usage | ||
| template | | template = {{{site|MISSING}}} zip file | ||
| site_name | | site_name = {{{label|MISSING}}} | ||
| user | | user = 1 | short_user = u | pos_user = 1 | stat_user = mandatory | ||
| proj | | proj = 1 | short_proj = p | pos_proj = 1 | stat_proj = mandatory | ||
| repo | | repo = 1 | short_repo = r | pos_repo = 2 | stat_repo = mandatory | ||
| branch | | branch = 1 | short_branch = b | pos_branch = 3 | default_branch_git = master | ||
| commit | | tag = 1 | ||
| text | | commit = 1 | short_commit = c | pos_commit = 4 | ||
| pre | | text = 1 | short_text = t | pos_text = 5 | ||
| simplepath | | pre = 1 | ||
| full | | simplepath = 1 | ||
| sf | | full = 1 | ||
| gh | | sf = {{{sf|0}}} | ||
| gl | | gh = {{{gh|0}}} | ||
| go | | gl = {{{gl|0}}} | ||
| svn | | go = {{{go|0}}} | ||
| git | | svn = {{{svn|0}}} | ||
| break | | git = {{{git|0}}} | ||
| break = 1 | |||
}} | }} | ||
Latest revision as of 13:36, 15 July 2016
The following template description is not displayed when the template is inserted in an article.
Goal
This template is for providing direct download links to the automatically generated zip archives of MISSING repositories. The temporary zip file is created on demand when the link is followed. It is a subtemplate of the master {{repo link}} template designed to simplify the interface.
Usage
Usage
{{MISSING zip file | user = | proj = | repo = | branch = | tag = | commit = | text = | pre = | simplepath = | full = }}
The parameters are:
Parameter | Description | Abbreviated parameter |
Numbered parameter |
Status |
---|---|---|---|---|
user | The name of the user page for the MISSING open source infrastructure. This is notably different to the login parameter. This will have precedence over the proj parameter. The user page is treated in the same way as a project name. | u | 1 | mandatory |
proj | The name of the project, consisting of a grouping of repositories on the MISSING open source infrastructure. | p | 1 | mandatory |
repo | The name of the repository. A project registered on the MISSING open source infrastructure generally allows for multiple repositories under that project name. | r | 2 | mandatory |
branch | The branch name. | b | 3 | optional |
tag | The repository tag name. | optional | ||
commit | The commit identifier. | c | 4 | optional |
text | Text to display as the link label. Overrides pre. | t | 5 | 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
|