Open main menu

Changes

Template:Repo link

235 bytes added, 10:07, 27 October 2017
Added support for git repository tarball snapshots for SourceForge.
<noinclude>{{caution|This template, via its [[Template:repo link/doc related|subtemplates]], is used by many pages. Therefore modifications will propagate throughout the FlightGear relax wiki and have a large effect. Changes should be carefully tested on a [[Template:repo link/sandbox|/sandbox]] subpage or as a user subpage before being implemented here.}}</noinclude><!--
-->{{#if: {{{cmd|}}}<!-- The optional prepended CLI command and options. -->
| {{strip whitespace|{{{cmd}}}}} <nowiki></nowiki><!-- The command.
| svn web = sourceforge.net
| svn = svn.code.sf.net
| zip = sourceforge.net
}}/<!--
-->{{#if: {{{user|}}} <!-- Project or user? -->
| u/{{{user}}}
| p/{{{proj|flightgearnmr-relax}}}
}}/<!--
-->{{{repo|flightgearcode}}}/<!-- The version control repository.
-->{{#switch: {{{type|git web}}} <!-- Git vs. SVN repository (default = git). -->
| git
| rss =
| #default =
ci/<!-- The commit, tag, or branch (defaulting to nextmaster).
-->{{{commit|{{#if: {{{tag|}}}
| {{{tag}}}
| {{{branch|nextmaster}}}
}}}}}/
}}<!--
| {{#if: {{{simplepath|}}}
| <!-- No project, repository or branch. -->
| {{{user|{{{proj|flightgearnmr-relax}}}}}}/<!-- The user or project name. -->{{{repo|flightgearcode}}}<!-- The repository name.
-->{{#ifeq: {{{view|}}} | rss | <!-- The repository commit, tag, or branch (if view != rss). -->
| /{{{commit|{{{tag|{{{branch|nextmaster}}}}}}}}}
}}
}}
| {{#if: {{{simplepath|}}}
| <!-- No project, repository or branch. -->
| {{{user|{{{proj|flightgearnmr-relax}}}}}}/<!-- The user or project name. -->{{{repo|flightgearcode-svn-archive}}}<!-- The repository name.
-->{{#switch: {{{view|}}}<!-- The repository branch. -->
| rss =
}}
}}
| zip =<!--
-->ci/<!--
-->{{{commit|{{#if: {{{tag|}}}
| {{{tag}}}
| {{{branch|master}}}
}}}}}/<!--
-->tarball
 
}}
| gh
| git web = ?<!--
-->p={{{proj|fg}}}<!-- The project and repository names, with '.git' appended.
-->:{{{repo|flightgearnmr-relax}}}<!--
-->.git<!--
-->;a={{#if: {{{view|}}} <!-- The repository view mode. -->
-->{{{protocol|https}}}://<!-- URL protocol (default = https).
-->{{#if: {{{login|}}} | {{{login}}}@}}<!-- The user login name, if supplied.
-->{{{site|flightgearnmr-relax.orgcom}}}/<!-- Use the 'site' parameter as the domain name part of the URL.
-->{{#if: {{{user|}}} <!-- Project or user? -->
| {{{user}}}
Trusted, Bureaucrats
4,228

edits