|
|
Line 1: |
Line 1: |
| {{#if: {{{1|}}} <!-- Is the commit defined? --> | | {{repo link |
| | <!-- Yes, the commit is defined
| | | site = sf |
| -->[http://sourceforge.net/p/flightgear/simgear/ci/{{{1|}}} <!-- | | | proj = simgear |
| -->{{#if: {{{t|}}} <!-- Is a custom label defined? --> | | | commit = {{{1|next}}} |
| | <!-- Yes, a custom label is defined
| | | view = commit |
| -->{{{t}}}
| | | text = {{#if: {{{1|}}} |
| | <!-- No, a custom label is not defined
| | | {{{text|SimGear commit {{{1}}} }}} |
| -->SimGear commit {{{1}}}
| | | <big style="color:red;">Missing parameter '''commit'''</big> |
| }}]
| | }} |
| | <!-- No, the commit is not defined. Throw an error.
| |
| --><big style="color:red;">{{tl|simgear commit}} Missing parameter '''commit'''</big>
| |
| }}<noinclude> | | }}<noinclude> |
| {{Informative template|1=
| |
| __NOTOC__
| |
| == Goal ==
| |
| This template can be used when linking to summaries of commits to the SimGear Git repository at SourceForge.
| |
|
| |
| == Usage ==
| |
| {{obr}}'''simgear commit'''{{!}}commit {{!}}''t=''{{cbr}}
| |
|
| |
| ; commit: The commit to link to. Mandatory
| |
|
| |
| ; t: Optional custom link label
| |
|
| |
| == Examples ==
| |
| <nowiki>{{simgear commit|c1b579ec}}</nowiki>
| |
| {{simgear commit|c1b579ec}}
| |
|
| |
| <nowiki>The surface light restriction {{simgear commit|1a752d28 |t=has been lifted}}.</nowiki>
| |
| The surface light restriction {{simgear commit|1a752d28 |t=has been lifted}}.
| |
|
| |
| == Related templates ==
| |
| === Commit link templates ===
| |
| * {{tl|fgaddon revision}}
| |
| * {{tl|fgdata commit}}
| |
| * {{tl|flightgear commit}}
| |
|
| |
| === Source link templates ===
| |
| * {{tl|fgaddon url}}
| |
| * {{tl|fgdata file}}
| |
| * {{tl|simgear file}}
| |
| * {{tl|flightgear file}}
| |
|
| |
|
| | {{repo link/doc commit |
| | | label = SimGear |
| | | repo = simgear |
| | | eg1commit = c1b579ec |
| | | eg2intro = The surface light restriction |
| | | eg2commit = 1a752d28 |
| | | eg2text = has been lifted |
| }} | | }} |
|
| |
|
| [[Category:Repository link templates]]
| |
| </noinclude> | | </noinclude> |