Template:Repo link/doc usage: Difference between revisions

Jump to navigation Jump to search
Switch of the 'commit' and 'path' parameter positions.
(Added the Gitorious 'patch' view.)
(Switch of the 'commit' and 'path' parameter positions.)
Line 153: Line 153:
             | tag        =  
             | tag        =  
             | ''tag''        =  
             | ''tag''        =  
          }}
      }}
}}{{#ifeq: {{{commit|}}}      | 1 | <nowiki></nowiki>
{{!}} {{#ifeq: {{{type_commit|}}} | num
        | {{#ifeq: {{{stat_commit|}}} | mandatory
            | commit
            | ''commit''
          }}
        | {{#ifeq: {{{stat_commit|}}} | mandatory
            | commit    =
            | ''commit''    =
           }}
           }}
       }}
       }}
Line 164: Line 175:
             | path      =  
             | path      =  
             | ''path''      =  
             | ''path''      =  
          }}
      }}
}}{{#ifeq: {{{commit|}}}      | 1 | <nowiki></nowiki>
{{!}} {{#ifeq: {{{type_commit|}}} | num
        | {{#ifeq: {{{stat_commit|}}} | mandatory
            | commit
            | ''commit''
          }}
        | {{#ifeq: {{{stat_commit|}}} | mandatory
            | commit    =
            | ''commit''    =
           }}
           }}
       }}
       }}
Line 420: Line 420:
  {{!}} style="text-align: center" {{!}} {{#if: {{{pos_tag|}}} | {{param|{{{pos_tag}}}}}}}
  {{!}} style="text-align: center" {{!}} {{#if: {{{pos_tag|}}} | {{param|{{{pos_tag}}}}}}}
  {{!}} style="text-align: center" {{!}} {{{stat_tag|optional}}}
  {{!}} style="text-align: center" {{!}} {{{stat_tag|optional}}}
</tr>
}}{{#ifeq: {{{path|}}} | 1 |
<tr>
{{!}} {{param|path}}
{{!}} The file or directory path.
{{!}} style="text-align: center" {{!}} {{#if: {{{short_path|}}} | {{param|{{{short_path}}}}}}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_path|}}} | {{param|{{{pos_path}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_path|optional}}}
  </tr>
  </tr>
}}{{#ifeq: {{{commit|}}} | 1 |
}}{{#ifeq: {{{commit|}}} | 1 |
Line 446: Line 438:
  {{!}} style="text-align: center" {{!}} {{#if: {{{pos_commit|}}} | {{param|{{{pos_commit}}}}}}}
  {{!}} style="text-align: center" {{!}} {{#if: {{{pos_commit|}}} | {{param|{{{pos_commit}}}}}}}
  {{!}} style="text-align: center" {{!}} {{{stat_commit|optional}}}
  {{!}} style="text-align: center" {{!}} {{{stat_commit|optional}}}
</tr>
}}{{#ifeq: {{{path|}}} | 1 |
<tr>
{{!}} {{param|path}}
{{!}} The file or directory path.
{{!}} style="text-align: center" {{!}} {{#if: {{{short_path|}}} | {{param|{{{short_path}}}}}}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_path|}}} | {{param|{{{pos_path}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_path|optional}}}
  </tr>
  </tr>
}}{{#ifeq: {{{line|}}} | 1 |
}}{{#ifeq: {{{line|}}} | 1 |
Line 555: Line 555:
  {{!}} branch    = {{!}} type_branch    = {{!}} short_branch    = {{!}} pos_branch    = {{!}} stat_branch    = {{!}} default_branch_git = {{!}} default_branch_svn =
  {{!}} branch    = {{!}} type_branch    = {{!}} short_branch    = {{!}} pos_branch    = {{!}} stat_branch    = {{!}} default_branch_git = {{!}} default_branch_svn =
  {{!}} tag        = {{!}} type_tag        = {{!}} short_tag        = {{!}} pos_tag        = {{!}} stat_tag        =  
  {{!}} tag        = {{!}} type_tag        = {{!}} short_tag        = {{!}} pos_tag        = {{!}} stat_tag        =  
{{!}} commit    = {{!}} type_commit    = {{!}} short_commit    = {{!}} pos_commit    = {{!}} stat_commit    =
  {{!}} path      = {{!}} type_path      = {{!}} short_path      = {{!}} pos_path      = {{!}} stat_path      =  
  {{!}} path      = {{!}} type_path      = {{!}} short_path      = {{!}} pos_path      = {{!}} stat_path      =  
{{!}} commit    = {{!}} type_commit    = {{!}} short_commit    = {{!}} pos_commit    = {{!}} stat_commit    =
  {{!}} line      = {{!}} type_line      = {{!}} short_line      = {{!}} pos_line      = {{!}} stat_line      =  
  {{!}} line      = {{!}} type_line      = {{!}} short_line      = {{!}} pos_line      = {{!}} stat_line      =  
  {{!}} post      = {{!}} type_post      = {{!}} short_post      = {{!}} pos_post      = {{!}} stat_post      = {{!}} default_post      =
  {{!}} post      = {{!}} type_post      = {{!}} short_post      = {{!}} pos_post      = {{!}} stat_post      = {{!}} default_post      =
Line 609: Line 609:
  {{!}} branch    = 1
  {{!}} branch    = 1
  {{!}} tag        = 1
  {{!}} tag        = 1
{{!}} commit    = 1
  {{!}} path      = 1
  {{!}} path      = 1
{{!}} commit    = 1
  {{!}} line      = 1
  {{!}} line      = 1
  {{!}} post      = 1
  {{!}} post      = 1
Line 640: Line 640:
| branch    = 1
| branch    = 1
| tag        = 1
| tag        = 1
| commit    = 1
| path      = 1
| path      = 1
| commit    = 1
| line      = 1
| line      = 1
| post      = 1
| post      = 1
Line 672: Line 672:
  {{!}} branch    = 1 {{!}} short_branch  = b {{!}} pos_branch = 3
  {{!}} branch    = 1 {{!}} short_branch  = b {{!}} pos_branch = 3
  {{!}} tag        = 1
  {{!}} tag        = 1
{{!}} commit    = 1 {{!}} short_commit  = c {{!}} pos_commit = 5
  {{!}} path      = 1 {{!}} short_path    = f {{!}} pos_path  = 4
  {{!}} path      = 1 {{!}} short_path    = f {{!}} pos_path  = 4
{{!}} commit    = 1 {{!}} short_commit  = c {{!}} pos_commit = 5
  {{!}} line      = 1 {{!}} short_line    = l
  {{!}} line      = 1 {{!}} short_line    = l
  {{!}} post      = 1
  {{!}} post      = 1
Line 703: Line 703:
| branch    = 1 | short_branch  = b | pos_branch = 3
| branch    = 1 | short_branch  = b | pos_branch = 3
| tag        = 1
| tag        = 1
| commit    = 1 | short_commit  = c | pos_commit = 5
| path      = 1 | short_path    = p | pos_path  = 4
| path      = 1 | short_path    = p | pos_path  = 4
| commit    = 1 | short_commit  = c | pos_commit = 5
| line      = 1 | short_line    = l
| line      = 1 | short_line    = l
| post      = 1
| post      = 1

Navigation menu