Difference between revisions of "Template:Repo link/doc design sourceforge commit"
(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.) |
Bugman admin (talk | contribs) m (Switch from the imported {{informative template}} to the relax {{template info}} template) |
||
Line 36: | Line 36: | ||
}}<noinclude> | }}<noinclude> | ||
− | {{ | + | {{template info|1= |
== Goal == | == Goal == | ||
Latest revision as of 13:41, 23 October 2020
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
Contents
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>