Template:Repo link: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Switched to using {{repo link/doc}} for all of the template documentation.)
mNo edit summary
Line 3: Line 3:
  -->{{#if: {{{opt|}}} | {{{opt}}} <nowiki></nowiki>}}<!--          The options. -->
  -->{{#if: {{{opt|}}} | {{{opt}}} <nowiki></nowiki>}}<!--          The options. -->
}}<!--
}}<!--
-->{{#if: {{{full|}}} | |[}}<!--                                    To link or not to link?  (default = yes)
-->{{#if: {{{full|}}} | |[}}<!--                                    To link or not to link?  (default = yes).
-->{{#switch: {{{site|{{project infrastructure|abbrev}}}}}
-->{{#switch: {{{site|{{project infrastructure|abbrev}}}}}
| s
| s
Line 48: Line 48:
     -->{{#if: {{{text|}}}
     -->{{#if: {{{text|}}}
         | {{{text}}} <!--                                          A text description for the link. -->
         | {{{text}}} <!--                                          A text description for the link. -->
         | {{#if: {{{full|}}} <!--                                  Construct text for the link -->
         | {{#if: {{{full|}}} <!--                                  Construct text for the link. -->
             | <!--                                                No text. -->
             | <!--                                                No text. -->
             | {{#if: {{{pre|}}}
             | {{#if: {{{pre|}}}
Line 106: Line 106:
     -->{{#if: {{{text|}}}
     -->{{#if: {{{text|}}}
         | {{{text}}} <!--                                          A text description for the link. -->
         | {{{text}}} <!--                                          A text description for the link. -->
         | {{#if: {{{full|}}} <!--                                  Construct text for the link -->
         | {{#if: {{{full|}}} <!--                                  Construct text for the link. -->
             | <!--                                                No text. -->
             | <!--                                                No text. -->
             | {{#if: {{{pre|}}}
             | {{#if: {{{pre|}}}
Line 167: Line 167:
                       | <!--                                        No project, repository or branch. -->
                       | <!--                                        No project, repository or branch. -->
                       | github/<!--                                Site advertising.
                       | github/<!--                                Site advertising.
                     -->{{{user|{{{proj|}}}}}}/<!--                The user or project name
                     -->{{{user|{{{proj|}}}}}}/<!--                The user or project name.
                     -->{{{repo|flightgear}}}/<!--                  The repository name.
                     -->{{{repo|flightgear}}}/<!--                  The repository name.
                     -->{{{commit|{{{branch|master}}}}}}<!--        The repository branch.-->
                     -->{{{commit|{{{branch|master}}}}}}<!--        The repository branch.-->
Line 198: Line 198:
                     | <!--                                        No project, repository or branch. -->
                     | <!--                                        No project, repository or branch. -->
                     | github/<!--                                  Site advertising.
                     | github/<!--                                  Site advertising.
                     -->{{{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|}}} }}} }}}<!--  The commit, tag, or branch.-->
                     -->{{{commit|{{{tag|{{{branch|}}} }}} }}}<!--  The commit, tag, or branch.-->
Line 229: Line 229:
                     | <!--                                        No project, repository or branch. -->
                     | <!--                                        No project, repository or branch. -->
                     | gitlab/<!--                                  Site advertising.
                     | gitlab/<!--                                  Site advertising.
                     -->{{{proj|}}}/<!--                            The project name
                     -->{{{proj|}}}/<!--                            The project name.
                     -->{{{repo|}}}/<!--                            The repository name.
                     -->{{{repo|}}}/<!--                            The repository name.
                     -->{{{commit|{{{tag|{{{branch|}}} }}} }}}<!--  The commit, tag, or branch.-->
                     -->{{{commit|{{{tag|{{{branch|}}} }}} }}}<!--  The commit, tag, or branch.-->
Line 260: Line 260:
             }}<!--
             }}<!--
       -->{{#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|}}}}}} <!--                    The commit or branch query string. -->
           | {{#switch: {{{view|}}}
           | {{#switch: {{{view|}}}
               | blob | raw | tree = &#59;hb=
               | blob | raw | tree = &#59;hb=
Line 279: Line 279:
                   | {{#if: {{{simplepath|}}}
                   | {{#if: {{{simplepath|}}}
                       | <!--                                      No project, repository or branch. -->
                       | <!--                                      No project, repository or branch. -->
                       | {{{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.-->
                       -->{{{commit|{{{branch|HEAD}}}}}}<!--        The repository branch.-->
Line 305: Line 305:
   }}
   }}
}}<!--
}}<!--
-->{{#if: {{{full|}}} | |]}}<!--                                    To link or not to link?  (default = yes)
-->{{#if: {{{full|}}} | |]}}<!--                                    To link or not to link?  (default = yes).
-->{{#if: {{{post|}}} | <nowiki></nowiki> {{{post}}} }}<!--        Appended text.
-->{{#if: {{{post|}}} | <nowiki></nowiki> {{{post}}} }}<!--        Appended text.
--><noinclude>
--><noinclude>

Navigation menu