Template:Repo link/doc usage: Difference between revisions

Jump to navigation Jump to search
Improved handling of the git and svn parameters - these are now always checked with #ifeq: statements.
(Updated the descriptions for the activated tag parameter.)
(Improved handling of the git and svn parameters - these are now always checked with #ifeq: statements.)
Line 335: Line 335:
  <tr>
  <tr>
  {{!}} {{param|protocol}}
  {{!}} {{param|protocol}}
  {{!}} The URL protocol, for example {{param||https}}, {{param||http}}, {{param||ssh}}{{#if:{{{git|}}}|, {{param||git}}}}{{#if:{{{svn|}}}|, {{param||svn}}}}.  This defaults to {{param||{{{default_protocol|https}}}}}.
  {{!}} The URL protocol, for example {{param||https}}, {{param||http}}, {{param||ssh}}{{#ifeq:{{{git|}}}|1|, {{param||git}}}}{{#ifeq:{{{svn|}}}|1|, {{param||svn}}}}.  This defaults to {{param||{{{default_protocol|https}}}}}.
  {{!}} style="text-align: center" {{!}} {{#if: {{{short_protocol|}}} | {{param|{{{short_protocol}}}}}}}
  {{!}} style="text-align: center" {{!}} {{#if: {{{short_protocol|}}} | {{param|{{{short_protocol}}}}}}}
  {{!}} style="text-align: center" {{!}} {{#if: {{{pos_protocol|}}} | {{param|{{{pos_protocol}}}}}}}
  {{!}} style="text-align: center" {{!}} {{#if: {{{pos_protocol|}}} | {{param|{{{pos_protocol}}}}}}}
Line 408: Line 408:
  {{!}} {{param|branch}}
  {{!}} {{param|branch}}
  {{!}} The branch name. <!--
  {{!}} The branch name. <!--
     -->{{#if: {{{svn|}}} | As tags are simply branches in SVN repositories, this parameter can also be used for svn tags. <nowiki></nowiki>}}<!--
     -->{{#ifeq: {{{svn|}}} | 1 | As tags are simply branches in SVN repositories, this parameter can also be used for svn tags. <nowiki></nowiki>}}<!--
     -->{{#if: {{{git|}}}
     -->{{#ifeq: {{{git|}}} | 1
         | {{#if: {{{svn|}}}
         | {{#ifeq: {{{svn|}}} | 1
             | This defaults to {{param||{{{default_branch_git|next}}}}} or {{param||{{{default_branch_svn|trunk}}}}} for git and svn respectively. <nowiki></nowiki>
             | This defaults to {{param||{{{default_branch_git|next}}}}} or {{param||{{{default_branch_svn|trunk}}}}} for git and svn respectively. <nowiki></nowiki>
             | This defaults to {{param||{{{default_branch_git|next}}}}}. <nowiki></nowiki>
             | This defaults to {{param||{{{default_branch_git|next}}}}}. <nowiki></nowiki>
           }}
           }}
         | {{#if: {{{svn|}}}
         | {{#ifeq: {{{svn|}}} | 1
             | This defaults to {{param||{{{default_branch_svn|trunk}}}}}. <nowiki></nowiki>
             | This defaults to {{param||{{{default_branch_svn|trunk}}}}}. <nowiki></nowiki>
           }}
           }}

Navigation menu