Changes

Jump to navigation Jump to search

Template:Website source

1,299 bytes added, 07:44, 27 October 2017
Added the links the examples should create and improved the formatting.
| examples =
=== No parameters ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/master/tree/.  {{obr}}website source{{cbr}}. {{website source}}.
=== The repository ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/master/tree/.
 
{{obr}}website source
{{!}} text = The website source repository
{{cbr}}.
{{website source
| text = The website source repository
}}.
=== File ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/master/tree/features.html.
 
{{obr}}website source
{{!}} path = features.html
{{cbr}}.
{{website source
| path = features.html
}}.
=== File and a branch ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/sf/tree/features.shtml.
 
{{obr}}website source
{{!}} path = features.shtml
{{!}} branch = sf
{{cbr}}.
{{website source
| path = features.shtml
| branch = sf
}}.
=== File and a commit ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/831561/tree/relax.css.
 
{{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 ===
{{note|For a simpler interface for this specific example, see {{tl|website commit}}.}}
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/831561/.
 
{{obr}}website source
{{!}} commit = 831561
{{!}} view = commit
{{cbr}}.
{{website source
| commit = 831561
| view = commit
}}.
=== File and line number ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/master/tree/download.html#l27.
 
{{obr}}website source
{{!}} path = download.html
{{!}} line = 27
{{cbr}}.
{{website source
| path = download.html
| line = 27
}}.
=== File, line number, and commit ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/f1d540377809fc4bbcd9b8163781576a17e48a0f/tree/download.html#l65.
 
{{obr}}website source
{{!}} path = download.html
{{!}} commit = f1d540377809fc4bbcd9b8163781576a17e48a0f
{{!}} line = 65
{{cbr}}.
{{website source
| commit = f1d540377809fc4bbcd9b8163781576a17e48a0f
| line = 65
}}.
=== Custom label given ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/master/tree/download.html.
 
{{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 ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/master/tree/download.html.
 
{{obr}}website source
{{!}} path = download.html
{{!}} pre = $WEBSITE_SRC
{{cbr}}.
{{website source
| path = download.html
| pre = $WEBSITE_SRC
}}.
=== Full path ===
This is a link to https://sourceforge.net/p/nmr-relax/website/ci/f1d540377809fc4bbcd9b8163781576a17e48a0f/tree/download.html#l65.
 
{{obr}}website source
{{!}} path = download.html
{{!}} line = 65
{{!}} full = 1
{{cbr}}.
{{website source
| line = 65
| full = 1
}}.
=== Git clone ===
{{note|For a simpler interface for this specific example, see {{tl|website clone}}.}}
This is for <code><nowiki>git clone git://git.code.sf.net/p/nmr-relax/website</nowiki></code>.
=== Aliased parameters ===
This is for a link to https://sourceforge.net/p/nmr-relax/website/ci/gh-pages/tree/download.html#l68.
{{obr}}website source
{{!}} f = download.html
{{!}} b = gh-pages
{{!}} l = 68
{{!}} full = 1
{{cbr}}.
{{website source
| f = download.html
| b = gh-pages
| l = 68
| full = 1
}}.
=== Numbered parameters ===
This is for a link to 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,223

edits

Navigation menu