Difference between revisions of "Template:Repo link/doc git clone"
Jump to navigation
Jump to search
Bugman admin (talk | contribs) m (1 revision imported) |
Bugman admin (talk | contribs) m (Switch from the imported {{informative template}} to the relax {{template info}} template) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{ | + | {{template info|1= |
__NOTOC__ | __NOTOC__ | ||
== Goal == | == Goal == | ||
| − | To provide a consistent representation of the command to clone the [[{{{label|MISSING}}}]] git repository. It is a subtemplate of the master {{tl|repo link}} template designed to be specific for the | + | To provide a consistent representation of the command to clone the [[{{{label|MISSING}}}]] git repository. It is a subtemplate of the master {{tl|repo link}} template designed to be specific for the relax repositories. |
{{repo link/doc usage | {{repo link/doc usage | ||
| − | | template = {{{ | + | | template = {{{name|MISSING}}} clone |
| value_cmd = git clone | | value_cmd = git clone | ||
| opt = 1 | | opt = 1 | ||
| Line 15: | Line 15: | ||
== Example == | == Example == | ||
| − | {{obr}}{{{ | + | {{obr}}{{{name|MISSING}}} clone |
{{!}} opt = {{{opt|-v}}} | {{!}} opt = {{{opt|-v}}} | ||
{{!}} post = {{{post|MISSING}}} | {{!}} post = {{{post|MISSING}}} | ||
{{cbr}} | {{cbr}} | ||
| − | {{{{{ | + | {{{{{name|MISSING}}} clone |
| opt = {{{opt|-v}}} | | opt = {{{opt|-v}}} | ||
| post = {{{post|MISSING}}} | | post = {{{post|MISSING}}} | ||
Latest revision as of 13:35, 23 October 2020
Template documentation
Goal
To provide a consistent representation of the command to clone the MISSING git repository. It is a subtemplate of the master {{repo link}} template designed to be specific for the relax repositories.
Usage
{{MISSING clone
| opt =
| post =
}}
The parameters are:
| Parameter | Description | Abbreviated parameter |
Numbered parameter |
Status |
|---|---|---|---|---|
| opt | Any additional options to show after the command git clone, but before the URL.
|
optional | ||
| post | Text to append. This is forms a set with the parameter opt. For example it can represent any command line options that come after the URL. | optional |
Plain text
To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}} magic word construct:
{{#tag:nowiki|
{{repo link
| full = 1
}}
}}
https://sourceforge.net/p/nmr-relax/code/ci/master/tree/
To use the <code> tags:
{{#tag:code|{{#tag:nowiki|
{{repo link
| full = 1
}}
}}}}
https://sourceforge.net/p/nmr-relax/code/ci/master/tree/
Example
{{MISSING clone
| opt = -v
| post = MISSING
}}
Related templates
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||