Template:Repo link/doc commit: Difference between revisions
Jump to navigation
Jump to search
(More fixes for the 'eg2post' parameter.) |
(Added an example for parameter aliasing ('t' = 'text').) |
||
Line 15: | Line 15: | ||
== Examples == | == Examples == | ||
=== Auto-generated text === | |||
{{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg1commit|MISSING}}}{{cbr}} | {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg1commit|MISSING}}}{{cbr}} | ||
{{{{{repo|MISSING}}} commit | {{{eg1commit|MISSING}}} }} | {{{{{repo|MISSING}}} commit | {{{eg1commit|MISSING}}} }} | ||
=== User supplied text === | |||
{{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} text = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | {{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} text = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | ||
Line 25: | Line 27: | ||
| {{{eg2commit|MISSING}}} | | {{{eg2commit|MISSING}}} | ||
| text = {{{eg2text|MISSING}}} | | text = {{{eg2text|MISSING}}} | ||
}} | |||
{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | |||
=== Parameter alias === | |||
{{{eg2intro|MISSING}}} {{obr}}{{{repo|MISSING}}} commit {{!}} {{{eg2commit|MISSING}}} {{!}} t = {{{eg2text|MISSING}}}{{cbr}}{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | |||
{{{eg2intro|MISSING}}} | |||
{{{{{repo|MISSING}}} commit | |||
| {{{eg2commit|MISSING}}} | |||
| t = {{{eg2text|MISSING}}} | |||
}} | }} | ||
{{#if: {{{eg2post|}}} | {{{eg2post}}} }}. | {{#if: {{{eg2post|}}} | {{{eg2post}}} }}. |
Revision as of 18:28, 4 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
{{MISSING commit | commit | text = }}
- commit
- The commit identifier to link to (mandatory).
- text
- Optional link text.
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 .
Related templates
|