Changes

Jump to navigation Jump to search

Template:Repo link/doc infrastructure url

2,534 bytes added, 11:19, 25 October 2017
Creation of the {{repo link/doc infrastructure url}} template. This is from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Repo_link/doc_infrastructure_url&oldid=97038.
{{Informative template|1=
__NOTOC__ {{#ifeq: {{{go|}}} | 1 | {{note|The Gitorious open source infrastructure is locked in a read-only archived state.}}}}
== Goal ==
This template is for creating direct URLs for the content of the version control repositories of the [[{{{label|MISSING}}}]] open source infrastructure. This is equivalent to the {{tl|{{{site|MISSING}}} source}} template with the {{param|full}} parameter set to {{param||1}}. It is a subtemplate of the master {{tl|repo link}} template designed to be specific for the {{{label|MISSING}}} repositories. {{#ifeq: {{{sf|}}} | 1 | {{inote|If you wish to reference one of the relax repositories, instead you should use the [[#Related templates|repository specific {{obr}}'''* url'''{{cbr}} subtemplates]] listed below.}} }}

{{repo link/doc usage
| template = {{{site|MISSING}}} url
| cmd = 1
| opt = 1
| protocol = {{{protocol|0}}}
| login = {{{login|0}}}
| type = 1
| user = {{{user|0}}} | short_user = u | pos_user = 1 | stat_user = mandatory
| proj = 1 | short_proj = p | pos_proj = 1 | stat_proj = mandatory
| repo = 1 | short_repo = r | pos_repo = 2 | stat_repo = mandatory
| branch = 1 | short_branch = b | pos_branch = 3
| tag = 1 | short_tag = t
| path = 1 | short_path = f | pos_path = 4
| commit = 1 | short_commit = c | pos_commit = 5
| line = 1 | short_line = l
| post = 1
| view = 1 | short_view = v
| intro =
{{#ifeq: {{{user|}}} | 1
| Either the '''user''' or '''proj''' parameter
| The '''proj''' parameter
}}, as well as the '''repo''' parameter, must be supplied. All other parameters are optional.
| sf = {{{sf|0}}}
| gh = {{{gh|0}}}
| gl = {{{gl|0}}}
| go = {{{go|0}}}
| svn = {{{svn|0}}}
| git = {{{git|0}}}
| break = 0
}}

{{repo link/doc design intro}}<!--
-->{{repo link/doc design overview|text=0}}<!--
-->{{#ifeq: {{{sf|}}} | 1 | {{repo link/doc design sourceforge|user={{{user|0}}}|svn={{{svn|0}}}|git={{{git|0}}}}} }}<!--
-->{{#ifeq: {{{gh|}}} | 1 | {{repo link/doc design github}} }}<!--
-->{{#ifeq: {{{gl|}}} | 1 | {{repo link/doc design gitlab}} }}<!--
-->{{#ifeq: {{{go|}}} | 1 | {{repo link/doc design gitorious}} }}<!--
-->{{repo link/doc plain text}}

== Examples ==

{{{examples|}}}

== Related templates ==
{{repo link/doc related}}

}}

[[Category:Repository link templates]]
Trusted, Bureaucrats
4,228

edits

Navigation menu