Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Default GitLab branches to next
(Support for GitHub wikis.)
(Default GitLab branches to next)
Line 286: Line 286:
           | /<!--
           | /<!--
         -->{{{view|blob}}}/<!--                                    The repository view.
         -->{{{view|blob}}}/<!--                                    The repository view.
         -->{{{commit|{{{tag|{{{branch|master}}}}}}}}}<!--          The branch or commit.
         -->{{{commit|{{{tag|{{{branch|next}}}}}}}}}<!--          The branch or commit.
         -->{{#if: {{{path|}}} | /{{{path}}}}}<!--                  The file or directory path.
         -->{{#if: {{{path|}}} | /{{{path}}}}}<!--                  The file or directory path.
         -->{{#if: {{{line|}}} | &#35;L{{{line}}} }} <!--            The optional line number(s). -->
         -->{{#if: {{{line|}}} | &#35;L{{{line}}} }} <!--            The optional line number(s). -->
         }}
         }}
         | zip = /repository/archive.zip<!--                        The base zip file URL.
         | zip = /repository/archive.zip<!--                        The base zip file URL.
         -->{{#if: {{{commit|{{{tag|{{{branch|master}}}}}}}}}
         -->{{#if: {{{commit|{{{tag|{{{branch|next}}}}}}}}}
             | ?ref={{{commit|{{{tag|{{{branch|master}}}}}}}}}<!--  Download for a specific commit, tag, or branch (defaulting to master). -->
             | ?ref={{{commit|{{{tag|{{{branch|next}}}}}}}}}<!--  Download for a specific commit, tag, or branch (defaulting to next). -->
           }}
           }}
       }}
       }}
Line 309: Line 309:
                         -->{{{user|{{{proj|}}}}}}/<!--              The user or project name.
                         -->{{{user|{{{proj|}}}}}}/<!--              The user or project name.
                         -->{{{repo|}}}/<!--                        The repository name.
                         -->{{{repo|}}}/<!--                        The repository name.
                         -->{{{commit|{{{tag|{{{branch|master}}}}}}}}}<!-- The commit, tag, or branch.-->
                         -->{{{commit|{{{tag|{{{branch|next}}}}}}}}}<!-- The commit, tag, or branch.-->
                       }}
                       }}
                   }}<!--
                   }}<!--

Navigation menu