Template:Repo link/doc commit: Difference between revisions
Jump to navigation
Jump to search
(Switch to {{repo link/doc usage}} for consistent subtemplate usage documentation.) |
(Added an example for all parameters being numbered parameters.) |
||
Line 44: | Line 44: | ||
| {{{eg2commit|MISSING}}} | | {{{eg2commit|MISSING}}} | ||
| t = {{{eg2text|MISSING}}} | | t = {{{eg2text|MISSING}}} | ||
}} | |||
{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | |||
=== Numbered parameters === | |||
{{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | |||
{{{eg2intro|MISSING}}} | |||
{{{{{repo|MISSING}}} commit | |||
| {{{eg2commit|MISSING}}} | |||
| {{{eg2text|MISSING}}} | |||
}} | }} | ||
{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | {{#if: {{{eg2post|}}} | {{{eg2post}}} }}. |
Revision as of 16:41, 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}}
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 .
Numbered parameters
MISSING {{MISSING commit | MISSING | MISSING}}.
MISSING Template:MISSING commit .
Related templates
|