Open main menu

Changes

Template:Relax source

5,018 bytes added, 09:07, 25 October 2017
Creation of the {{relax source}} template. This is adapted from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Flightgear_source&oldid=98442.
{{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 = relax
| repo = relax
| 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
| repo = relax
| examples =
=== No parameters ===
{{obr}}relax source{{cbr}}
{{relax source}}

=== The repository ===
{{obr}}relax source
{{!}} text = The relax source repository
{{cbr}}

{{relax source
| text = The relax source repository
}}

=== File ===
{{obr}}relax source
{{!}} path = pipe_control/diffusion_tensor.py
{{cbr}}

{{relax source
| path = pipe_control/diffusion_tensor.py
}}

=== File and a branch ===

{{obr}}relax source
{{!}} path = generic_fns/align_tensor.py
{{!}} branch = j_couplings
{{cbr}}

{{relax source
| path = generic_fns/align_tensor.py
| branch = j_couplings
}}

=== File and a tag ===
{{obr}}relax source
{{!}} path = pipe_control/diffusion_tensor.py
{{!}} tag = 4.0.3
{{cbr}}

{{relax source
| path = pipe_control/diffusion_tensor.py
| tag = 4.0.3
}}

=== File and a commit ===
{{obr}}relax source
{{!}} path = data_store/exp_info.py
{{!}} commit = bb91d6
{{cbr}}

{{relax source
| path = data_store/exp_info.py
| commit = bb91d6
}}

{{obr}}relax source
{{!}} path = data_store/exp_info.py
{{!}} commit = bb91d693f4102f81735e2a965cc1eed610211753
{{cbr}}

{{relax source
| path = data_store/exp_info.py
| commit = bb91d693f4102f81735e2a965cc1eed610211753
}}

=== Commit ===
{{obr}}relax source
{{!}} commit = 6105c8
{{!}} view = commit
{{cbr}}

{{relax source
| commit = 6105c8
| view = commit
}}

=== File and line number ===
{{obr}}relax source
{{!}} path = gui/spin_viewer/tree.py
{{!}} line = 68
{{cbr}}

{{relax source
| path = gui/spin_viewer/tree.py
| line = 68
}}

=== File, line number, and commit ===
{{obr}}relax source
{{!}} path = gui/spin_viewer/tree.py
{{!}} commit = 21462188d194d28ee6bd0523ebcc13a00a73c4ba
{{!}} line = 546
{{cbr}}

{{relax source
| path = gui/spin_viewer/tree.py
| commit = 21462188d194d28ee6bd0523ebcc13a00a73c4ba
| line = 546
}}

=== Custom label given ===
{{obr}}relax source
{{!}} path = gui/spin_viewer/tree.py
{{!}} text = The spin viewer window tree element
{{cbr}}

{{relax source
| path = gui/spin_viewer/tree.py
| text = The spin viewer window tree element
}}

=== Prefix of $RELAX_SRC ===
{{obr}}relax source
{{!}} path = gui/spin_viewer/tree.py
{{!}} pre = $RELAX_SRC
{{cbr}}

{{relax source
| path = gui/spin_viewer/tree.py
| pre = $RELAX_SRC
}}

=== Full path ===
{{obr}}relax source
{{!}} path = gui/spin_viewer/tree.py
{{!}} commit = 21462188d194d28ee6bd0523ebcc13a00a73c4ba
{{!}} line = 546
{{!}} full = 1
{{cbr}}

{{relax source
| path = gui/spin_viewer/tree.py
| commit = 21462188d194d28ee6bd0523ebcc13a00a73c4ba
| line = 546
| full = 1
}}

=== Git clone ===
This is for <code><nowiki>git clone git://git.code.sf.net/p/relax/relax</nowiki></code>.

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

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

=== Aliased parameters ===
This is for https://sourceforge.net/p/nmr-relax/code/ci/j_couplings/tree/generic_fns/align_tensor.py.

{{obr}}relax source
{{!}} f = generic_fns/align_tensor.py
{{!}} b = j_couplings
{{!}} full = 1
{{cbr}}

{{relax source
| f = generic_fns/align_tensor.py
| b = j_couplings
| full = 1
}}

=== Numbered parameters ===
This is for https://sourceforge.net/p/nmr-relax/code/ci/j_couplings/tree/generic_fns/align_tensor.py.

{{obr}}relax source {{!}} generic_fns/align_tensor.py {{!}} b = j_couplings {{!}} full = 1 {{cbr}}

{{relax source | generic_fns/align_tensor.py | b = j_couplings | full = 1 }}

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

edits