Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Gitorious archive support for the tag parameter.
(Base GitHub repository URL support, if only the user/proj and repo parameters are supplied.)
(Gitorious archive support for the tag parameter.)
Line 343: Line 343:
               }}<!--
               }}<!--
     -->{{#if: {{{path|}}} | &#59;f={{{path|}}}}}<!--                The file or directory path.
     -->{{#if: {{{path|}}} | &#59;f={{{path|}}}}}<!--                The file or directory path.
     -->{{#if: {{{commit|{{{branch|{{{mr|}}}}}}}}} <!--             The commit, branch, or merge request query string. -->
     -->{{#if: {{{commit|{{{tag|{{{branch|{{{mr|}}}}}}}}}}}} <!--   The commit, tag, branch, or merge request query string. -->
         | {{#if: {{{view|}}}
         | {{#if: {{{view|}}}
             | {{#switch: {{{view|}}}
             | {{#switch: {{{view|}}}
Line 359: Line 359:
         | {{#if: {{{commit|}}}
         | {{#if: {{{commit|}}}
             | {{{commit}}} <!--                                    The commit hash. -->
             | {{{commit}}} <!--                                    The commit hash. -->
             | {{#if: {{{branch|}}}<!--                             The internal git reference for the branch. -->
             | {{#if: {{{tag|}}}<!--                                The internal git reference for the tag. -->
                | refs/heads/{{{branch}}}
                | refs/tags/{{{tag}}}
                | {{#if: {{{branch|}}}<!--                         The internal git reference for the branch. -->
                    | refs/heads/{{{branch}}}
                  }}
               }}
               }}
           }}
           }}
Line 382: Line 385:
                         -->{{#if: {{{mr|}}}
                         -->{{#if: {{{mr|}}}
                             | merge-requests/{{{mr}}}<!--          The merge request.-->
                             | merge-requests/{{{mr}}}<!--          The merge request.-->
                             | {{{commit|{{{branch|HEAD}}}}}}<!--   Or the commit or branch.-->
                             | {{{commit|{{{tag|{{{branch|HEAD}}}}}}}}}<!-- Or the commit, tag or branch.-->
                           }}
                           }}
                       }}
                       }}

Navigation menu