Template:Simgear file: Difference between revisions

Jump to navigation Jump to search
Decided to remove path abbreviation ("simgear/simgear/..." → "simgear/...") so that it matches the path on a user's computer; added a non-breaking space
(Add line parameter; fix "simgear/simgear/..." > "simgear.." abbreviation bug; slightly shorten abbreviated commit IDs to match the SF abbreviation; add link to {{fgaddon url}})
(Decided to remove path abbreviation ("simgear/simgear/..." → "simgear/...") so that it matches the path on a user's computer; added a non-breaking space)
Line 9: Line 9:
     -->{{#if: {{{3|}}} <!-- Is a line defined? -->
     -->{{#if: {{{3|}}} <!-- Is a line defined? -->
       | &#35;l{{{3}}}
       | &#35;l{{{3}}}
     }} <!--
     }} simgear/{{{1|}}}]&nbsp;({{{2}}}{{#if: {{{3|}}} | ,&nbsp;line&nbsp;{{{3}}} }})
-->{{#ifeq: {{lc: {{#titleparts: {{{1|}}} | 1 }} }} <!-- Does the file path start with "simgear"? -->
  | simgear
  | {{{1|}}} <!-- Yes, abbreviate the label ("simgear/simgear..." -> "simgear/...") -->
  | simgear/{{{1|}}} <!-- No, do not abbreviate -->
  }}] ({{{2}}}{{#if: {{{3|}}} | ,&nbsp;line&nbsp;{{{3}}} }})
   | <!-- No, a commit reference is not defined.  Fall back on "next" and do not display commit reference. --><!--
   | <!-- No, a commit reference is not defined.  Fall back on "next" and do not display commit reference. --><!--
     -->next/tree/{{{1|}}}<!--
     -->next/tree/{{{1|}}}<!--
     -->{{#if: {{{3|}}} <!-- Is a line defined? -->
     -->{{#if: {{{3|}}} <!-- Is a line defined? -->
       | &#35;l{{{3}}}
       | &#35;l{{{3}}}
     }} <!--
     }} simgear/{{{1|}}}]{{#if: {{{3|}}} | &nbsp;(line&nbsp;{{{3}}}) }}
-->{{#ifeq: {{lc: {{#titleparts: {{{1|}}} | 1 }} }} <!-- Does the file path start with "simgear"? -->
  | simgear
  | {{{1|}}} <!-- Yes, abbreviate the label ("simgear/simgear..." -> "simgear/...") -->
  | simgear/{{{1|}}} <!-- No, do not abbreviate -->
  }}]{{#if: {{{3|}}} | &nbsp;(line&nbsp;{{{3}}}) }}
}}<noinclude>
}}<noinclude>
{{Informative template|1=
{{Informative template|1=

Navigation menu