Template:Repo link: Difference between revisions

Jump to navigation Jump to search
Switched to using {{repo link/doc}} for all of the template documentation.
m (Edit of the GitLab 'git web' error message.)
(Switched to using {{repo link/doc}} for all of the template documentation.)
Line 309: Line 309:
--><noinclude>
--><noinclude>


{{Informative template|1=
{{repo link/doc}}
== Goal ==
This is designed to be a master template for creating links or URLs for all types of version control repository.  It can be used directly for full flexibility, or via one of the specific subtemplates listed in [[#Related templates]].


{{inote|This template may add an external link.  You will therefore have to answer an anti-spam security question before your edit is saved.}}
== Usage ==
{{obr}}'''repo link
{{!}} site      =
{{!}} ''cmd''        =
{{!}} ''opt''        =
{{!}} ''protocol''  =
{{!}} ''login''      =
{{!}} ''type''      =
{{!}} ''user''      =
{{!}} ''proj''      =
{{!}} ''repo''      =
{{!}} ''branch''    =
{{!}} ''tag''        =
{{!}} ''path''      =
{{!}} ''commit''    =
{{!}} ''line''      =
{{!}} ''post''      =
{{!}} ''view''      =
{{!}} ''text''      =
{{!}} ''pre''        =
{{!}} ''simplepath'' =
{{!}} ''full''      =
{{cbr}}
All parameters except '''site''' are optional.
; site: Points the template to a repository host:
:* For [[SourceForge]] use either '''s''', '''sf''' or '''sourceforge'''.
:* For [[GitHub]] use either '''gh''', '''gith''' or '''github'''.
:* For [[GitLab]] use either '''gl''', '''gitl''' or '''gitlab'''.
:* For the [[Gitorious]] archive use either '''g''', '''gito''' or '''gitorious'''.
:* For generic repositories, the '''site''' parameter will be interpreted as the domain name.
; cmd: An optional command line tool name + options to prepend to the URL.  For example '''git clone'''.
; opt: Any additional options to show after '''cmd''', if supplied.
: {{inote|Developer note: This is for future non-CLI handling of a standardised set of '''cmd''' parameter values}}
; protocol: The URL protocol, for example '''https''', '''http''', '''git''', '''ssh''', '''svn'''.  This defaults to '''https'''.
; login: The optional user login.
; type: Choose between git or svn and web interface, a direct repository link, or a zip file download.  This can be one of '''git''', '''git web''', '''svn''', '''svn web''', or '''zip'''.  The default is '''git web'''.
: {{inote|Zip archive downloads are currently only supported for GitHub and GitLab repositories.}}
; user: The name of the user page for the open source infrastructure.  This is notably different to the '''login''' parameter.  This will generally have precedence over the '''proj''' parameter.  The user page is treated in the same way as a project name.
; proj: The name of the project, consisting of a grouping of repositories on the open source infrastructure.  This defaults to '''flightgear'''.
; repo: The name of the repository, for example '''fgdata'''.  A project registered on one of the open source infrastructures generally allows for multiple repositories under that project name.  This defaults to '''flightgear'''.
; branch: The git or svn branch name.  As tags are simply branches in SVN repositories, this parameter can also be used for svn tags.  For git tags, simply append <code>/~</code> to the tag name.  This defaults to '''next''' or '''trunk''' for git and svn respectively.
: {{inote|Only used for SourceForge repositories.}}
; tag: Reserved for future use.  This will be used for a situation in which tags and branches are treated differently by an open source infrastructure site.
; path: The file path.
; commit: The commit identifier (git hash or svn revision number).  This defaults to '''next''' and '''HEAD''' for git and svn respectively.
: {{inote|Only used for SourceForge repositories.}}
; line: The line number(s) of the file to display.
:* For SourceForge and the Gitorious archive:  Use a single line number.
:* For GitHub either use:
:** A single line number, for example '''2'''.
:** Two line numbers separated with a hyphen ('''-'''), for example '''3-10'''.
; post: Text to append.  This is forms a set with to the '''cmd''' and '''opt''' parameters.  For example it can represent any command line options that come after the URL.
; view:  View to display:
:* For SourceForge use one of '''tree''', '''log''', '''commit''', or '''rss'''.  The default is '''tree'''.
:* For GitHub use one of '''blob''', '''blame''', '''commit''', '''commits''' or '''raw'''.  The default is '''tree'''.
:* For the Gitorious archive use one of '''summary''', '''shortlog''', '''log''', '''blob''', '''commit''', '''commitdiff''', '''tree''', '''history''', or '''raw'''.  The default is '''blob''' if a path is given, '''commit''' if a commit is given, or '''summary''' otherwise.
; text: Text to display as the link label.  Overrides '''pre'''.
; pre: Prefix to a link label.
; simplepath:  If set, this strips off the repository name from the URL label, leaving just the contents of the ''path'' parameter.
: {{inote|The ''text'' parameter will override this.}}
; full: If set, the full URL will be shown rather than any text label.
== Design ==
In this section, the following notation will be used:
; Angular brackets + lower case text <code><nowiki><xyz></nowiki></code>: Template parameters.
; Angular brackets + upper case text <code><nowiki><XYZ></nowiki></code>: Template constructed text.
; Square brackets <code><nowiki>[xyz]</nowiki></code>: Optional text, only added if the parameter is set.
; Or symbol <code>{{!}}</code>: The value on the left, if present, otherwise the value on the right of the symbol.
=== Overview ===
Independent of the '''site''' parameter, the general design is:
<nowiki><cmd> <opt> [<URL> <TEXT>] <post></nowiki>
Here the square brackets do not denote optional text, but will instead produce a Mediawiki link.  This can be modified by setting '''full = 1''' to produce:
<nowiki><cmd> <opt> <URL> <post></nowiki>
The URL is constructed differently for each of the categories of the '''site''' parameter.
=== Site: SourceForge ===
==== Project vs. developer page ====
For a normal SourceForge project and a SourceForge developer page, the base URL is respectively constructed as:
<nowiki><protocol>://<DOMAIN>/p/<proj>/<repo>/</nowiki>
<nowiki><protocol>://<DOMAIN>/u/<user>/<repo>/</nowiki>
This will be abstracted as:
<nowiki><protocol>://<DOMAIN>/<u|p>/<user|proj>/<repo>/</nowiki>
For the '''git''' and '''svn''' values of the '''type''' parameter, a login is allowed:
<nowiki><protocol>://[<login>@]<DOMAIN>/<u|p>/<user|proj>/<repo>/</nowiki>
==== SourceForge <URL> for 'type=git' ====
For this parameter value, the complete <code><URL></code> value will be:
<nowiki><protocol>://[<login>@]git.code.sf.net/<u|p>/<user|proj>/<repo>/</nowiki>
==== SourceForge <URL> for 'type=git web' ====
For this parameter value, the <code><URL></code> value will be:
<nowiki><protocol>://sourceforge.net/<u|p>/<user|proj>/<repo>/ci/<commit|branch>/<VIEW>/<path>[#l<line>]</nowiki>
The <code><VIEW></code> value for different values of '''view''' is:
; tree:  <code>tree/</code>.
; log: <code>log/?path{{=}}</code>.
; commit: nothing.
If the parameter setting '''view=rss''' is used, a different <code><URL></code> value is produced:
<nowiki><protocol>://sourceforge.net/<u|p>/<user|proj>/<repo>/feed/</nowiki>
==== SourceForge <URL> for 'type=svn' ====
For this parameter value, the <code><URL></code> value will instead be:
<nowiki><protocol>://[<login>@]svn.code.sf.net/<u|p>/<user|proj>/<repo>/<branch>[/<path>][@<commit>]</nowiki>
==== SourceForge <URL> for 'type=svn web' ====
For this parameter value, the <code><URL></code> value will be:
<nowiki><protocol>://sourceforge.net/<u|p>/<user|proj>/<repo>/<commit|HEAD>/<VIEW>/<branch>[/<path>][#l<line>]</nowiki>
The <code><VIEW></code> value for different values of '''view''' is:
; tree:  <code>tree/</code>.
; log: <code>log/?path{{=}}</code>.
If the parameter setting '''view=commit''' is used, a truncated <URL> value is produced:
<nowiki><protocol>://sourceforge.net/<u|p>/<user|proj>/<repo>/<commit|HEAD>/</nowiki>
If the parameter setting '''view=rss''' is used, a different <URL> value is produced:
<nowiki><protocol>://sourceforge.net/<u|p>/<user|proj>/<repo>/feed/</nowiki>
==== SourceForge URL <TEXT> for 'type=git' and 'type=git web' ====
The link text <code><TEXT></code>, if the '''full''' parameter is not set, will be:
<nowiki><user|proj>/<repo>/<commit|branch>[/<path>][#l<line>] <DESC></nowiki>
If the '''simplepath''' parameter is set, this changes to:
<nowiki>[/<path>][#l<line>] <DESC></nowiki>
If the '''pre''' parameter is supplied, this changes to:
<nowiki><pre>[/<path>][#l<line>] <DESC></nowiki>
The RSS feed is a special case in that <code><TEXT></code> will be one of:
<nowiki><user|proj>/<repo> <DESC></nowiki>
<nowiki><pre> <DESC></nowiki>
The description <code><DESC></code> is dependent on the '''view''' parameter:
; tree: Nothing.
; log: <code>log view</code>.
; commit: <code>commit view</code>.
; rss: <code>RSS feed</code>.
The '''text''' parameter trumps all, and <code><TEXT></code> is simply:
<nowiki><text></nowiki>
==== SourceForge URL <TEXT> for 'type=svn' and 'type=svn web' ====
The link text <code><TEXT></code>, if the '''full''' parameter is not set, will be:
<nowiki><user|proj>/<repo>/<branch>[/<path>][#l<line>][@r<commit>] <DESC></nowiki>
If the '''simplepath''' parameter is set, this changes to:
<nowiki>[/<path>][#l<line>][@r<commit>] <DESC></nowiki>
If the '''pre''' parameter is supplied, this changes to:
<nowiki><pre>[/<path>][#l<line>][@r<commit>] <DESC></nowiki>
The RSS feed is a special case in that <code><TEXT></code> will be one of:
<nowiki><user|proj>/<repo> <DESC></nowiki>
<nowiki><pre> <DESC></nowiki>
The description <code><DESC></code> is dependent on the '''view''' parameter:
; tree: Nothing.
; log: <code>log view</code>.
; commit: <code>commit view</code>.
; rss: <code>RSS feed</code>.
The '''text''' parameter trumps all, and <code><TEXT></code> is simply:
<nowiki><text></nowiki>
=== Site: GitHub ===
The base URL for GitHub repositories is:
<nowiki><protocol>://github.com/<user|proj>/<repo></nowiki>
==== GitHub <URL> for 'type=git' ====
For this parameter value, the complete <code><URL></code> value will be:
<nowiki><protocol>://github.com/<user|proj>/<repo>.git</nowiki>
==== GitHub <URL> for 'type=git web' ====
For this parameter value, the <code><URL></code> value will be:
<nowiki><protocol>://github.com/<user|proj>/<repo>/<view>/<commit|branch>[/<path>][#L<line>]</nowiki>
==== GitHub <URL> for 'type=zip' ====
For this parameter value, the zip file URL will be:
<nowiki><protocol>://github.com/<proj>/<repo>/archive/<commit|tag|branch>.zip</nowiki>
If neither a commit, branch, nor tag is specified, the URL will default to:
<nowiki><protocol>://github.com/<proj>/<repo>/archive/master.zip</nowiki>
==== GitHub URL <TEXT> for 'type=git' and 'type=git web' ====
The link text <code><TEXT></code>, if the '''full''' parameter is not set, will be:
<nowiki>github/<user|proj>/<repo>/<commit|branch|HEAD>[/<path>][#L<line>]</nowiki>
If the '''simplepath''' parameter is set, this changes to:
<nowiki>[/<path>][#L<line>]</nowiki>
If the '''pre''' parameter is supplied, this changes to:
<nowiki><pre>[/<path>][#L<line>]</nowiki>
The '''text''' parameter trumps all, and <code><TEXT></code> is simply:
<nowiki><text></nowiki>
==== GitHub URL <TEXT> for 'type=zip' ====
The link text <code><TEXT></code>, if the '''full''' parameter is not set, will be:
<nowiki>github/<user|proj>/<repo>/[<commit|tag|branch>] zip file</nowiki>
If the '''simplepath''' parameter is set, this changes to:
<nowiki> zip file</nowiki>
If the '''pre''' parameter is supplied, this changes to:
<nowiki><pre> zip file</nowiki>
The '''text''' parameter trumps all, and <code><TEXT></code> is simply:
<nowiki><text></nowiki>
=== Site: GitLab ===
The base URL for GitLab repositories is:
<nowiki><protocol>://gitlab.com/<proj>[/<repo>]</nowiki>
==== GitLab <URL> for 'type=git' ====
For this parameter value, the complete <code><URL></code> value will be:
<nowiki><protocol>://gitlab.com/<proj>[/<repo>].git</nowiki>
==== GitLab <URL> for 'type=git web' ====
This is not implemented yet.  Please add new examples to allow this template to be extended.
==== GitLab <URL> for 'type=zip' ====
For this parameter value, the base zip file URL will be:
<nowiki><protocol>://gitlab.com/<proj>/<repo>/repository/archive.zip</nowiki>
If a branch, tag, or commit is specified, this will be added as a query:
<nowiki><protocol>://gitlab.com/<proj>/<repo>/repository/archive.zip[?ref=<commit|tag|branch>]</nowiki>
==== GitLab URL <TEXT> ====
This is not implemented yet.  Please add new examples to allow this template to be extended.
=== Site: Gitorious ===
The Gitorious URLs are predominantly query rather than path based.  And only the <code>https://</code> protocol is supported.  The base URL constructed by this template is:
<nowiki><protocol>://gitorious.org/<proj>/<repo></nowiki>
==== Gitorious <URL> for 'type=git' ====
For this parameter value, the complete <code><URL></code> value will be:
<nowiki><protocol>://gitorious.org/<proj>/<repo>.git</nowiki>
==== Gitorious <URL> for 'type=git web' ====
As the current archival system is based on queries &mdash; the text after the <code>?</code> character &mdash; absolutely any random path after the <code>gitorious.org/</code> domain name can be used.  But, for aesthetics, the project and repository name will be appended by this template.  The <code><URL></code> will be:
<nowiki><protocol>://gitorious.org/<proj>/<repo>?<QUERY>[#l<line>]</nowiki>
The <code><QUERY></code> string consists of parts for the project and repository (<code>p=</code>), the type of view (<code>a=</code>), the path (<code>f=</code>), and the commit, branch or tag (<code>h=</code> or <code>hb=</code>, depending on the view).
The <code><URL></code> fragment for the project and repository is constructed as:
<nowiki><protocol>://gitorious.org/<proj>/<repo>?p=<proj>:<repo>.git</nowiki>
The <code><URL></code> fragment for the view is constructed as:
<nowiki><protocol>://gitorious.org/<proj>/<repo>?a=<VIEW></nowiki>
Where <code><VIEW></code> is the value of the '''view''' parameter, if supplied, with the value of '''raw''' translated to <code>blob_plain</code>.  If not supplied, the value of <code>blob</code> is used if '''path''' is given, <code>commit</code> if '''commit''' is given, or <code>summary</code> otherwise.
The <code><URL></code> fragment for the path is constructed as:
<nowiki><protocol>://gitorious.org/<proj>/<repo>?f=<path></nowiki>
If the '''view''' parameter is set to one of '''blob''', '''raw''', or '''tree''', the <code><URL></code> fragment for the commit, branch or tag is constructed as:
<nowiki><protocol>://gitorious.org/<proj>/<repo>[?hb=<commit>|refs/heads/<branch>]</nowiki>
Otherwise it will be:
<nowiki><protocol>://gitorious.org/<proj>/<repo>[?h=<commit>|refs/heads/<branch>]</nowiki>
In summary, the full web URL will be:
<nowiki><protocol>://gitorious.org/<proj>/<repo>?p=<proj>:<repo>.git;a=<VIEW>[;f=<path>][;<h|hb>=<commit>|refs/heads/<branch>][#l<line>]</nowiki>
==== Gitorious URL <TEXT> ====
The link text <code><TEXT></code>, if the '''full''' parameter is not set, will be:
<nowiki><proj>/<repo>/<commit|branch|HEAD>[/<path>][#l<line>]</nowiki>
If the '''simplepath''' parameter is set, this changes to:
<nowiki>[/<path>][#l<line>]</nowiki>
If the '''pre''' parameter is supplied, this changes to:
<nowiki><pre>[/<path>][#l<line>]</nowiki>
The '''text''' parameter trumps all, and <code><TEXT></code> is simply:
<nowiki><text></nowiki>
=== Site: Generic ===
If the '''site''' parameter does not match one of the know open source infrastructures, then an attempt will be made to create a generic repository link.  The base URL for generic repositories is:
<nowiki><protocol>://[<login>@]<site>/<user|proj>[/<repo>]</nowiki>
==== Generic repository <URL> for 'type=git'====
For this parameter value, the complete <code><URL></code> value will be the base URL.
==== Generic repository <URL> for 'type=git web' ====
This is not implemented yet.  Please add new examples to allow this template to be extended.
==== Generic repository <URL> for 'type=svn' ====
For this parameter value, the complete <code><URL></code> value will be:
<nowiki><protocol>://[<login>@]<site>/<user|proj>[/<repo>]/<branch></nowiki>
The value of '''branch''' defaults to <code>trunk</code>.
==== Generic repository <URL> for 'type=svn web' ====
This is not implemented yet.  Please add new examples to allow this template to be extended.
==== Generic repository URL <TEXT> ====
This is not implemented yet.  Please add new examples to allow this template to be extended.
== Plain text ==
To create a URL or link as plain text and avoid external links, simply use the <code><nowiki>{{#tag:tagname|content}}</nowiki></code> [https://www.mediawiki.org/wiki/Help:Magic_words magic word] construct:
{{obr}}#tag:nowiki{{!}}
  {{obr}}repo link
  {{!}} full = 1
  {{cbr}}
{{cbr}}
{{#tag:nowiki|
  {{repo link
  | full = 1
  }}
}}
== Examples ==
=== SourceForge examples ===
==== FlightGear repository ====
===== The source repository =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/.
{{obr}}repo link
{{!}} site = sf
{{!}} proj = flightgear
{{!}} repo = flightgear
{{!}} text = The flightgear source repository
{{cbr}}.
{{repo link
| site = sf
| proj = flightgear
| repo = flightgear
| text = The flightgear source repository
}}.
===== Git clone =====
This is for <code><nowiki>git clone git://git.code.sf.net/p/flightgear/flightgear flightgear-flightgear</nowiki></code>.
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
  {{!}} site    = sf
  {{!}} cmd      = git clone
  {{!}} protocol = git
  {{!}} repo    = flightgear
  {{!}} type    = git
  {{!}} post    = flightgear-flightgear
  {{!}} full    = 1
{{cbr}}{{cbr}}{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
  | site    = sf
  | cmd      = git clone
  | repo    = flightgear
  | protocol = git
  | type    = git
  | post    = flightgear-flightgear
  | full    = 1
}}}}}}.
===== File with line number =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Main/fg_init.cxx#l1.
{{obr}}repo link
{{!}} site = sf
{{!}} repo = flightgear
{{!}} path = src/Main/fg_init.cxx
{{!}} line = 1
{{cbr}}.
{{repo link
| site = sf
| repo = flightgear
| path = src/Main/fg_init.cxx
| line = 1
}}.
===== File prefixed with $FLIGHTGEAR_SRC =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Main/fg_init.cxx.  The expected link text is "$FLIGHTGEAR_SRC/src/Main/fg_init.cxx".
{{obr}}repo link
{{!}} site = sf
{{!}} repo = flightgear
{{!}} path = src/Main/fg_init.cxx
{{!}} pre  = $FLIGHTGEAR_SRC
{{cbr}}.
{{repo link
| site = sf
| repo = flightgear
| path = src/Main/fg_init.cxx
| pre  = $FLIGHTGEAR_SRC
}}.
===== Branch =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/sportmodel/tree/.
{{obr}}repo link
{{!}} site  = sf
{{!}} repo  = flightgear
{{!}} branch = sportmodel
{{cbr}}.
{{repo link
| site  = sf
| repo  = flightgear
| branch = sportmodel
}}.
===== Tag =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/version/2016.1.1/~/tree/.
{{obr}}repo link
{{!}} site  = sf
{{!}} repo  = flightgear
{{!}} branch = version/2016.1.1/~
{{cbr}}.
{{repo link
| site  = sf
| repo  = flightgear
| branch = version/2016.1.1/~
}}.
===== Tag, history view =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/version/2016.1.1/~/log/?path=.
{{obr}}repo link
{{!}} site  = sf
{{!}} repo  = flightgear
{{!}} branch = version/2016.1.1/~
{{!}} view  = log
{{cbr}}.
{{repo link
| site  = sf
| repo  = flightgear
| branch = version/2016.1.1/~
| view  = log
}}.
===== Commit =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/f88d6418297e250138fda48f5a7d3e51bb3c543d/
{{obr}}repo link
{{!}} site  = sf
{{!}} repo  = flightgear
{{!}} commit = f88d6418297e250138fda48f5a7d3e51bb3c543d
{{!}} view  = commit
{{cbr}}.
{{repo link
| site  = sf
| repo  = flightgear
| commit = f88d6418297e250138fda48f5a7d3e51bb3c543d
| view  = commit
}}.
===== Commit, history view =====
This is a link to https://sourceforge.net/p/flightgear/flightgear/ci/f88d6418297e250138fda48f5a7d3e51bb3c543d/log/?path=
{{obr}}repo link
{{!}} site  = sf
{{!}} repo  = flightgear
{{!}} commit = f88d6418297e250138fda48f5a7d3e51bb3c543d
{{!}} view  = log
{{cbr}}.
{{repo link
| site  = sf
| repo  = flightgear
| commit = f88d6418297e250138fda48f5a7d3e51bb3c543d
| view  = log
}}.
===== Repository clone =====
This is for the command <code><nowiki>git clone git://git.code.sf.net/p/flightgear/flightgear/ flightgear-flightgear</nowiki></code>
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
{{!}} site    = sf
{{!}} cmd      = git clone
{{!}} protocol = git
{{!}} type    = git
{{!}} repo    = flightgear
{{!}} post    = flightgear-flightgear
{{!}} full    = 1
{{cbr}}{{cbr}}{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
| site    = sf
| cmd      = git clone
| protocol = git
| type    = git
| repo    = flightgear
| post    = flightgear-flightgear
| full    = 1
}}}}}}.
Or as plain text:
{{obr}}#tag:nowiki{{!}}{{obr}}repo link
  {{!}} site    = sf
  {{!}} cmd      = git clone
  {{!}} protocol = git
  {{!}} type    = git
  {{!}} repo    = flightgear
  {{!}} post    = flightgear-flightgear
  {{!}} full    = 1
{{cbr}}{{cbr}}.
{{#tag:nowiki|{{repo link
  | site    = sf
  | cmd      = git clone
  | protocol = git
  | type    = git
  | repo    = flightgear
  | post    = flightgear-flightgear
  | full    = 1
}}}}.
==== SimGear repository ====
===== Non-web URL =====
This is a link to ssh://git.code.sf.net/p/flightgear/simgear.
{{obr}}repo link
{{!}} site    = sf
{{!}} protocol = ssh
{{!}} type    = git
{{!}} repo    = simgear
{{!}} full    = 1
{{cbr}}.
{{repo link
| site    = sf
| protocol = ssh
| type    = git
| repo    = simgear
| full    = 1
}}.
===== Simgear RSS feed =====
This is a link to https://sourceforge.net/p/flightgear/simgear/feed.
{{obr}}repo link
{{!}} site = sf
{{!}} repo = simgear
{{!}} view = rss
{{!}} text = Simgear RSS feed
{{cbr}}.
{{repo link
| site = sf
| repo = simgear
| view = rss
| text = Simgear RSS feed
}}.
Or without text:
{{obr}}repo link
{{!}} site  = sf
{{!}} login  = dummy_user                                  <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} repo  = simgear
{{!}} view  = rss
{{!}} branch = branches/release-2016.1                    <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} path  = simgear/                                    <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} commit = f88d6418297e250138fda48f5a7d3e51bb3c543d    <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} line  = 10                                          <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{cbr}}.
{{repo link
| site  = sf
| login  = dummy_user                              <!-- Dummy parameter, not to be used -->
| repo  = simgear
| view  = rss
| branch = branches/release-2016.1                  <!-- Dummy parameter, not to be used -->
| path  = simgear/                                <!-- Dummy parameter, not to be used -->
| commit = f88d6418297e250138fda48f5a7d3e51bb3c543d <!-- Dummy parameter, not to be used -->
| line  = 10                                      <!-- Dummy parameter, not to be used -->
}}.
==== FGAddon repository links ====
===== Branch (HEAD) =====
This is a link for https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/branches/release-3.4.0/Aircraft.
{{obr}}repo link
{{!}} site  = sf
{{!}} type  = svn web
{{!}} repo  = fgaddon
{{!}} branch = branches/release-3.4.0
{{!}} path  = Aircraft
{{!}} text  = FG 3.4 add-on aircraft
{{cbr}}.
{{repo link
| site  = sf
| type  = svn web
| repo  = fgaddon
| branch = branches/release-3.4.0
| path  = Aircraft
| text  = FG 3.4 add-on aircraft
}}.
===== r1001 =====
This is a link for https://sourceforge.net/p/flightgear/fgaddon/1001.
{{obr}}repo link
{{!}} site  = sf
{{!}} type  = svn web
{{!}} repo  = fgaddon
{{!}} commit = 1001
{{!}} view  = commit
{{cbr}}.
{{repo link
| site  = sf
| type  = svn web
| repo  = fgaddon
| commit = 1001
| view  = commit
}}.
===== Trunk (r1000) =====
This is a link for https://sourceforge.net/p/flightgear/fgaddon/1000/tree/trunk/Aircraft.
{{obr}}repo link
{{!}} site  = sf
{{!}} type  = svn web
{{!}} repo  = fgaddon
{{!}} commit = 1000
{{!}} branch = trunk
{{!}} path  = Aircraft
{{cbr}}.
{{repo link
| site  = sf
| type  = svn web
| repo  = fgaddon
| commit = 1000
| branch = trunk
| path  = Aircraft
}}.
===== Trunk, real path =====
This is a link for https://svn.code.sf.net/p/flightgear/fgaddon/trunk.
{{obr}}repo link
{{!}} site  = sf
{{!}} type  = svn
{{!}} repo  = fgaddon
{{!}} branch = trunk
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = sf
| type  = svn
| repo  = fgaddon
| branch = trunk
| full  = 1
}}.
===== Svn checkout =====
This is for returning <code><nowiki>svn co https://svn.code.sf.net/p/flightgear/fgaddon/branches/release-3.4.0/Aircraft/V22-Osprey</nowiki></code>
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
{{!}} site  = sf
{{!}} cmd    = svn co
{{!}} type  = svn
{{!}} repo  = fgaddon
{{!}} branch = branches/release-3.4.0
{{!}} path  = Aircraft/V22-Osprey
{{!}} full  = 1
{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
| site  = sf
| cmd    = svn co
| type  = svn
| repo  = fgaddon
| branch = branches/release-3.4.0
| path  = Aircraft/V22-Osprey
| full  = 1
}}}}}}.
===== Svn trunk checkout =====
This is for returning <code><nowiki>svn co https://svn.code.sf.net/p/flightgear/fgaddon/trunk flightgear-fgaddon</nowiki></code>
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
{{!}} site = sf
{{!}} cmd  = svn co
{{!}} type = svn
{{!}} repo = fgaddon
{{!}} post = flightgear-fgaddon
{{!}} full = 1
{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
| site = sf
| cmd  = svn co
| type = svn
| repo = fgaddon
| post = flightgear-fgaddon
| full = 1
}}}}}}.
===== Svn checkout (trunk@r1000) =====
This is for returning <code><nowiki>svn co https://svn.code.sf.net/p/flightgear/fgaddon/trunk@r1000</nowiki></code>
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
{{!}} site  = sf
{{!}} cmd    = svn co
{{!}} type  = svn
{{!}} repo  = fgaddon
{{!}} commit = 1000
{{!}} full  = 1
{{cbr}}{{cbr}}{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
| site  = sf
| cmd    = svn co
| type  = svn
| repo  = fgaddon
| commit = 1000
| full  = 1
}}}}}}.
===== File and line number link =====
This is for https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Aircraft/14bis/14bis-set.xml#l12.
{{obr}}repo link
{{!}} site      = sf
{{!}} type      = svn web
{{!}} repo      = fgaddon
{{!}} path      = Aircraft/14bis/14bis-set.xml
{{!}} line      = 12
{{!}} branch    = trunk
{{!}} simplepath = 1
{{cbr}}.
{{repo link
| site      = sf
| type      = svn web
| repo      = fgaddon
| path      = Aircraft/14bis/14bis-set.xml
| line      = 12
| branch    = trunk
| simplepath = 1
}}.
===== File prefixed with $FG_AIRCRAFT =====
This is for https://sourceforge.net/p/flightgear/fgaddon/1234/tree/trunk/Aircraft/X15/X15-set.xml.  The expected link text is "$FG_AIRCRAFT/Aircraft/X15/X15-set.xml".
{{obr}}repo link
{{!}} site = sf
{{!}} type = svn web
{{!}} repo = fgaddon
{{!}} path = Aircraft/X15/X15-set.xml
{{!}} pre  = $FG_AIRCRAFT
{{cbr}}.
{{repo link
| site = sf
| type = svn web
| repo = fgaddon
| path = Aircraft/X15/X15-set.xml
| pre  = $FG_AIRCRAFT
}}.
===== File prefixed with $FG_AIRCRAFT and identified by commit =====
This is for https://sourceforge.net/p/flightgear/fgaddon/1234/tree/trunk/Aircraft/X15/X15-set.xml.  The expected link text is "$FG_AIRCRAFT/Aircraft/X15/X15-set.xml@1234".
{{obr}}repo link
{{!}} site  = sf
{{!}} type  = svn web
{{!}} repo  = fgaddon
{{!}} path  = Aircraft/X15/X15-set.xml
{{!}} commit = 1234
{{!}} pre    = $FG_AIRCRAFT
{{cbr}}.
{{repo link
| site  = sf
| type  = svn web
| repo  = fgaddon
| path  = Aircraft/X15/X15-set.xml
| commit = 1234
| pre    = $FG_AIRCRAFT
}}.
===== svn import =====
This should give:
<syntaxhighlight lang="bash">
svn import DaSH/ svn+ssh://<username>@svn.code.sf.net/p/flightgear/fgaddon/trunk/Aircraft/ -m "Initial import of the DaSH human powered aircraft.\n\nFor details see the forum thread at http://forum.flightgear.org/viewtopic.php?f=4&t=24495 ."
</syntaxhighlight>
{{obr}}#tag:syntaxhighlight{{!}}
{{obr}}repo link
  {{!}} cmd      = svn import DaSH/
  {{!}} repo    = fgaddon
  {{!}} protocol = svn+ssh
  {{!}} login    = <username>
  {{!}} type    = svn
  {{!}} path    = Aircraft/
  {{!}} post    = -m "Initial import of the DaSH human powered aircraft.\n\nFor details see the forum thread at <nowiki>http://forum.flightgear.org/viewtopic.php?f=4&t=24495</nowiki> ."
  {{!}} full    = 1
{{cbr}}
{{!}} lang = "sh"
{{cbr}}
{{#tag:syntaxhighlight|
{{repo link
  | cmd      = svn import DaSH/
  | repo    = fgaddon
  | protocol = svn+ssh
  | login    = <username>
  | type    = svn
  | path    = Aircraft/
  | post    = -m "Initial import of the DaSH human powered aircraft.\n\nFor details see the forum thread at http://forum.flightgear.org/viewtopic.php?f=4&t=24495 ."
  | full    = 1
}}
| lang = "sh"
}}
===== FGAddon RSS feed =====
This is a link to https://sourceforge.net/p/flightgear/fgaddon/feed.
{{obr}}repo link
{{!}} site  = sf
{{!}} login  = dummy_user                  <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} repo  = fgaddon
{{!}} type  = svn web
{{!}} view  = rss
{{!}} branch = branches/release-2016.1    <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} path  = Aircraft/                  <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} commit = 1234                        <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{!}} line  = 200                        <nowiki><!-- Dummy parameter, not to be used --></nowiki>
{{cbr}}.
{{repo link
| site  = sf
| login  = dummy_user                  <!-- Dummy parameter, not to be used -->
| repo  = fgaddon
| type  = svn web
| view  = rss
| branch = branches/release-2016.1    <!-- Dummy parameter, not to be used -->
| path  = Aircraft/                  <!-- Dummy parameter, not to be used -->
| commit = 1234                        <!-- Dummy parameter, not to be used -->
| line  = 200                        <!-- Dummy parameter, not to be used -->
}}.
==== User fork of the FlightGear repository ====
This is for https://sourceforge.net/u/edauvergne/code-py-ogel/ci/python/tree/test.py#l23.
{{obr}}repo link
{{!}} site  = sf
{{!}} repo  = code-py-ogel
{{!}} branch = python
{{!}} path  = test.py
{{!}} line  = 23
{{!}} user  = edauvergne
{{cbr}}.
{{repo link
| site  = sf
| repo  = code-py-ogel
| branch = python
| path  = test.py
| line  = 23
| user  = edauvergne
}}.
=== GitHub examples ===
==== User repository ====
{{obr}}repo link
{{!}} site = gh
{{!}} user = hamzaalloush
{{!}} repo = fgradar-clone
{{cbr}}.
{{repo link
| site = gh
| user = hamzaalloush
| repo = fgradar-clone
}}.
==== User repository prefixed with $FG_ROOT ====
{{obr}}repo link
{{!}} site  = gith
{{!}} user  = bhugh
{{!}} repo  = Bombable
{{!}} line  = 30
{{!}} path  = Aircraft/A-10-Bombable/A-10-Bombable-set.xml
{{!}} pre  = $FG_ROOT
{{cbr}}.
{{repo link
| site  = gith
| user  = bhugh
| repo  = Bombable
| line  = 30
| path  = Aircraft/A-10-Bombable/A-10-Bombable-set.xml
| pre  = $FG_ROOT
}}.
==== The c172p-detailed repository ====
This is for the c172p-detailed repository https://github.com/Juanvvc/c172p-detailed/tree/master (this is the same as https://github.com/Juanvvc/c172p-detailed).
{{obr}}repo link
{{!}} site = gh
{{!}} user = Juanvvc
{{!}} repo = c172p-detailed
{{!}} text = A high detailed version of the C172P aircraft for FlightGear
{{cbr}}
{{repo link
| site = gh
| user = Juanvvc
| repo = c172p-detailed
| text = A high detailed version of the C172P aircraft for FlightGear
}}.
==== Git clone ====
This is for cloning the c172p-detailed aircraft with <code><nowiki>git clone https://github.com/Juanvvc/c172p-detailed.git</nowiki></code>.
{{obr}}#tag:code {{!}} {{obr}}#tag:nowiki {{!}}
  {{obr}}repo link
  {{!}} site = gh
  {{!}} cmd  = git clone
  {{!}} user = Juanvvc
  {{!}} repo = c172p-detailed
  {{!}} type = git
  {{!}} full = 1
  {{cbr}}
{{cbr}} {{cbr}}
{{#tag:code | {{#tag:nowiki |
  {{repo link
  | site = gh
  | cmd  = git clone
  | user = Juanvvc
  | repo = c172p-detailed
  | type = git
  | full = 1
  }}
}} }}
==== File with line number ====
This is for https://github.com/Juanvvc/c172p-detailed/blob/release/2016.1/c172p-set.xml#L49.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = blob
{{!}} branch = release/2016.1
{{!}} path  = c172p-set.xml
{{!}} line  = 49
{{!}} text  = The c172p-detailed authors
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = blob
| branch = release/2016.1
| path  = c172p-set.xml
| line  = 49
| text  = The c172p-detailed authors
}}.
==== Raw view ====
This is for https://github.com/Juanvvc/c172p-detailed/raw/master/c172p-set.xml, which will redirect itself to https://raw.githubusercontent.com/Juanvvc/c172p-detailed/master/c172p-set.xml.
{{obr}}repo link
{{!}} site = gh
{{!}} user = Juanvvc
{{!}} repo = c172p-detailed
{{!}} view = raw
{{!}} path = c172p-set.xml
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gh
| user = Juanvvc
| repo = c172p-detailed
| view = raw
| path = c172p-set.xml
| full = 1
}}.
==== Commit ====
This is for https://github.com/Juanvvc/c172p-detailed/commit/df6f10608116674643a3cc4bf18819eeee016d42.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = commit
{{!}} commit = df6f10608116674643a3cc4bf18819eeee016d42
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = commit
| commit = df6f10608116674643a3cc4bf18819eeee016d42
}}.
==== Tree view at a given commit ====
This is for https://github.com/Juanvvc/c172p-detailed/tree/df6f10608116674643a3cc4bf18819eeee016d42.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = tree
{{!}} commit = df6f10608116674643a3cc4bf18819eeee016d42
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = tree
| commit = df6f10608116674643a3cc4bf18819eeee016d42
}}.
==== Main views ====
===== History view =====
This is for https://github.com/Juanvvc/c172p-detailed/commits/master.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = commits
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = commits
}}.
===== History view from a commit =====
This is for https://github.com/Juanvvc/c172p-detailed/commits/df6f10608116674643a3cc4bf18819eeee016d42.
{{obr}}repo link
{{!}} site  = gh
{{!}} user  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} view  = commits
{{!}} commit = df6f10608116674643a3cc4bf18819eeee016d42
{{cbr}}.
{{repo link
| site  = gh
| user  = Juanvvc
| repo  = c172p-detailed
| view  = commits
| commit = df6f10608116674643a3cc4bf18819eeee016d42
}}.
==== Zip archive download ====
===== Default =====
This is for https://github.com/Juanvvc/c172p-detailed/archive/master.zip.
{{obr}}repo link
{{!}} site = github
{{!}} proj = Juanvvc
{{!}} repo = c172p-detailed
{{!}} type = zip
{{!}} full = 1
{{cbr}}.
{{repo link
| site = github
| proj = Juanvvc
| repo = c172p-detailed
| type = zip
| full = 1
}}.
===== Branch =====
This is for https://github.com/Juanvvc/c172p-detailed/archive/release/2016.1.zip.
{{obr}}repo link
{{!}} site  = github
{{!}} proj  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} branch = release/2016.1
{{!}} type  = zip
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = github
| proj  = Juanvvc
| repo  = c172p-detailed
| branch = release/2016.1
| type  = zip
| full  = 1
}}.
===== Commit =====
This is for https://github.com/Juanvvc/c172p-detailed/archive/c9cef81a899201802b32109c43ca686bbeffdb42.zip.
{{obr}}repo link
{{!}} site  = github
{{!}} proj  = Juanvvc
{{!}} repo  = c172p-detailed
{{!}} commit = c9cef81a899201802b32109c43ca686bbeffdb42
{{!}} type  = zip
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = github
| proj  = Juanvvc
| repo  = c172p-detailed
| commit = c9cef81a899201802b32109c43ca686bbeffdb42
| type  = zip
| full  = 1
}}.
=== GitLab examples ===
==== The FlightGear Multiplayer server software ====
This should produce <code><nowiki>git clone https://gitlab.com/fgms/fgms-0-x.git</nowiki></code>.
{{obr}}#tag:syntaxhighlight{{!}}
{{obr}}repo link
  {{!}} site = gitlab
  {{!}} cmd  = git clone
  {{!}} proj = fgms
  {{!}} repo = fgms-0-x
  {{!}} type = git
  {{!}} full = 1
{{cbr}}
{{!}} lang = "sh"
{{cbr}}
{{#tag:syntaxhighlight|
{{repo link
  | site  = gitlab
  | cmd  = git clone
  | proj  = fgms
  | repo  = fgms-0-x
  | type  = git
  | full  = 1
}}
| lang = "sh"
}}
==== Zip archive download ====
This is for https://gitlab.com/extra500/extra500/repository/archive.zip?ref=FG/2016.1.
{{obr}}repo link
{{!}} site  = gitlab
{{!}} proj  = extra500
{{!}} repo  = extra500
{{!}} branch = FG/2016.1
{{!}} type  = zip
{{!}} full  = 1
{{cbr}}
{{repo link
| site  = gitlab
| proj  = extra500
| repo  = extra500
| branch = FG/2016.1
| type  = zip
| full  = 1
}}
=== Gitorious archive examples ===
{{note|The Gitorious open source infrastructure is locked in a read-only archived state.}}
==== The old FlightGear source repository ====
This is for the archived flightgear repository at https://gitorious.org/fg/flightgear.git.  The automatically created URL, which is equivalent, should be https://gitorious.org/fg/flightgear?p=fg:flightgear.git;a=summary.
{{obr}}repo link
{{!}} site = gito
{{!}} proj = fg
{{!}} repo = flightgear
{{!}} text = The archived flightgear source code repository at Gitorious
{{cbr}}.
{{repo link
| site = gito
| proj = fg
| repo = flightgear
| text = The archived flightgear source code repository at Gitorious
}}.
==== The historic fgdata repository ====
This is for the historic repository https://gitorious.org/fg/fgdata.git.  The automatically created URL, which is equivalent, should be https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=summary.
{{obr}}repo link
{{!}} site = gito
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} text = The archived fgdata repository at Gitorious, with full history from 2000-2015
{{cbr}}.
{{repo link
| site = gito
| proj = fg
| repo = fgdata
| text = The archived fgdata repository at Gitorious, with full history from 2000-2015
}}.
==== Git clone ====
This is for cloning the historic fgdata repository with <code><nowiki>git clone https://gitorious.org/fg/fgdata.git</nowiki></code>.
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
  {{!}} site    = gito
  {{!}} cmd      = git clone
  {{!}} proj    = fg
  {{!}} repo    = fgdata
  {{!}} type    = git
  {{!}} full    = 1
{{cbr}}{{cbr}}{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
  | site    = gito
  | cmd      = git clone
  | proj    = fg
  | repo    = fgdata
  | type    = git
  | full    = 1
}}}}}}.
==== File with line number ====
This is for https://gitorious.org/fg/hoorays-fgdata?p=fg:hoorays-fgdata.git;a=blob;f=Nasal/ai/ai.nas;hb=refs/heads/topics/scriptable-ai-submodule#l1.
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = fg
{{!}} repo  = hoorays-fgdata
{{!}} view  = blob
{{!}} branch = topics/scriptable-ai-submodule
{{!}} path  = Nasal/ai/ai.nas
{{!}} line  = 1
{{!}} text  = Scripted AI Objects repo
{{cbr}}.
{{repo link
| site  = gito
| proj  = fg
| repo  = hoorays-fgdata
| view  = blob
| branch = topics/scriptable-ai-submodule
| path  = Nasal/ai/ai.nas
| line  = 1
| text  = Scripted AI Objects repo
}}.
==== File prefixed with $NASAL_SRC ====
This is for https://gitorious.org/fg/hoorays-fgdata?p=fg:hoorays-fgdata.git;a=blob;f=Nasal/ai/ai.nas;hb=refs/heads/topics/scriptable-ai-submodule.
{{obr}}repo link
{{!}} site      = gito
{{!}} proj      = fg
{{!}} repo      = hoorays-fgdata
{{!}} view      = blob
{{!}} branch    = topics/scriptable-ai-submodule
{{!}} path      = Nasal/ai/ai.nas
{{!}} pre        = $NASAL_SRC
{{!}} simplepath = 1
{{cbr}}.
{{repo link
| site      = gito
| proj      = fg
| repo      = hoorays-fgdata
| view      = blob
| branch    = topics/scriptable-ai-submodule
| path      = Nasal/ai/ai.nas
| pre        = $NASAL_SRC
| simplepath = 1
}}.
===== Raw view =====
This is for https://gitorious.org/fg/hoorays-fgdata?p=fg:hoorays-fgdata.git;a=blob_plain;f=Nasal/ai/ai.nas;hb=refs/heads/topics/scriptable-ai-submodule.
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = fg
{{!}} repo  = hoorays-fgdata
{{!}} view  = raw
{{!}} branch = topics/scriptable-ai-submodule
{{!}} path  = Nasal/ai/ai.nas
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = gito
| proj  = fg
| repo  = hoorays-fgdata
| view  = raw
| branch = topics/scriptable-ai-submodule
| path  = Nasal/ai/ai.nas
| full  = 1
}}.
==== Commit ====
This is for https://gitorious.org/nasal-standalone/nasal-experiments?p=nasal-standalone:nasal-experiments.git;a=commit;h=9b2d59c316d03b83cfb4352a38b865aa29f4c280.
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = nasal-standalone
{{!}} repo  = nasal-experiments
{{!}} view  = commit
{{!}} commit = 9b2d59c316d03b83cfb4352a38b865aa29f4c280
{{!}} pre    = $NASAL_SRC
{{cbr}}.
{{repo link
| site  = gito
| proj  = nasal-standalone
| repo  = nasal-experiments
| view  = commit
| commit = 9b2d59c316d03b83cfb4352a38b865aa29f4c280
| pre    = $NASAL_SRC
}}.
==== Commit with file path ====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=blob;f=Nasal/canvas/map/TFC.lcontroller;hb=c78b2f936891bffad49e27d84d952a0d45540eef
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = fg
{{!}} repo  = fgdata
{{!}} path  = Nasal/canvas/map/TFC.lcontroller
{{!}} view  = blob
{{!}} commit = c78b2f936891bffad49e27d84d952a0d45540eef
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = gito
| proj  = fg
| repo  = fgdata
| path  = Nasal/canvas/map/TFC.lcontroller
| view  = blob
| commit = c78b2f936891bffad49e27d84d952a0d45540eef
| full  = 1
}}.
==== Commitdiff ====
This is for https://gitorious.org/nasal-standalone/nasal-experiments?p=nasal-standalone:nasal-experiments.git;a=commitdiff;h=9b2d59c316d03b83cfb4352a38b865aa29f4c280.
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = nasal-standalone
{{!}} repo  = nasal-experiments
{{!}} view  = commitdiff
{{!}} commit = 9b2d59c316d03b83cfb4352a38b865aa29f4c280
{{!}} pre    = $NASAL_SRC
{{cbr}}.
{{repo link
| site  = gito
| proj  = nasal-standalone
| repo  = nasal-experiments
| view  = commitdiff
| commit = 9b2d59c316d03b83cfb4352a38b865aa29f4c280
| pre    = $NASAL_SRC
}}.
==== Main views ====
===== Summary view =====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=summary.
{{obr}}repo link
{{!}} site = gito
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} view = summary
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gito
| proj = fg
| repo = fgdata
| view = summary
| full = 1
}}.
===== Shortlog view =====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=shortlog.
{{obr}}repo link
{{!}} site = gito
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} view = shortlog
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gito
| proj = fg
| repo = fgdata
| view = shortlog
| full = 1
}}.
===== Log view =====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=log;h=4c03a4968d2844c9c8ba734116da3478a1bebb38.
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = fg
{{!}} repo  = fgdata
{{!}} view  = log
{{!}} commit = 4c03a4968d2844c9c8ba734116da3478a1bebb38
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = gito
| proj  = fg
| repo  = fgdata
| view  = log
| commit = 4c03a4968d2844c9c8ba734116da3478a1bebb38
| full  = 1
}}.
===== Log with branch =====
This is for https://gitorious.org/fg/hoorays-flightgear?p=fg:hoorays-flightgear.git;a=log;h=refs/heads/topics/ada-support.
{{obr}}repo link
{{!}} site  = gito
{{!}} proj  = fg
{{!}} repo  = hoorays-flightgear
{{!}} view  = log
{{!}} branch = topics/ada-support
{{!}} full  = 1
{{cbr}}.
{{repo link
| site  = gito
| proj  = fg
| repo  = hoorays-flightgear
| view  = log
| branch = topics/ada-support
| full  = 1
}}.
=== Generic repository handling ===
==== OpenSceneGraph svn repository ====
This should create <code><nowiki>svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk osg</nowiki></code>.
{{obr}}#tag:code{{!}}{{obr}}#tag:nowiki{{!}}{{obr}}repo link
{{!}} site    = svn.openscenegraph.org
{{!}} cmd      = svn co
{{!}} protocol = http
{{!}} type    = svn
{{!}} proj    = osg
{{!}} repo    = OpenSceneGraph
{{!}} post    = osg
{{!}} full    = 1
{{cbr}}{{cbr}}{{cbr}}.
{{#tag:code|{{#tag:nowiki|{{repo link
| site    = svn.openscenegraph.org
| cmd      = svn co
| protocol = http
| type    = svn
| proj    = osg
| repo    = OpenSceneGraph
| post    = osg
| full    = 1
}}}}}}.
== Related templates ==
{{repo link/doc related}}
== See also ==
* [[:Category:Link templates]]
}}
[[Category:Link templates]]
</noinclude>
</noinclude>

Navigation menu