Open main menu

Changes

Template:Demo source

6,635 bytes added, 07:36, 27 October 2017
Creation of the {{demo source}} template by copying {{website source}}.
{{repo link
| site = {{project infrastructure/code}}
| cmd{{#if:{{{cmd|}}}||NULL}} = {{{cmd}}}
| opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}}
| protocol{{#if:{{{protocol|}}}||NULL}} = {{{protocol}}}
| login{{#if:{{{login|}}}||NULL}} = {{{login}}}
| type{{#if:{{{type|}}}||NULL}} = {{{type}}}
| proj = {{project infrastructure/proj}}
| repo = {{project infrastructure/repo demo}}
| branch{{#if:{{{branch|{{{b|}}}}}}||NULL}} = {{{branch|{{{b}}}}}}
| tag{{#if:{{{tag|}}}||NULL}} = {{{tag}}}
| path{{#if:{{{path|{{{f|{{{1|}}}}}}}}}||NULL}} = {{{path|{{{f|{{{1}}}}}}}}}
| commit{{#if:{{{commit|{{{c|}}}}}}||NULL}} = {{{commit|{{{c}}}}}}
| line{{#if:{{{line|{{{l|}}}}}}||NULL}} = {{{line|{{{l}}}}}}
| view{{#if:{{{view|{{{v|}}}}}}||NULL}} = {{{view|{{{v}}}}}}
| text{{#if:{{{text|{{{t|}}}}}}||NULL}} = {{{text|{{{t}}}}}}
| pre{{#if:{{{pre|}}}||NULL}} = {{{pre}}}
| post{{#if:{{{post|}}}||NULL}} = {{{post}}}
| simplepath{{#if:{{{simplepath|}}}||NULL}} = {{{simplepath}}}
| full{{#if:{{{full|}}}||NULL}} = {{{full}}}
}}<noinclude>

{{repo link/doc git source
| label = relax demo
| repo = demo
| examples =
=== No parameters ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/.

{{obr}}demo source{{cbr}}.

{{demo source}}.

=== Text link ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/.

{{obr}}demo source
{{!}} text = The demo source repository
{{cbr}}.

{{demo source
| text = The demo source repository
}}.

=== File ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/NOE/Ap4Aase/README.

{{obr}}demo source
{{!}} path = NOE/Ap4Aase/README
{{cbr}}.

{{demo source
| path = NOE/Ap4Aase/README
}}.

=== File and a branch ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/NOE/Ap4Aase/README.

{{obr}}demo source
{{!}} path = NOE/Ap4Aase/README
{{!}} branch = master
{{cbr}}.

{{demo source
| path = NOE/Ap4Aase/README
| branch = master
}}.

=== File and a commit ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/8bd191/tree/R2/Ap4Aase/README.

{{obr}}demo source
{{!}} path = R2/Ap4Aase/README
{{!}} commit = 8bd191
{{cbr}}.

{{demo source
| path = R2/Ap4Aase/README
| commit = 8bd191
}}.

{{obr}}demo source
{{!}} path = R2/Ap4Aase/README
{{!}} commit = 8bd191b2e8518de3be8a9de440531c2a39c745eb
{{cbr}}.

{{demo source
| path = R2/Ap4Aase/README
| commit = 8bd191b2e8518de3be8a9de440531c2a39c745eb
}}.

=== Commit ===
{{note|For a simpler interface for this specific example, see {{tl|demo commit}}.}}
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/af8071/.

{{obr}}demo source
{{!}} commit = af8071
{{!}} view = commit
{{cbr}}.

{{demo source
| commit = af8071
| view = commit
}}.

=== File and line number ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/model_free/OMP/analysis/dauvergne_protocol.py#l154.

{{obr}}demo source
{{!}} path = model_free/OMP/analysis/dauvergne_protocol.py
{{!}} line = 154
{{cbr}}.

{{demo source
| path = model_free/OMP/analysis/dauvergne_protocol.py
| line = 154
}}.

=== File, line number, and commit ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/40bde227dbc66a648844eb317dcd44b2898b0116/tree/model_free/OMP/analysis/dauvergne_protocol.py#l154.

{{obr}}demo source
{{!}} path = model_free/OMP/analysis/dauvergne_protocol.py
{{!}} commit = 40bde227dbc66a648844eb317dcd44b2898b0116
{{!}} line = 154
{{cbr}}.

{{demo source
| path = model_free/OMP/analysis/dauvergne_protocol.py
| commit = 40bde227dbc66a648844eb317dcd44b2898b0116
| line = 154
}}.

=== Custom label given ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/model_free/OMP/analysis/dauvergne_protocol.py.

{{obr}}demo source
{{!}} path = model_free/OMP/analysis/dauvergne_protocol.py
{{!}} text = The d'Auvergne model-free analysis protocol script.
{{cbr}}.

{{demo source
| path = model_free/OMP/analysis/dauvergne_protocol.py
| text = The d'Auvergne model-free analysis protocol script.
}}.

=== Prefix of $DEMO_SRC ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/model_free/OMP/analysis/dauvergne_protocol.py.

{{obr}}demo source
{{!}} path = model_free/OMP/analysis/dauvergne_protocol.py
{{!}} pre = $DEMO_SRC
{{cbr}}.

{{demo source
| path = model_free/OMP/analysis/dauvergne_protocol.py
| pre = $DEMO_SRC
}}.

=== Full path ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/40bde227dbc66a648844eb317dcd44b2898b0116/tree/model_free/OMP/analysis/dauvergne_protocol.py#l154.

{{obr}}demo source
{{!}} path = model_free/OMP/analysis/dauvergne_protocol.py
{{!}} commit = 40bde227dbc66a648844eb317dcd44b2898b0116
{{!}} line = 154
{{!}} full = 1
{{cbr}}.

{{demo source
| path = model_free/OMP/analysis/dauvergne_protocol.py
| commit = 40bde227dbc66a648844eb317dcd44b2898b0116
| line = 154
| full = 1
}}.

=== Git clone ===
{{note|For a simpler interface for this specific example, see {{tl|demo clone}}.}}
This is for <code><nowiki>git clone git://git.code.sf.net/p/nmr-relax/relax-demo</nowiki></code>.

{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}demo source
{{!}} cmd = git clone
{{!}} protocol = git
{{!}} type = git
{{!}} full = 1
{{cbr}}{{cbr}}{{cbr}}.

{{#tag:code|{{#tag:nowiki|{{demo source
| cmd = git clone
| protocol = git
| type = git
| full = 1
}}}}}}.

=== Aliased parameters ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/model_free/OMP/analysis/dauvergne_protocol.py#l154.

{{obr}}demo source
{{!}} f = model_free/OMP/analysis/dauvergne_protocol.py
{{!}} b = master
{{!}} l = 154
{{!}} full = 1
{{cbr}}.

{{demo source
| f = model_free/OMP/analysis/dauvergne_protocol.py
| b = master
| l = 154
| full = 1
}}.

=== Numbered parameters ===
This is a link to https://sourceforge.net/p/nmr-relax/relax-demo/ci/master/tree/model_free/OMP/analysis/dauvergne_protocol.py.

{{obr}}demo source {{!}} model_free/OMP/analysis/dauvergne_protocol.py {{!}} b = master {{!}} full = 1 {{cbr}}.

{{demo source | model_free/OMP/analysis/dauvergne_protocol.py | b = master | full = 1 }}.

}}</noinclude>
Trusted, Bureaucrats
4,223

edits