Open main menu

Changes

Template:Repo link/doc infrastructure source

2,662 bytes added, 11:07, 25 October 2017
Creation of the {{repo link/doc infrastructure source}} template. This is from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Repo_link/doc_infrastructure_source&oldid=95230.
{{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 links or URLs for the content of the version control repositories of the [[{{{label|MISSING}}}]] open source infrastructure. 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}}'''* source'''{{cbr}} subtemplates]] listed below.}} }}

{{repo link/doc usage
| template = {{{site|MISSING}}} source
| 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
| commit = 1 | short_commit = c | pos_commit = 5
| mr = {{{mr|0}}}
| path = 1 | short_path = f | pos_path = 4
| line = 1 | short_line = l
| post = 1
| view = 1 | short_view = v
| text = 1 | short_text = t
| pre = 1
| simplepath = 1
| full = 1
| 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}}}
| default_branch_git{{#if:{{{default_branch_git|}}}||NULL}} = {{{default_branch_git}}}
| default_branch_svn{{#if:{{{default_branch_svn|}}}||NULL}} = {{{default_branch_svn}}}
}}

{{repo link/doc design intro}}<!--
-->{{repo link/doc design overview}}<!--
-->{{#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,223

edits