Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Added support for the tag parameter for SourceForge SVN repositories.
No edit summary
(Added support for the tag parameter for SourceForge SVN repositories.)
Line 125: Line 125:
             | commit =  
             | commit =  
             | #default =<!--                                      Set the view based on the user supplied parameters.
             | #default =<!--                                      Set the view based on the user supplied parameters.
           -->{{#if: {{{branch|{{{path|}}}}}}
           -->{{#if: {{{tag|{{{branch|{{{path|}}}}}}}}}
               | tree/
               | tree/
               | {{#if: {{{commit|}}}
               | {{#if: {{{commit|}}}
Line 141: Line 141:
       -->{{#switch: {{{type|}}}
       -->{{#switch: {{{type|}}}
           | svn = <!--
           | svn = <!--
         -->{{{branch|trunk}}}<!--                                   The base path or branch (default = trunk).
         -->{{{tag|{{{branch|trunk}}}}}}<!--                         The tag or branch (default = trunk).
         -->{{#if: {{{path|}}} | /{{{path}}} }}<!--                  The file path.
         -->{{#if: {{{path|}}} | /{{{path}}} }}<!--                  The file path.
         -->{{#if: {{{commit|}}} | @r{{{commit}}} }}<!--            The optional revision number. -->
         -->{{#if: {{{commit|}}} | @r{{{commit}}} }}<!--            The optional revision number. -->
           | svn web = <!--
           | svn web = <!--
         -->{{#if: {{{branch|{{{path|}}}}}} <!--                     Only show the branch, path, and line number if a branch or path is supplied. -->
         -->{{#if: {{{tag|{{{branch|{{{path|}}}}}}}}} <!--           Only show the tag, branch, path, and line number if a tag, branch or path is supplied. -->
             | {{{branch|trunk}}}<!--                               The base path or branch (default = trunk).
             | {{{tag|{{{branch|trunk}}}}}}<!--                     The base path or branch (default = trunk).
           -->{{#if: {{{path|}}}
           -->{{#if: {{{path|}}}
               | /{{{path}}}<!--                                    The file path.
               | /{{{path}}}<!--                                    The file path.
Line 169: Line 169:
                         | commit =
                         | commit =
                         | #default = <!--
                         | #default = <!--
                       -->{{#if: {{{branch|{{{path|}}}}}}
                       -->{{#if: {{{tag|{{{branch|{{{path|}}}}}}}}}
                           | /{{{branch|trunk}}}
                           | /{{{tag|{{{branch|trunk}}}}}}
                         }}
                         }}
                       }}
                       }}
Line 190: Line 190:
                 | rss = <nowiki></nowiki> RSS feed
                 | rss = <nowiki></nowiki> RSS feed
                 | #default =<!--                                  Set the view based on the user supplied parameters.
                 | #default =<!--                                  Set the view based on the user supplied parameters.
               -->{{#if: {{{branch|{{{path|}}}}}}
               -->{{#if: {{{tag|{{{branch|{{{path|}}}}}}}}}
                   |  
                   |  
                   | {{#if: {{{commit|}}}
                   | {{#if: {{{commit|}}}

Navigation menu