Template:Repo link/doc commit: Difference between revisions

Jump to navigation Jump to search
Added an example for parameter aliasing ('t' = 'text').
(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}}} }}.

Navigation menu