Template:Sourceforge zip file

From relax wiki
Revision as of 09:46, 27 October 2017 by Bugman (talk | contribs) (Creation of the {{sourceforge zip file}} template by copying {{github zip file}}.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[1]

Template documentation

Goal

This template is for providing direct download links to the automatically generated zip archives of SourceForge 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

{{sourceforge 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 SourceForge 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 SourceForge open source infrastructure. p 1 mandatory
repo The name of the repository. A project registered on the SourceForge open source infrastructure generally allows for multiple repositories under that project name. r 2 mandatory
branch The branch name. This defaults to master. b 3 optional
tag The repository tag name. optional
commit The commit identifier (git hash). This defaults to HEAD. 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.
Note The text parameter will override this.
optional
full If set to 1, the full URL will be shown rather than any text label. optional

Examples

Default

This is a link to https://sourceforge.net/p/nmr-relax/code/ci/master/tarball.

{{sourceforge zip file
| proj = nmr-relax
| repo = relax
| full = 1
}}.

https://sourceforge.net/p/nmr-relax/relax/ci/master/tarball.

Branch

This is a link to https://sourceforge.net/p/nmr-relax/code/ci/N_state_model/tarball.

{{sourceforge zip file
| proj   = nmr-relax
| repo   = relax
| branch = N_state_model
| full   = 1
}}.

https://sourceforge.net/p/nmr-relax/relax/ci/N_state_model/tarball.

Commit

This is a link to https://sourceforge.net/p/nmr-relax/code/ci/58d63f8dc7b5a17e97bc260c557b2d16a3782f8a/tarball.

{{sourceforge zip file
| proj   = nmr-relax
| repo   = relax
| commit = 58d63f8dc7b5a17e97bc260c557b2d16a3782f8a
| full   = 1
}}.

https://sourceforge.net/p/nmr-relax/relax/ci/58d63f8dc7b5a17e97bc260c557b2d16a3782f8a/tarball.

Aliased parameters

This is a link to https://sourceforge.net/p/nmr-relax/code/ci/absolute_rdc/tarball.

{{sourceforge zip file
| p    = nmr-relax
| r    = relax
| b    = absolute_rdc
| full = 1
}}.

https://sourceforge.net/p/nmr-relax/relax/ci/absolute_rdc/tarball.

Numbered parameters

This is a link to https://sourceforge.net/p/nmr-relax/code/ci/0.3/tarball.

{{sourceforge zip file | nmr-relax | relax | 0.3 | full = 1 }}.

https://sourceforge.net/p/nmr-relax/relax/ci/0.3/tarball.

Related templates