Difference between revisions of "Template:GithubDownload"
Jump to navigation
Jump to search
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<translate>" to "") |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages /> | <languages /> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch:</translate> |
| = | | = | ||
<div class="plainlinks" style="white-space: nowrap;"> | <div class="plainlinks" style="white-space: nowrap;"> | ||
{{#if:{{{snapshot|}}}| | {{#if:{{{snapshot|}}}| | ||
− | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads ''' | + | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads '''<!--T:1--> Download snapshot</translate>'''] {{#if:{{{mastertarball|}}}| ([https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master <!--T:2--> Git master</translate>]) }}<br /> |
|{{#if:{{{mastertarball|}}}| | |{{#if:{{{mastertarball|}}}| | ||
− | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master ''' | + | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master '''<!--T:3--> Download master snapshot</translate>''']<br /> |
|{{#if:{{{release|}}}| | |{{#if:{{{release|}}}| | ||
− | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/releases{{#ifeq:{{{release}}}|1||/{{{release}}}}} ''' | + | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/releases{{#ifeq:{{{release}}}|1||/{{{release}}}}} '''<!--T:16--> Download release</translate>''']<br /> |
}}}}}} | }}}}}} | ||
GitHub: | GitHub: | ||
− | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ | + | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ <!--T:4--> project page</translate>] |
− | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git | + | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git <!--T:5--> git repository URL</translate>] <sup>[<span></span>[[Special:MyLanguage/Gerrit|<!--T:6--> help</translate>]]]</sup> |
− | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/ | + | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/ <!--T:7--> commit history</translate>]<br /> |
− | {{#if:{{{translatewiki|}}}||<small>'' | + | {{#if:{{{translatewiki|}}}||<small>''<!--T:8--> Note:</translate><br /><!--T:9--> No [[<tvar|1>Special:MyLanguage/Localisation#Translation resources</>|localisation]] updates are<br />provided by <tvar|twn>{{ll|translatewiki.net|translatewiki.net}}</>.</translate>''</small>}} |
</div><includeonly>[[Category:Extensions in GitHub version control{{#translation:}}]]</includeonly> | </div><includeonly>[[Category:Extensions in GitHub version control{{#translation:}}]]</includeonly> | ||
| #default= | | #default= | ||
Line 22: | Line 22: | ||
{{Documentation|content= | {{Documentation|content= | ||
− | + | ||
=== Usage === <!--T:10--> | === Usage === <!--T:10--> | ||
<!--T:11--> | <!--T:11--> | ||
Transclude the template inside an Extension article to create [[w:GitHub|GitHub]] [[Git]] links.</translate> | Transclude the template inside an Extension article to create [[w:GitHub|GitHub]] [[Git]] links.</translate> | ||
− | + | ||
<!--T:12--> | <!--T:12--> | ||
It is specifically designed to provide links for the download argument used in <tvar|1>{{ll|Template:Extension}}</> and categorizes into <tvar|2>{{ll|Category:Extensions in GitHub version control}}</>. | It is specifically designed to provide links for the download argument used in <tvar|1>{{ll|Template:Extension}}</> and categorizes into <tvar|2>{{ll|Category:Extensions in GitHub version control}}</>. | ||
Line 34: | Line 34: | ||
This template takes two unnamed parameters to form the links, these are: | This template takes two unnamed parameters to form the links, these are: | ||
</translate> | </translate> | ||
− | * <code>1</code | + | * <code>1</code> <!--T:17--> (also as: <code>user</code>): To form the username holding the repository</translate> |
− | * <code>2</code>: | + | * <code>2</code>: <!--T:18--> to calculate the name of the repository holding the project, This defaults to the pagename that the extension is on</translate> |
+ | |||
− | |||
<!--T:19--> | <!--T:19--> | ||
*Note: '''Spaces must be padded with '_' underscores'''.</translate> | *Note: '''Spaces must be padded with '_' underscores'''.</translate> | ||
− | + | ||
<!--T:20--> | <!--T:20--> | ||
; Snapshots</translate> | ; Snapshots</translate> | ||
− | + | ||
<!--T:21--> | <!--T:21--> | ||
: (Activate by using <nowiki>|<option></nowiki>=1)</translate> | : (Activate by using <nowiki>|<option></nowiki>=1)</translate> | ||
− | + | ||
<!--T:22--> | <!--T:22--> | ||
* <code>snapshot</code>: Displays a link to your downloads page if you have added any.</translate> | * <code>snapshot</code>: Displays a link to your downloads page if you have added any.</translate> | ||
− | + | ||
<!--T:23--> | <!--T:23--> | ||
* <code>mastertarball</code>: Displays a download link to a tarball of your <code>master</code> branch.</translate> | * <code>mastertarball</code>: Displays a download link to a tarball of your <code>master</code> branch.</translate> | ||
− | + | ||
<!--T:24--> | <!--T:24--> | ||
* <code>release</code>: Displays a download link to the list of releases. If the value is <code>latest</code>, it will point to the latest release.</translate> | * <code>release</code>: Displays a download link to the list of releases. If the value is <code>latest</code>, it will point to the latest release.</translate> | ||
− | + | ||
==== Usage example ==== <!--T:14--> | ==== Usage example ==== <!--T:14--> | ||
</translate> | </translate> | ||
<code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>}}</nowiki></code> | <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>}}</nowiki></code> | ||
− | + | ||
<!--T:25--> | <!--T:25--> | ||
An example with [https://github.com/torvalds/linux Linus Torvalds's linux repository]:</translate> (<code><nowiki>{{GithubDownload|torvalds|linux}}</nowiki></code>) | An example with [https://github.com/torvalds/linux Linus Torvalds's linux repository]:</translate> (<code><nowiki>{{GithubDownload|torvalds|linux}}</nowiki></code>) | ||
Line 67: | Line 67: | ||
{{GithubDownload|torvalds|linux}} | {{GithubDownload|torvalds|linux}} | ||
− | + | ||
<!--T:26--> | <!--T:26--> | ||
or</translate> | or</translate> | ||
<code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>|snapshot=1}}</nowiki></code> | <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>|snapshot=1}}</nowiki></code> | ||
− | + | ||
<!--T:27--> | <!--T:27--> | ||
An example with [https://github.com/torvalds/linux Linus Torvalds's linux repository]:</translate> (<code><nowiki>{{GithubDownload|torvalds|linux|snapshot=1}}</nowiki></code>) | An example with [https://github.com/torvalds/linux Linus Torvalds's linux repository]:</translate> (<code><nowiki>{{GithubDownload|torvalds|linux|snapshot=1}}</nowiki></code>) | ||
Line 78: | Line 78: | ||
{{GithubDownload|torvalds|linux|snapshot=1}} | {{GithubDownload|torvalds|linux|snapshot=1}} | ||
− | + | ||
<!--T:28--> | <!--T:28--> | ||
− | By default a note is added that the extension is not translatable in [[translatewiki.net]].</ | + | By default a note is added that the extension is not translatable in [[translatewiki.net]].</translate> <!--T:29--> It can be removed by adding the parameter <code>translatewiki=1</code>:</translate> |
<code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>|translatewiki=1}}</nowiki></code> | <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>|translatewiki=1}}</nowiki></code> | ||
Line 86: | Line 86: | ||
{{GithubDownload|torvalds|linux|translatewiki=1}} | {{GithubDownload|torvalds|linux|translatewiki=1}} | ||
− | + | ||
=== See also === <!--T:15--> | === See also === <!--T:15--> | ||
</translate> | </translate> |
Revision as of 03:50, 21 December 2019
GitHub:
Note:
No localisation updates are
provided by translatewiki.net .