41,087 bytes added,
13:26, 15 July 2016 {{Informative template|1=
== Goal ==
This is designed to be a master template for creating links or URLs for all types of online version control repository. This includes for [[SourceForge]], [[GitHub]], [[GitLab]], the [[Gitorious]] archive, and basic support for generic online repositories. The detailed documentation below, as well as the examples, will help to understand the [[#Related templates|full family of subtemplates]] that are based on the master {{obr}}repo link{{cbr}} template.
Although it can be used directly for full flexibility, this is not recommended. Rather the [[#Related templates|large family of subtemplates]] that are interfaces to this master template should be used. This allows for better long-term management of the wiki (for example, by using the [[Special:WhatLinksHere]] page to find all usages of the subtemplates).
{{inote|This template may add an external link. You may therefore have to answer an anti-spam security question before your edit is saved.}}
{{repo link/doc usage
| template = repo link
| site = 1
| cmd = 1
| opt = 1
| protocol = 1
| login = 1
| type = 1
| user = 1
| proj = 1
| repo = 1
| branch = 1
| tag = 1
| path = 1
| commit = 1
| line = 1
| post = 1
| view = 1
| text = 1
| pre = 1
| simplepath = 1
| full = 1
| intro = All parameters except '''site''' are optional.
| sf = 1
| gh = 1
| gl = 1
| go = 1
| svn = 1
| git = 1
}}
{{repo link/doc design intro}}
{{repo link/doc design overview | site=1}}
{{repo link/doc design sourceforge}}
{{repo link/doc design github}}
{{repo link/doc design gitlab}}
{{repo link/doc design gitorious}}
{{repo link/doc design generic}}
{{repo link/doc plain text}}
== 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
{{!}} tag = version/2016.1.1/~
{{cbr}}.
{{repo link
| site = sf
| repo = flightgear
| tag = 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
{{!}} tag = version/2016.1.1/~
{{!}} view = log
{{cbr}}.
{{repo link
| site = sf
| repo = flightgear
| tag = 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
}}.
Or:
{{obr}}repo link
{{!}} site = sf
{{!}} repo = flightgear
{{!}} commit = f88d6418297e250138fda48f5a7d3e51bb3c543d
{{cbr}}.
{{repo link
| site = sf
| repo = flightgear
| commit = f88d6418297e250138fda48f5a7d3e51bb3c543d
}}.
===== 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 -->
}}.
==== FGData repository links ====
===== $FG_ROOT prefix and a commit =====
{{obr}}repo link
{{!}} site = sf
{{!}} type = git web
{{!}} repo = fgdata
{{!}} path = AI/nimitz_demo.xml
{{!}} commit = 7b53516a9619f598721d7ee34d6a446367e9d9cd
{{!}} line = 85
{{!}} pre = $FG_ROOT
{{cbr}}
{{repo link
| site = sf
| type = git web
| repo = fgdata
| path = AI/nimitz_demo.xml
| commit = 7b53516a9619f598721d7ee34d6a446367e9d9cd
| line = 85
| pre = $FG_ROOT
}}
==== FGMeta repository ====
===== Raw view =====
This is a link to https://sourceforge.net/p/flightgear/fgmeta/ci/next/tree/download_and_compile.sh?format=raw.
{{obr}}repo link
{{!}} site = sf
{{!}} repo = fgmeta
{{!}} path = download_and_compile.sh
{{!}} view = raw
{{!}} full = 1
{{cbr}}.
{{repo link
| site = sf
| repo = fgmeta
| path = download_and_compile.sh
| view = raw
| full = 1
}}.
==== FGAddon repository links ====
===== Branch =====
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
}}.
===== Tag =====
This is a link for https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/branches/release-3.4.0/Aircraft. Although <code>branches/relax-3.4.0</code> is a branch, this tests the tag parameter.
{{obr}}repo link
{{!}} site = sf
{{!}} type = svn web
{{!}} repo = fgaddon
{{!}} tag = branches/release-3.4.0
{{!}} path = Aircraft
{{!}} full = 1
{{cbr}}.
{{repo link
| site = sf
| type = svn web
| repo = fgaddon
| tag = branches/release-3.4.0
| path = Aircraft
| full = 1
}}.
===== 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
}}.
===== r1001, default view =====
This is a link for https://sourceforge.net/p/flightgear/fgaddon/1001.
{{obr}}repo link
{{!}} site = sf
{{!}} type = svn web
{{!}} repo = fgaddon
{{!}} commit = 1001
{{cbr}}.
{{repo link
| site = sf
| type = svn web
| repo = fgaddon
| commit = 1001
}}.
===== 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 ===
==== Base site URL ====
This is for the base URL https://github.com.
{{obr}}repo link{{!}}site=gh{{cbr}}.
{{repo link|site=gh}}.
{{obr}}repo link{{!}}site=gh{{!}}full=1{{cbr}}.
{{repo link|site=gh|full=1}}.
==== 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 ===
==== Base site URL ====
This is for the base URL https://gitlab.com.
{{obr}}repo link{{!}}site=gl{{cbr}}.
{{repo link|site=gl}}.
{{obr}}repo link{{!}}site=gl{{!}}full=1{{cbr}}.
{{repo link|site=gl|full=1}}.
==== User repository ====
This is for https://gitlab.com/emilianh/Lockheed-L10-Electra.
{{obr}}repo link
{{!}} site = gl
{{!}} user = emilianh
{{!}} repo = Lockheed-L10-Electra
{{cbr}}
{{repo link
| site = gl
| user = emilianh
| repo = Lockheed-L10-Electra
}}
Or:
{{obr}}repo link
{{!}} site = gl
{{!}} user = emilianh
{{!}} repo = Lockheed-L10-Electra
{{!}} full = 1
{{cbr}}
{{repo link
| site = gl
| user = emilianh
| repo = Lockheed-L10-Electra
| full = 1
}}
==== 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"
}}
==== File ====
This is for https://gitlab.com/fg-radi/osm2city/blob/master/osm2city.py.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = fg-radi
{{!}} repo = osm2city
{{!}} path = osm2city.py
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| proj = fg-radi
| repo = osm2city
| path = osm2city.py
| full = 1
}}.
==== File and a branch ====
This is for https://gitlab.com/tortoisegit/tortoisegit/blob/REL_1.8.16.0_EXTERNAL/release.txt.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = tortoisegit
{{!}} repo = tortoisegit
{{!}} branch = REL_1.8.16.0_EXTERNAL
{{!}} path = release.txt
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| proj = tortoisegit
| repo = tortoisegit
| branch = REL_1.8.16.0_EXTERNAL
| path = release.txt
| full = 1
}}.
==== File and a commit ====
This is for https://gitlab.com/extra500/extra500/blob/20ac59/extra500-set.xml.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = extra500
{{!}} repo = extra500
{{!}} commit = 20ac59ad
{{!}} path = extra500-set.xml
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| proj = extra500
| repo = extra500
| commit = 20ac59ad
| path = extra500-set.xml
| full = 1
}}.
==== File with line number ====
This is for https://gitlab.com/mdanil/Tu-144/blob/master/Models/Tu-144.xml#L8-14.
{{obr}}repo link
{{!}} site = gitlab
{{!}} user = mdanil
{{!}} repo = Tu-144
{{!}} view = blob
{{!}} branch = master
{{!}} path = Models/Tu-144.xml
{{!}} line = 8-14
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| user = mdanil
| repo = Tu-144
| view = blob
| branch = master
| path = Models/Tu-144.xml
| line = 8-14
| full = 1
}}.
==== Raw view ====
This is for https://gitlab.com/extra500/extra500/raw/20ac59/extra500-set.xml.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = extra500
{{!}} repo = extra500
{{!}} view = raw
{{!}} commit = 20ac59
{{!}} path = extra500-set.xml
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| proj = extra500
| repo = extra500
| view = raw
| commit = 20ac59
| path = extra500-set.xml
| full = 1
}}.
==== Commit ====
This is for https://gitlab.com/extra500/extra500/commit/20ac59ad.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = extra500
{{!}} repo = extra500
{{!}} view = commit
{{!}} commit = 20ac59ad
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| proj = extra500
| repo = extra500
| view = commit
| commit = 20ac59ad
| full = 1
}}.
==== Tree view at a given commit ====
This is for https://gitlab.com/extra500/extra500/tree/20ac59ad.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = extra500
{{!}} repo = extra500
{{!}} view = tree
{{!}} commit = 20ac59ad
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gitlab
| proj = extra500
| repo = extra500
| view = tree
| commit = 20ac59ad
| full = 1
}}.
==== Main views ====
===== History view =====
This is for https://gitlab.com/mailman/mailman/commits/master.
{{obr}}repo link
{{!}} site = gl
{{!}} user = mailman
{{!}} repo = mailman
{{!}} view = commits
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gl
| user = mailman
| repo = mailman
| view = commits
| full = 1
}}.
===== History view from a commit =====
This is for https://gitlab.com/mailman/mailman/commits/1236a9cf.
{{obr}}repo link
{{!}} site = gl
{{!}} user = mailman
{{!}} repo = mailman
{{!}} view = commits
{{!}} commit = 1236a9cf
{{!}} full = 1
{{cbr}}.
{{repo link
| site = gl
| user = mailman
| repo = mailman
| view = commits
| commit = 1236a9cf
| full = 1
}}.
==== 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
}}
==== Zip archive download with tag ====
This is for https://gitlab.com/emilianh/IAR80/repository/archive.zip?ref=latest.
{{obr}}repo link
{{!}} site = gitlab
{{!}} proj = emilianh
{{!}} repo = IAR80
{{!}} tag = latest
{{!}} type = zip
{{!}} full = 1
{{cbr}}
{{repo link
| site = gitlab
| proj = emilianh
| repo = IAR80
| tag = latest
| type = zip
| full = 1
}}
=== Gitorious archive examples ===
{{note|The Gitorious open source infrastructure is locked in a read-only archived state.}}
==== Base site URL ====
This is for the base URL https://gitorious.org.
{{obr}}repo link{{!}}site=go{{cbr}}.
{{repo link|site=go}}.
{{obr}}repo link{{!}}site=go{{!}}full=1{{cbr}}.
{{repo link|site=go|full=1}}.
==== 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
}}.
==== File and branch in the historic fgdata repository ====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=blob;f=Aircraft-uiuc/Cessna172/aircraft.dat;hb=refs/heads/release/3.2.0.
{{obr}}repo link
{{!}} site = gito
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} path = Aircraft-uiuc/Cessna172/aircraft.dat
{{!}} branch = release/3.2.0
{{!}} full = 1
{{cbr}}
{{repo link
| site = gito
| proj = fg
| repo = fgdata
| path = Aircraft-uiuc/Cessna172/aircraft.dat
| branch = release/3.2.0
| full = 1
}}
==== File and tag in the historic fgdata repository ====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=blob;f=Aircraft-uiuc/Cessna172/aircraft.dat;hb=refs/tags/version/3.4.0.
{{obr}}repo link
{{!}} site = gito
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} path = Aircraft-uiuc/Cessna172/aircraft.dat
{{!}} tag = version/3.4.0/~
{{!}} full = 1
{{cbr}}
{{repo link
| site = gito
| proj = fg
| repo = fgdata
| path = Aircraft-uiuc/Cessna172/aircraft.dat
| tag = version/3.4.0/~
| full = 1
}}
==== 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
}}.
==== Branch ====
This is for https://gitorious.org/fg/toms-fgdata?p=fg:toms-fgdata.git;a=shortlog;h=refs/heads/canvas-gui-demo.
{{obr}}repo link
{{!}} site = go
{{!}} proj = fg
{{!}} repo = toms-fgdata
{{!}} branch = canvas-gui-demo
{{!}} full = 1
{{cbr}}.
{{repo link
| site = go
| proj = fg
| repo = toms-fgdata
| branch = canvas-gui-demo
| 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
}}.
==== Merge requests ====
===== Default view =====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=commit;h=refs/merge-requests/190.
{{obr}}repo link
{{!}} site = go
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} mr = merge-requests/190
{{!}} full = 1
{{cbr}}.
{{repo link
| site = go
| proj = fg
| repo = fgdata
| mr = 190
| full = 1
}}.
===== Commit view =====
This is for https://gitorious.org/fg/fgdata?p=fg:fgdata.git;a=commit;h=refs/merge-requests/190.
{{obr}}repo link
{{!}} site = go
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} view = commit
{{!}} mr = merge-requests/190
{{cbr}}.
{{repo link
| site = go
| proj = fg
| repo = fgdata
| view = commit
| mr = 190
}}.
Or as a URL:
{{obr}}repo link
{{!}} site = go
{{!}} proj = fg
{{!}} repo = fgdata
{{!}} view = commit
{{!}} mr = merge-requests/190
{{!}} full = 1
{{cbr}}.
{{repo link
| site = go
| proj = fg
| repo = fgdata
| view = commit
| mr = 190
| 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
}}}}}}.
==== OpenSceneGraph branch and file ====
This should create <code><nowiki>svn co http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4/src osg_src</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
{{!}} branch = branches/OpenSceneGraph-3.4
{{!}} path = src
{{!}} post = osg_src
{{!}} 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
| branch = branches/OpenSceneGraph-3.4
| path = src
| post = osg_src
| full = 1
}}}}}}.
== Related templates ==
{{repo link/doc related}}
}}
[[Category:Repository link templates]]