Template:Fgaddon commit: Difference between revisions

Jump to navigation Jump to search
Template simplification and standardisation by conversion into a subtemplate of the {{repo link}} master template, and use of the {{repo link/doc commit}} documentation template.
(Updated the goal - this template is currently only for the SF web interface.)
(Template simplification and standardisation by conversion into a subtemplate of the {{repo link}} master template, and use of the {{repo link/doc commit}} documentation template.)
Line 1: Line 1:
{{#if: {{{1|}}} <!-- Is the revision defined? -->
{{repo link
| <!-- Yes, the revision is defined
| site  = sf
   -->[http://sourceforge.net/p/flightgear/fgaddon/{{{1|}}} <!--
| proj  = fgaddon
   -->{{#if: {{{t|}}} <!-- Is a custom label defined? -->
| type   = svn web
  | <!-- Yes, a custom label is defined
| commit = {{{1|HEAD}}}
    -->{{{t}}}
| view  = commit
  | <!-- No, a custom label is not defined
| text   = {{#if: {{{1|}}}
    -->FGAddon revision {{{1}}}
  | {{{text|FGAddon commit r{{{1}}} }}}
  }}]
  | <big style="color:red;">Missing parameter '''commit'''</big>
| <!-- No, the revision is not defined.  Throw an error.
  }}
  --><big style="color:red;">{{tl|fgaddon revision}} Missing parameter '''revision'''</big>
}}<noinclude>
}}<noinclude>
{{Informative template|1=
__NOTOC__
== Goal ==
This template can be used when linking to summaries of revisions of the [[FGAddon]] aircraft SVN repository via the SourceForge web interface.
== Usage ==
{{obr}}'''fgaddon revision'''{{!}}revision {{!}}''t=''{{cbr}}
; revision:  The revision to link to, without the preceding '''r'''. Mandatory
; t:        Optional custom link label
== Examples ==
<nowiki>{{fgaddon revision|1020}}</nowiki>
{{fgaddon revision|1020}}
<nowiki>Maintenance like {{fgaddon revision|1001 |t=removing Windows Thumbs.db files}} should not be needed.</nowiki>
Maintenance like {{fgaddon revision|1001 |t=removing Windows Thumbs.db files}} should not be needed.
== Related templates ==
=== Commit link templates ===
* {{tl|fgdata commit}}
* {{tl|simgear commit}}
* {{tl|flightgear commit}}
=== Source link templates ===
* {{tl|fgaddon url}}
* {{tl|fgdata file}}
* {{tl|simgear file}}
* {{tl|flightgear file}}


{{repo link/doc commit
| label    = FGAddon
| repo      = fgaddon
| type      = svn
| eg1commit = 1020
| eg2intro  = Maintenance such as
| eg2commit = 1001
| eg2text  = removing Windows Thumbs.db files
| eg2post  = should not be needed
}}
}}


[[Category:Repository link templates]]
</noinclude>
</noinclude>

Navigation menu