Open main menu

Template:Repo link/doc design sourceforge commit

< Template:Repo link
Revision as of 13:41, 23 October 2020 by Bugman admin (talk | contribs) (Switch from the imported {{informative template}} to the relax {{template info}} template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Site: SourceForge

Project vs. developer page

For a normal SourceForge project and a SourceForge developer page, the base URL is respectively constructed as:

https://sourceforge.net/p/<proj>/<repo>/
https://sourceforge.net/u/<user>/<repo>/

This will be abstracted as:

https://sourceforge.net/<u|p>/<user>|<proj>/<repo>/

SourceForge git <URL>

For the svn repository type, the <URL> value will be:

https://sourceforge.net/<u|p>/<user>|<proj>/<repo>/ci/<commit>

SourceForge svn <URL>

For the svn repository type, the <URL> value will be:

https://sourceforge.net/<u|p>/<user>|<proj>/<repo>/<commit|HEAD>

SourceForge URL <TEXT>

The link text <TEXT>, if the text parameter is not set, will simply be:

MISSING commit <commit>

Or if the text parameter is supplied, the <TEXT> is simply:

<text>

Template documentation

Goal

To provide documentation of the design of the {{repo link}} family of templates. This is only for use within documentation of the subtemplates. This is for use by the SourceForge specific {{* commit}} set of subtemplates.

Usage

{{repo link/doc design sourceforge commit
| label =
| proj  = 
| repo  = 
| user  =
| git   =
| svn   =
}}
label
The name of the repository, for use in the <TEXT> documentation.
proj
The optional project name.
repo
The optional repository name.
user
If set to 1, then both the user and project pages will be part of the description. Otherwise only the project pages will be described.
git
If set to 1, then git instructions will be included.
svn
If set to 1, then svn instructions will be included.

Examples

Git project pages

{{repo link/doc design sourceforge commit
| label = relax website
| proj  = nmr-relax
| repo  = website
| user  = 0
| git   = 1
| svn   = 0
}}

Site: SourceForge

Project page

For a normal SourceForge project page, the base URL is respectively constructed as:

https://sourceforge.net/p/nmr-relax/website/

SourceForge git <URL>

For the svn repository type, the <URL> value will be:

https://sourceforge.net/p/nmr-relax/website/ci/<commit>

SourceForge URL <TEXT>

The link text <TEXT>, if the text parameter is not set, will simply be:

relax website commit <commit>

Or if the text parameter is supplied, the <TEXT> is simply:

<text>