Difference between revisions of "Template:GithubRepo"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "</>" to "")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:
 
| =
 
| =
<translate>
 
== Repository == <!--T:1-->
 
</translate>
 
* [https://github.com/{{{User|}}}/{{{Repo|}}} <translate><!--T:2--> View repository on <tvar|github>github.com</></translate>]
 
* [https://github.com/{{{User|}}}/{{{Repo|}}}/issues <translate><!--T:3--> Issue tracker</translate>]
 
  
<translate>
+
== Repository ==
== Download == <!--T:4-->
+
 
</translate>
+
* [https://github.com/{{{User|}}}/{{{Repo|}}}  View repository on <tvar|github>github.com]
* [https://github.com/{{{User|}}}/{{{Repo|}}}/tags <translate><!--T:5--> Releases</translate>]
+
* [https://github.com/{{{User|}}}/{{{Repo|}}}/issues  Issue tracker]
=== <translate><!--T:6--> Download using Git</translate> ===
+
 
 +
 
 +
== Download ==  
 +
 
 +
* [https://github.com/{{{User|}}}/{{{Repo|}}}/tags Releases]
 +
=== Download using Git ===
 
<code>
 
<code>
 
git clone <nowiki>https://github.com/</nowiki>{{{User|}}}/{{{Repo|}}}.git {{{Target|}}}
 
git clone <nowiki>https://github.com/</nowiki>{{{User|}}}/{{{Repo|}}}.git {{{Target|}}}

Latest revision as of 16:10, 21 December 2019


Repository

Template documentation

For use on extension pages where the code is hosted on GitHub

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
UserUser

User under the repository of the extension is hosted in

Stringrequired
RepoRepo

Repository name

Stringrequired
TargetTarget

Target of the git clone (optional)

Stringoptional

Usage:

{{GithubRepo|User=DaSchTour|Repo=JavascriptSlideshow}}

This will refer to the repository https://github.com/DaSchTour/JavascriptSlideshow