Difference between revisions of "Template:Terragear commit"

From FlightGear wiki
Jump to: navigation, search
(Set the 'git' and 'svn' parameters for {{repo link/doc commit}}.)
(Switch the 'site' parameter to use the {{project infrastructure/code}} subtemplate.)
Line 1: Line 1:
{{repo link
{{repo link
| site  = {{project infrastructure|abbrev}}
| site  = {{project infrastructure/code}}
| repo  = terragear
| repo  = terragear
| commit = {{{1|master}}}
| commit = {{{1|master}}}

Revision as of 07:06, 15 March 2016

[https://Template:Project infrastructure/code//terragearGeneric git web interface is not implemented for {{repo link}}]

The following template description is not displayed when the template is inserted in an article.


This template can be used when linking to summaries of commits for the TerraGear git repository at SourceForge. It is a subtemplate of the master {{repo link}} template designed to link to specific version control commits.


{{terragear commit
| commit
| text       =

The parameters are:

Parameter Description Abbreviated
commit The commit identifier (git hash). This defaults to HEAD. 1 mandatory
text Text to display as the link label. t 2 optional


In this section, the following notation will be used:

Angular brackets + lower case text <xyz>
Template parameters.
Angular brackets + upper case text <XYZ>
Template constructed text.
Square brackets [xyz]
Optional text, only added if the parameter is set.
Or symbol |
The value on the left, if present, otherwise the value on the right of the symbol.


The general design is:

<cmd> <opt> [<URL> <TEXT>] <post>

Here the square brackets do not denote optional text, but will instead produce a Mediawiki link. This can be modified by setting full = 1 to produce:

<cmd> <opt> <URL> <post>

Site: SourceForge

Project page

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


SourceForge git <URL>

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


SourceForge URL <TEXT>

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

TerraGear commit <commit>

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


Plain text

To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}} magic word construct:

  {{repo link
  | full = 1


To use the <code> tags:

  {{repo link
  | full = 1



Auto-generated text

{{terragear commit | 86aa92}}

TerraGear commit 86aa92

User supplied text

We now have {{terragear commit | 5e8137 | text = robust reading of untrusted input}}.

We now have robust reading of untrusted input .

Parameter alias

We now have {{terragear commit | 5e8137 | t = robust reading of untrusted input}}.

We now have robust reading of untrusted input .

Numbered parameters

We now have {{terragear commit | 5e8137 | robust reading of untrusted input}}.

We now have robust reading of untrusted input .

Related templates