Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| <languages /> | | <languages /> |
− | </noinclude>{{#switch:<translate></translate> | + | </noinclude>{{#switch: |
| | = | | | = |
| <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 '''<translate><!--T:1--> Download snapshot</translate>'''] {{#if:{{{mastertarball|}}}| ([https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master <translate><!--T:2--> Git master</translate>]) }}<br /> | + | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/downloads ''' Download snapshot'''] {{#if:{{{mastertarball|}}}| ([https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master Git master]) }}<br /> |
| |{{#if:{{{mastertarball|}}}| | | |{{#if:{{{mastertarball|}}}| |
− | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master '''<translate><!--T:3--> Download master snapshot</translate>''']<br /> | + | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/tarball/master ''' Download master snapshot''']<br /> |
| |{{#if:{{{release|}}}| | | |{{#if:{{{release|}}}| |
− | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/releases{{#ifeq:{{{release}}}|1||/{{{release}}}}} '''<translate><!--T:16--> Download release</translate>''']<br /> | + | [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/releases{{#ifeq:{{{release}}}|1||/{{{release}}}}} ''' Download release''']<br /> |
| }}}}}} | | }}}}}} |
| GitHub: | | GitHub: |
− | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ <translate><!--T:4--> project page</translate>] | + | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/ project page] |
− | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git <translate><!--T:5--> git repository URL</translate>] <sup>[<span></span>[[Special:MyLanguage/Gerrit|<translate><!--T:6--> help</translate>]]]</sup> | + | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}.git git repository URL] <sup>[<span></span>[[Special:MyLanguage/Gerrit| help]]]</sup> |
− | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/ <translate><!--T:7--> commit history</translate>]<br /> | + | * [https://github.com/{{{1|{{{user|}}}}}}/{{{2|{{PAGENAMEE}}}}}/commits/ commit history]<br /> |
− | {{#if:{{{translatewiki|}}}||<small>''<translate><!--T:8--> Note:</translate><br /><translate><!--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>}} | + | {{#if:{{{translatewiki|}}}||<small>'' Note:<br /> No [[Special:MyLanguage/Localisation#Translation resources|localisation]] updates are<br />provided by <tvar|twn>{{ll|translatewiki.net|translatewiki.net}}.''</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= |
| | | |
− | <translate>
| |
− | === Usage === <!--T:10-->
| |
| | | |
− | <!--T:11-->
| + | === Usage === |
− | Transclude the template inside an Extension article to create [[w:GitHub|GitHub]] [[Git]] links.</translate> | + | |
− | <translate>
| + | |
− | <!--T:12-->
| + | Transclude the template inside an Extension article to create [[w:GitHub|GitHub]] [[Git]] links. |
− | 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 {{ll|Template:Extension}} and categorizes into {{ll|Category:Extensions in GitHub version control}}. |
| + | |
| | | |
− | <!--T:13-->
| |
| 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>
| |
− | * <code>1</code> <translate><!--T:17--> (also as: <code>user</code>): To form the username holding the repository</translate>
| |
− | * <code>2</code>: <translate><!--T:18--> to calculate the name of the repository holding the project, This defaults to the pagename that the extension is on</translate>
| |
| | | |
− | <translate> | + | * <code>1</code> (also as: <code>user</code>): To form the username holding the repository |
− | <!--T:19--> | + | * <code>2</code>: 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'''.</translate> | + | |
| + | |
| + | |
| + | *Note: '''Spaces must be padded with '_' underscores'''. |
| + | |
| + | |
| + | |
| + | ; Snapshots |
| + | |
| + | |
| + | : (Activate by using <nowiki>|<option></nowiki>=1) |
| + | |
| + | |
| + | * <code>snapshot</code>: Displays a link to your downloads page if you have added any. |
| + | |
| + | |
| + | * <code>mastertarball</code>: Displays a download link to a tarball of your <code>master</code> branch. |
| + | |
| + | |
| + | * <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:20-->
| |
− | ; Snapshots</translate>
| |
− | <translate>
| |
− | <!--T:21-->
| |
− | : (Activate by using <nowiki>|<option></nowiki>=1)</translate>
| |
− | <translate>
| |
− | <!--T:22-->
| |
− | * <code>snapshot</code>: Displays a link to your downloads page if you have added any.</translate>
| |
− | <translate>
| |
− | <!--T:23-->
| |
− | * <code>mastertarball</code>: Displays a download link to a tarball of your <code>master</code> branch.</translate>
| |
− | <translate>
| |
− | <!--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>
| |
| | | |
− | <translate>
| |
− | ==== Usage example ==== <!--T:14-->
| |
− | </translate>
| |
| <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>}}</nowiki></code> | | <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>}}</nowiki></code> |
− | <translate>
| + | |
− | <!--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]: (<code><nowiki>{{GithubDownload|torvalds|linux}}</nowiki></code>) |
| | | |
| {{GithubDownload|torvalds|linux}} | | {{GithubDownload|torvalds|linux}} |
| | | |
− | <translate>
| + | |
− | <!--T:26-->
| + | |
− | or</translate> | + | or |
| | | |
| <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>|snapshot=1}}</nowiki></code> | | <code><nowiki>{{GithubDownload|<Repository Username>|<Repository Name>|snapshot=1}}</nowiki></code> |
− | <translate>
| + | |
− | <!--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]: (<code><nowiki>{{GithubDownload|torvalds|linux|snapshot=1}}</nowiki></code>) |
| | | |
| {{GithubDownload|torvalds|linux|snapshot=1}} | | {{GithubDownload|torvalds|linux|snapshot=1}} |
| | | |
− | <translate>
| + | |
− | <!--T:28-->
| + | |
− | By default a note is added that the extension is not translatable in [[translatewiki.net]].</translate> <translate><!--T:29--> It can be removed by adding the parameter <code>translatewiki=1</code>:</translate> | + | By default a note is added that the extension is not translatable in [[translatewiki.net]]. It can be removed by adding the parameter <code>translatewiki=1</code>: |
| | | |
| <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}} |
| | | |
− | <translate>
| + | |
− | === See also === <!--T:15--> | + | === See also === |
− | </translate>
| + | |
| * {{ll|Template:WikimediaDownload}} | | * {{ll|Template:WikimediaDownload}} |
| * {{ll|Template:GoogleCodeDownload}} | | * {{ll|Template:GoogleCodeDownload}} |