Changes

Jump to navigation Jump to search

Template:Repo link/doc usage

72 bytes added, 07:40, 7 September 2017
Replaced all <tr> and </tr> tags with {{!}}-.
! Status
{{#ifeq: {{{site|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|site}}
{{!}} Points the template to a repository host:
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_site|}}} | {{param|{{{pos_site}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_site|mandatory}}}
</tr>{{!}}-
}}{{#ifeq: {{{param1|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|{{{name1}}}}}
{{!}} {{{desc1}}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos1|}}} | {{param|{{{pos1}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat1|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{param2|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|{{{name2}}}}}
{{!}} {{{desc2}}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos2|}}} | {{param|{{{pos2}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat2|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{param3|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|{{{name3}}}}}
{{!}} {{{desc3}}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos3|}}} | {{param|{{{pos3}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat3|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{cmd|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|cmd}}
{{!}} An optional command line tool name + options to prepend to the URL. For example {{param||{{{eg_cmd|git clone}}}}}.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_cmd|}}} | {{param|{{{pos_cmd}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_cmd|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{opt|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|opt}}
{{!}} Any additional options to show after {{#if: {{{value_cmd|}}} | the command {{#tag:code|{{{value_cmd}}}}} | {{param|cmd}}}}, but before the URL.{{#ifeq: {{{cmd|}}} | 1 |
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_opt|}}} | {{param|{{{pos_opt}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_opt|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{protocol|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|protocol}}
{{!}} 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: {{{pos_protocol|}}} | {{param|{{{pos_protocol}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_protocol|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{login|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|login}}
{{!}} The optional user login. {{#ifeq:{{{user|}}}|1|This should not to be confused with the {{param|user}} parameter.}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_login|}}} | {{param|{{{pos_login}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_login|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{type|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|type}}
{{!}} {{#ifeq: {{{gh|{{{gl|}}}}}} | 1
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_type|}}} | {{param|{{{pos_type}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_type|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{user|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|user}}
{{!}} The name of the user page for the {{#if: {{{site_name|}}} | [[{{{site_name}}}]]}} open source infrastructure. This is notably different to the {{param|login}} parameter. This will have precedence over the {{param|proj}} parameter. The user page is treated in the same way as a project name.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_user|}}} | {{param|{{{pos_user}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_user|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{proj|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|proj}}
{{!}} The name of the project, consisting of a grouping of repositories on the {{#if: {{{site_name|}}} | [[{{{site_name}}}]]}} open source infrastructure.{{#if: {{{default_proj|}}} | This defaults to {{param||{{{default_proj}}}}}.}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_proj|}}} | {{param|{{{pos_proj}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_proj|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{repo|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|repo}}
{{!}} The name of the repository{{#if: {{{eg_repo|}}}, for example {{param||eg_repo}}}}. A project registered on {{#if: {{{site_name|}}} | the [[{{{site_name}}}]] open source infrastructure | one of the open source infrastructures}} generally allows for multiple repositories under that project name.{{#if: {{{default_repo|}}} | This defaults to {{param||{{{default_repo}}}}}.}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_repo|}}} | {{param|{{{pos_repo}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_repo|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{branch|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|branch}}
{{!}} The branch name. <!--
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_branch|}}} | {{param|{{{pos_branch}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_branch|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{tag|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|tag}}
{{!}} The repository tag name. <!--
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_tag|}}} | {{param|{{{pos_tag}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_tag|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{commit|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|commit}}
{{!}} The commit identifier<!--
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_commit|}}} | {{param|{{{pos_commit}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_commit|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{mr|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|mr}}
{{!}} The merge request number. If provided and if the other parameters are present, this overrides any {{param|commit}}, {{param|tag}}, or {{param|branch}} parameter values.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_mr|}}} | {{param|{{{pos_mr}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_mr|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{path|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|path}}
{{!}} The file or directory path.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_path|}}} | {{param|{{{pos_path}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_path|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{line|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|line}}
{{!}} The line number(s) of the file to display.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_line|}}} | {{param|{{{pos_line}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_line|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{post|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|post}}
{{!}} Text to append. This is forms a set with the parameter {{#ifeq:{{{cmd|}}}|1|{{param|cmd}}{{#ifeq:{{{opt|}}}|1|<nowiki></nowiki> and <nowiki></nowiki>}}}}{{#ifeq:{{{opt|}}}|1|{{param|opt}}}}. For example it can represent any command line options that come after the URL. {{#if:{{{default_post|}}}|The default value is {{param||{{{default_post}}}}}.}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_post|}}} | {{param|{{{pos_post}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_post|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{view|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|view}}
{{!}} View to display:
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_view|}}} | {{param|{{{pos_view}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_view|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{text|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|text}}
{{!}} Text to display as the link label. {{#if: {{{pre|}}} | Overrides {{param|pre}}.}}
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_text|}}} | {{param|{{{pos_text}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_text|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{pre|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|pre}}
{{!}} Prefix to a link label.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_pre|}}} | {{param|{{{pos_pre}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_pre|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{simplepath|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|simplepath}}
{{!}} If set, this strips off the repository name from the URL label, leaving just the contents of the {{param|path}} parameter.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_simplepath|}}} | {{{pos_simplepath|}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_simplepath|optional}}}
</tr>{{!}}-
}}{{#ifeq: {{{full|}}} | 1 |
<tr>{{!}}-
{{!}} {{param|full}}
{{!}} If set to {{param||1}}, the full URL will be shown rather than any text label.
{{!}} style="text-align: center" {{!}} {{#if: {{{pos_full|}}} | {{param|{{{pos_full}}}}}}}
{{!}} style="text-align: center" {{!}} {{{stat_full|optional}}}
</tr>{{!}}-
}}
|}<noinclude>

Navigation menu