Difference between revisions of "Template:GithubRepo"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "</translate>" to "")
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:</translate>
+
</noinclude>{{#switch:
 
| =
 
| =
  
 
== Repository == <!--T:1-->
 
== Repository == <!--T:1-->
</translate>
+
 
* [https://github.com/{{{User|}}}/{{{Repo|}}} <!--T:2--> View repository on <tvar|github>github.com</></translate>]
+
* [https://github.com/{{{User|}}}/{{{Repo|}}} <!--T:2--> View repository on <tvar|github>github.com</>]
* [https://github.com/{{{User|}}}/{{{Repo|}}}/issues <!--T:3--> Issue tracker</translate>]
+
* [https://github.com/{{{User|}}}/{{{Repo|}}}/issues <!--T:3--> Issue tracker]
  
  
 
== Download == <!--T:4-->
 
== Download == <!--T:4-->
</translate>
+
 
* [https://github.com/{{{User|}}}/{{{Repo|}}}/tags <!--T:5--> Releases</translate>]
+
* [https://github.com/{{{User|}}}/{{{Repo|}}}/tags <!--T:5--> Releases]
=== <!--T:6--> Download using Git</translate> ===
+
=== <!--T:6--> 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|}}}

Revision as of 04:06, 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