Template:Repo link/doc commit: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Added an example for parameter aliasing ('t' = 'text').)
(Switch to {{repo link/doc usage}} for consistent subtemplate usage documentation.)
Line 5: Line 5:


== Usage ==
== Usage ==
{{obr}}'''{{{repo|MISSING}}} commit'''
{{repo link/doc usage
{{!}} commit
| template    = {{{repo|MISSING}}} commit
  {{!}} ''text'' =
| commit     = 1
  {{cbr}}
| type_commit = num
 
| pos_commit = 1
; commit:  The commit identifier to link to (mandatory).
| stat_commit = mandatory
 
| text       = 1
; text:  Optional link text.
| type_text  = named
| short_text = t
| pos_text    = 2
| sf          = 1
| svn        = 1
| git        = 1
| break      = 0
}}


== Examples ==
== Examples ==

Revision as of 16:13, 5 March 2016

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

Goal

This template can be used when linking to summaries of commits for the MISSING git repository at SourceForge.

Usage

Usage

{{MISSING commit
| commit
| text       =
}}

The parameters are:

Parameter Description Abbreviated
parameter
Numbered
parameter
Status
commit The commit identifier (git hash or svn revision number). This defaults to HEAD. 1 mandatory
text Text to display as the link label. t 2 optional

Examples

Auto-generated text

{{MISSING commit | MISSING}}

Template:MISSING commit

User supplied text

MISSING {{MISSING commit | MISSING | text = MISSING}}.

MISSING Template:MISSING commit .

Parameter alias

MISSING {{MISSING commit | MISSING | t = MISSING}}.

MISSING Template:MISSING commit .

Related templates