Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Gitorious merge request support.
(The 'full' parameter must now be set to 1 for it to be active. This is required for some recursive transclusions setting a value for {{{full|}}} when the 'full' parameter is not supplied.)
(Gitorious merge request support.)
Line 262: Line 262:
             }}<!--
             }}<!--
       -->{{#if: {{{path|}}} | &#59;f={{{path|}}}}}<!--              The file or directory path.
       -->{{#if: {{{path|}}} | &#59;f={{{path|}}}}}<!--              The file or directory path.
       -->{{#if: {{{commit|{{{branch|}}}}}} <!--                     The commit or branch query string. -->
       -->{{#if: {{{commit|{{{branch|{{{mr|}}}}}}}}} <!--           The commit, branch, or merge request query string. -->
           | {{#if: {{{view|}}}
           | {{#if: {{{view|}}}
               | {{#switch: {{{view|}}}
               | {{#switch: {{{view|}}}
Line 274: Line 274:
             }}
             }}
         }}<!--
         }}<!--
       -->{{#if: {{{commit|}}}
       -->{{#if: {{{mr|}}}
           | {{{commit}}} <!--                                     The commit hash. -->
           | refs/merge-requests/{{{mr}}} <!--                     The internal git reference for the merge request. -->
           | {{#if: {{{branch|}}} | refs/heads/{{{branch}}}}}<!--   The internal git reference. -->
           | {{#if: {{{commit|}}}
              | {{{commit}}} <!--                                  The commit hash. -->
              | {{#if: {{{branch|}}}<!--                           The internal git reference for the branch. -->
                  | refs/heads/{{{branch}}}
                }}
            }}
         }}<!--
         }}<!--
       -->{{#if: {{{line|}}}  |&#35;l{{{line}}}}} <!--              The optional line number.
       -->{{#if: {{{line|}}}  |&#35;l{{{line}}}}} <!--              The optional line number.
Line 289: Line 294:
                       | {{{proj|fg}}}/<!--                        The project name.
                       | {{{proj|fg}}}/<!--                        The project name.
                       -->{{{repo|flightgear}}}/<!--                The repository name.
                       -->{{{repo|flightgear}}}/<!--                The repository name.
                       -->{{{commit|{{{branch|HEAD}}}}}}<!--         The repository branch.-->
                       -->{{#if: {{{mr|}}}
                          | merge-requests/{{{mr}}}<!--            The merge request.-->
                          | {{{commit|{{{branch|HEAD}}}}}}<!--     Or the commit or branch.-->
                        }}
                     }}
                     }}
                 }}<!--
                 }}<!--

Navigation menu