Template:Repo link/doc usage: Difference between revisions

Jump to navigation Jump to search
Updated the 'view' parameter descriptions for the more logical default choices for SourceForge and Gitorious.
(Extension of the Gitorious 'view' parameter description to include merge requests.)
(Updated the 'view' parameter descriptions for the more logical default choices for SourceForge and Gitorious.)
Line 499: Line 499:
  {{!}} View to display:
  {{!}} View to display:
       {{#ifeq: {{{sf|}}} | 1 |
       {{#ifeq: {{{sf|}}} | 1 |
:* For SourceForge use one of {{param||tree}}, {{param||log}}, {{param||commit}}, or {{param||rss}}.  The default is {{param||tree}}.
:* For SourceForge use one of {{param||tree}}, {{param||log}}, {{param||commit}}, or {{param||rss}}.  If a commit is specified (the {{param|commit}} parameter is set and {{param|path}} is not), the default is {{param||commit}}.  Otherwise the default is {{param||tree}}.
       }}{{#ifeq: {{{gh|}}} | 1 |  
       }}{{#ifeq: {{{gh|}}} | 1 |  
:* For GitHub use one of {{param||blob}}, {{param||blame}}, {{param||commit}}, {{param||commits}} or {{param||raw}}.  The default is {{param||tree}}.
:* For GitHub use one of {{param||blob}}, {{param||blame}}, {{param||commit}}, {{param||commits}} or {{param||raw}}.  The default is {{param||tree}}.
Line 505: Line 505:
:* The GitLab interface for {{param|type|git web}} is not yet implemented in the master {{tl|repo link}} template, so the {{param|view}} parameter currently does nothing.
:* The GitLab interface for {{param|type|git web}} is not yet implemented in the master {{tl|repo link}} template, so the {{param|view}} parameter currently does nothing.
       }}{{#ifeq: {{{go|}}} | 1 |  
       }}{{#ifeq: {{{go|}}} | 1 |  
:* For the Gitorious archive use one of {{param||summary}}, {{param||shortlog}}, {{param||log}}, {{param||blob}}, {{param||commit}}, {{param||commitdiff}}, {{param||patch}}, {{param||tree}}, {{param||history}}, or {{param||raw}}.  The default is {{param||commit}} if a merge request is supplied, {{param||blob}} if a path is given, {{param||commit}} if a commit is given, or {{param||summary}} otherwise.
:* For the Gitorious archive use one of {{param||summary}}, {{param||shortlog}}, {{param||log}}, {{param||blob}}, {{param||commit}}, {{param||commitdiff}}, {{param||patch}}, {{param||tree}}, {{param||history}}, or {{param||raw}}.  The default is {{param||commit}} if a merge request is supplied, {{param||blob}} if a path is given, {{param||commit}} if a commit is given, {{param||shortlog}} if a branch is given, or {{param||summary}} otherwise.
       }}
       }}
  {{!}} style="text-align: center" {{!}} {{#if: {{{short_view|}}} | {{param|{{{short_view}}}}}}}
  {{!}} style="text-align: center" {{!}} {{#if: {{{short_view|}}} | {{param|{{{short_view}}}}}}}

Navigation menu