Template:GithubDownload

{{#if:{{{snapshot|}}}| |{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/downloads  Download snapshot  {{#if:{{{mastertarball|}}}| (|{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/tarball/master Git master) }} {{#if:{{{maintarball|}}}| (|{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/tarball/main Git main) }}

|{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/tarball/master  Download master snapshot 
 * {{#if:{{{mastertarball|}}}|

|{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/tarball/main Download main snapshot 
 * {{#if:{{{maintarball|}}}|

|{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/releases{{#ifeq:{{{release}}}|1||/{{{release}}}}}  Download release 
 * {{#if:{{{release|}}}|

}}}}}} GitHub:
 * |{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/ project page
 * |{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}.git git repository URL {{sup|[ {{ll|Gerrit|2= help }}]}}
 * |{{{user|}}}}}}/{{{2|{{PAGENAMEE:{{translatable}}}}}}}/commits/ commit history

{{#if:{{{translatewiki|}}}|| '' Note: No localisation updates are provided by {{ll|translatewiki.net|translatewiki.net}}. '' }} {{#ifeq:{{{templatemode}}}|nocats||{{#switch:{{lc:{{NAMESPACE}}}} |skin= |#default= }}}} {{Documentation|content=

Usage
Transclude the template inside an Extension page to create GitHub links. It is specifically designed to provide links for the download argument used in and categorizes into.

This template takes two unnamed parameters to form the links, these are:
 * (also as: ): To form the username holding the repository
 * : to calculate the name of the repository holding the project, This defaults to the pagename that the extension is on


 * Note: Spaces must be padded with '_' underscores.


 * Snapshots


 * (Activate by using | =1)


 * - Displays a link to your downloads page if you have added any.
 * - Displays a download link to a tarball of your  branch.
 * - Displays a download link to the list of releases. If the value is, it will point to the latest release.

Usage example
An example with Linus Torvalds's linux repository:

or

An example with Linus Torvalds's linux repository:

By default a note is added that the extension is not translatable in translatewiki.net. It can be removed by adding the parameter or  :