Template:Repo link/doc design sourceforge commit

From relax wiki
< Template:Repo link
Revision as of 11:55, 25 October 2017 by Bugman (talk | contribs) (Creation of the {{repo link/doc design sourceforge commit}} template. This is from the page http://wiki.flightgear.org/index.php?title=Template:Repo_link/doc_design_sourceforge_commit&oldid=95084.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:Informative template