Open main menu

Changes

Template:Website source

4,615 bytes added, 11:49, 25 October 2017
Creation of the {{website sourcel}} template by copying {{relax 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 website}}
| 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 website
| repo = website
| examples =
=== No parameters ===
{{obr}}website source{{cbr}}
{{website source}}

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

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

=== File ===
{{obr}}website source
{{!}} path = features.html
{{cbr}}

{{website source
| path = features.html
}}

=== File and a branch ===

{{obr}}website source
{{!}} path = features.shtml
{{!}} branch = sf
{{cbr}}

{{website source
| path = features.shtml
| branch = sf
}}

=== File and a commit ===
{{obr}}website source
{{!}} path = relax.css
{{!}} commit = 831561
{{cbr}}

{{website source
| path = relax.css
| commit = 831561
}}

{{obr}}website source
{{!}} path = relax.css
{{!}} commit = 831561502ee086738d05419029563749d25e6593
{{cbr}}

{{website source
| path = relax.css
| commit = 831561502ee086738d05419029563749d25e6593
}}

=== Commit ===
{{obr}}website source
{{!}} commit = 831561
{{!}} view = commit
{{cbr}}

{{website source
| commit = 831561
| view = commit
}}

=== File and line number ===
{{obr}}website source
{{!}} path = download.html
{{!}} line = 27
{{cbr}}

{{website source
| path = download.html
| line = 27
}}

=== File, line number, and commit ===
{{obr}}website source
{{!}} path = download.html
{{!}} commit = f1d540377809fc4bbcd9b8163781576a17e48a0f
{{!}} line = 65
{{cbr}}

{{website source
| path = download.html
| commit = f1d540377809fc4bbcd9b8163781576a17e48a0f
| line = 65
}}

=== Custom label given ===
{{obr}}website source
{{!}} path = download.html
{{!}} text = The relax download webpage
{{cbr}}

{{website source
| path = download.html
| text = The relax download webpage
}}

=== Prefix of $WEBSITE_SRC ===
{{obr}}website source
{{!}} path = download.html
{{!}} pre = $WEBSITE_SRC
{{cbr}}

{{website source
| path = download.html
| pre = $WEBSITE_SRC
}}

=== Full path ===
{{obr}}website source
{{!}} path = download.html
{{!}} commit = f1d540377809fc4bbcd9b8163781576a17e48a0f
{{!}} line = 65
{{!}} full = 1
{{cbr}}

{{website source
| path = download.html
| commit = f1d540377809fc4bbcd9b8163781576a17e48a0f
| line = 65
| full = 1
}}

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

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

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

=== Aliased parameters ===
This is for https://sourceforge.net/p/nmr-relax/website/ci/gh-pages/tree/download.html.

{{obr}}website source
{{!}} f = download.html
{{!}} b = gh-pages
{{!}} full = 1
{{cbr}}

{{website source
| f = download.html
| b = gh-pages
| full = 1
}}

=== Numbered parameters ===
This is for https://sourceforge.net/p/nmr-relax/website/ci/gh-pages/tree/download.html.

{{obr}}website source {{!}} download.html {{!}} b = gh-pages {{!}} full = 1 {{cbr}}

{{website source | download.html | b = gh-pages | full = 1 }}

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

edits